[4965] | 1 | #%bcond_with kde4 |
---|
[521] | 2 | |
---|
| 3 | Name: backintime |
---|
[4965] | 4 | Version: 1.0.8 |
---|
[2382] | 5 | Release: 1%{?_dist_release} |
---|
| 6 | Summary: Simple backup system |
---|
[521] | 7 | Summary(ja): シンプルなバックアップシステム |
---|
| 8 | |
---|
| 9 | Group: Applications/Archiving |
---|
| 10 | License: GPLv2+ |
---|
| 11 | URL: http://backintime.le-web.org/ |
---|
| 12 | Source0: http://backintime.le-web.org/download/%{name}/%{name}-%{version}_src.tar.gz |
---|
[2382] | 13 | #Source1: backintime-ja.po |
---|
[521] | 14 | |
---|
[2382] | 15 | #Patch0: %{name}-0.9.26_snapshots.patch |
---|
[2438] | 16 | #Patch1: fix_ja.patch |
---|
[521] | 17 | |
---|
| 18 | BuildArch: noarch |
---|
| 19 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 20 | |
---|
| 21 | BuildRequires: desktop-file-utils |
---|
| 22 | BuildRequires: gettext libnotify-devel |
---|
| 23 | |
---|
| 24 | |
---|
| 25 | %description |
---|
| 26 | Back In Time is a simple backup system for Linux inspired from |
---|
| 27 | “flyback project” and “TimeVault”. The backup is done by taking |
---|
| 28 | snapshots of a specified set of directories. |
---|
| 29 | |
---|
| 30 | %description -l ja |
---|
[4965] | 31 | Back In Time は“flyback project”と“TimeVault”に触発された |
---|
| 32 | Linux のためのシンプルなバックアップシステムです。 |
---|
[521] | 33 | 指定されたセットのディレクトリのスナップショットを取ることにより、 |
---|
| 34 | バックアップが行われます。 |
---|
| 35 | |
---|
| 36 | %package common |
---|
| 37 | Summary: Common files for %{name} |
---|
| 38 | Summary(ja): %{name} の共通ファイル |
---|
| 39 | Group: Applications/Archiving |
---|
| 40 | Requires: python |
---|
| 41 | Requires: rsync |
---|
| 42 | Requires: notify-python |
---|
| 43 | Requires: libnotify |
---|
[2382] | 44 | Requires: crontabs |
---|
[521] | 45 | |
---|
| 46 | %description common |
---|
| 47 | Back In Time is a simple backup system for Linux inspired from |
---|
[2382] | 48 | “flyback project” and “TimeVault”. |
---|
[521] | 49 | This package contains non GUI files used by different GUI fontends. |
---|
| 50 | |
---|
| 51 | %description -l ja common |
---|
[4965] | 52 | Back In Time は “flyback project” と “TimeVault” に触発された |
---|
[521] | 53 | Linux のためのシンプルなバックアップシステムです。 |
---|
| 54 | このパッケージは異なる GUI フロントエンドにより使用される |
---|
| 55 | GUI を用いないファイルを含んでいます。 |
---|
| 56 | |
---|
| 57 | %package gnome |
---|
| 58 | Summary: Frontend for %{name} on GNOME |
---|
| 59 | Summary(ja): %{name} の GNOME フロントエンド |
---|
| 60 | Group: Applications/Archiving |
---|
| 61 | Requires: %{name}-common = %{version}-%{release} |
---|
| 62 | Requires: pygtk2-libglade |
---|
| 63 | Requires: gnome-python |
---|
| 64 | Requires: usermode-gtk |
---|
| 65 | Requires: meld |
---|
| 66 | |
---|
| 67 | %description gnome |
---|
| 68 | This package is the GNOME GUI frontend for backintime-common. |
---|
| 69 | Back In Time is a simple backup system for Linux inspired from |
---|
[2382] | 70 | “flyback project” and “TimeVault”. |
---|
[521] | 71 | |
---|
| 72 | %description -l ja gnome |
---|
| 73 | Back In Timeは “flyback project” と “TimeVault” に触発された |
---|
| 74 | Linux のためのシンプルなバックアップシステムです。 |
---|
| 75 | このパッケージは backintime-common の GNOME GUI フロントエンドです。 |
---|
| 76 | |
---|
| 77 | %package kde |
---|
| 78 | Summary: Frontend for %{name} on KDE |
---|
| 79 | Summary(ja): %{name} の KDE フロントエンド |
---|
| 80 | Group: Applications/Archiving |
---|
| 81 | Requires: %{name}-common = %{version}-%{release} |
---|
| 82 | Requires: xorg-x11-utils |
---|
| 83 | Requires: PyKDE4 |
---|
| 84 | Requires: usermode-gtk |
---|
| 85 | Requires: kdesdk |
---|
| 86 | |
---|
| 87 | |
---|
| 88 | %description kde |
---|
| 89 | This is the KDE4 GUI frontend for backintime-common. |
---|
| 90 | Back In Time is a simple backup system for Linux inspired from |
---|
[2382] | 91 | “flyback project” and “TimeVault”. |
---|
[521] | 92 | |
---|
| 93 | %description -l ja kde |
---|
[4965] | 94 | Back In Time は “flyback project” と “TimeVault” に触発された |
---|
[521] | 95 | Linux のためのシンプルなバックアップシステムです。 |
---|
| 96 | このパッケージは backintime-common の KDE4 GUI フロントエンドです。 |
---|
| 97 | |
---|
| 98 | %prep |
---|
| 99 | %setup -q |
---|
[2382] | 100 | #%patch0 -p1 |
---|
[2438] | 101 | #%patch1 -p1 |
---|
[521] | 102 | |
---|
[2382] | 103 | #%__cp -f %{SOURCE1} common/po/ja.po |
---|
[521] | 104 | |
---|
| 105 | sed -i 's|Exec=gksu backintime-gnome|Exec=backintime-gnome-root|g' \ |
---|
| 106 | gnome/%{name}-gnome-root.desktop |
---|
[2382] | 107 | sed -i 's|Categories=GNOME;GTK;System;|Categories=GNOME;GTK;System;\nNotShowIn=KDE;|g' \ |
---|
| 108 | gnome/%{name}-gnome.desktop |
---|
[521] | 109 | |
---|
[2382] | 110 | pushd . |
---|
| 111 | cd ./kde4 |
---|
| 112 | cp -pr %{name}-kde4.desktop %{name}-kde4-root.desktop |
---|
| 113 | popd |
---|
| 114 | |
---|
| 115 | sed -i 's|Name=Back In Time|Name=Back In Time (root)|g' \ |
---|
[521] | 116 | kde4/%{name}-kde4-root.desktop |
---|
[2382] | 117 | sed -i 's|Exec=backintime-kde4|Exec=%{_bindir}/kdesu -c backintime-kde4|g' \ |
---|
| 118 | kde4/%{name}-kde4-root.desktop |
---|
| 119 | sed -i 's|Categories=Qt;KDE;System;|Categories=Qt;KDE;System;\nNotShowIn=GNOME;XFCE;LXDE;|g' \ |
---|
| 120 | kde4/%{name}-kde4-root.desktop |
---|
[521] | 121 | |
---|
| 122 | sed -e 's!share/locale!.*/locale!' /usr/lib/rpm/find-lang.sh > my-find-lang.sh |
---|
| 123 | |
---|
| 124 | %build |
---|
| 125 | |
---|
| 126 | cd common |
---|
| 127 | %configure |
---|
| 128 | make %{?_smp_mflags} |
---|
| 129 | |
---|
| 130 | cd ../gnome |
---|
| 131 | %configure |
---|
| 132 | make %{?_smp_mflags} |
---|
| 133 | |
---|
| 134 | cd ../kde4 |
---|
| 135 | %configure |
---|
| 136 | make %{?_smp_mflags} |
---|
| 137 | |
---|
| 138 | cd .. |
---|
| 139 | |
---|
| 140 | %install |
---|
| 141 | rm -rf %{buildroot} |
---|
| 142 | |
---|
| 143 | cd common |
---|
| 144 | make install \ |
---|
| 145 | INSTALL="install -p" \ |
---|
| 146 | PREFIX="%{_prefix}" \ |
---|
| 147 | DEST="%{buildroot}/%{_prefix}" |
---|
| 148 | |
---|
| 149 | cd ../gnome |
---|
| 150 | make install \ |
---|
| 151 | INSTALL="install -p" \ |
---|
| 152 | PREFIX="%{_prefix}" \ |
---|
| 153 | DEST="%{buildroot}/%{_prefix}" |
---|
| 154 | |
---|
| 155 | cd ../kde4 |
---|
| 156 | make install \ |
---|
| 157 | INSTALL="install -p" \ |
---|
| 158 | PREFIX="%{_prefix}" \ |
---|
| 159 | DEST="%{buildroot}/%{_prefix}" |
---|
| 160 | |
---|
| 161 | cd .. |
---|
| 162 | |
---|
| 163 | desktop-file-install \ |
---|
| 164 | --dir=%{buildroot}/%{_datadir}/applications \ |
---|
| 165 | %{buildroot}/%{_datadir}/applications/%{name}-gnome.desktop |
---|
| 166 | |
---|
| 167 | desktop-file-install \ |
---|
| 168 | --dir=%{buildroot}/%{_datadir}/applications/ \ |
---|
| 169 | --add-category="Settings;" \ |
---|
| 170 | %{buildroot}/%{_datadir}/applications/%{name}-gnome-root.desktop |
---|
| 171 | |
---|
| 172 | desktop-file-install \ |
---|
| 173 | --dir=%{buildroot}/%{_datadir}/applications/kde4 \ |
---|
| 174 | %{buildroot}/%{_datadir}/applications/kde4/%{name}-kde4.desktop |
---|
| 175 | |
---|
| 176 | desktop-file-install \ |
---|
| 177 | --dir=%{buildroot}/%{_datadir}/applications/kde4 \ |
---|
| 178 | --add-category="Settings;" \ |
---|
| 179 | %{buildroot}/%{_datadir}/applications/kde4/%{name}-kde4-root.desktop |
---|
| 180 | |
---|
| 181 | |
---|
| 182 | mkdir -p %{buildroot}%{_sbindir} |
---|
| 183 | cp -p %{buildroot}%{_bindir}/%{name}-gnome \ |
---|
| 184 | %{buildroot}%{_sbindir}/%{name}-gnome-root |
---|
[4965] | 185 | |
---|
[521] | 186 | cp -p %{buildroot}%{_bindir}/%{name}-kde4 \ |
---|
| 187 | %{buildroot}%{_sbindir}/%{name}-kde4-root |
---|
| 188 | |
---|
[4965] | 189 | |
---|
[521] | 190 | ln -s consolehelper \ |
---|
| 191 | %{buildroot}%{_bindir}/%{name}-gnome-root |
---|
| 192 | |
---|
| 193 | ln -s consolehelper \ |
---|
| 194 | %{buildroot}%{_bindir}/%{name}-kde4-root |
---|
| 195 | |
---|
[4965] | 196 | |
---|
[521] | 197 | mkdir -p %{buildroot}%{_sysconfdir}/security/console.apps/ |
---|
| 198 | |
---|
| 199 | cat << EOF > %{buildroot}%{_sysconfdir}/security/console.apps/%{name}-gnome-root |
---|
| 200 | USER=root |
---|
| 201 | PROGRAM=%{_sbindir}/%{name}-gnome-root |
---|
| 202 | SESSION=true |
---|
| 203 | EOF |
---|
| 204 | |
---|
| 205 | cat << EOF > %{buildroot}%{_sysconfdir}/security/console.apps/%{name}-kde4-root |
---|
| 206 | USER=root |
---|
| 207 | PROGRAM=%{_sbindir}/%{name}-kde4-root |
---|
| 208 | SESSION=true |
---|
| 209 | EOF |
---|
| 210 | |
---|
| 211 | mkdir -p %{buildroot}%{_sysconfdir}/pam.d |
---|
| 212 | |
---|
| 213 | cat << EOF > %{buildroot}%{_sysconfdir}/pam.d/%{name}-gnome-root |
---|
| 214 | #%PAM-1.0 |
---|
| 215 | auth include config-util |
---|
| 216 | account include config-util |
---|
| 217 | session include config-util |
---|
| 218 | EOF |
---|
| 219 | |
---|
| 220 | cat << EOF > %{buildroot}%{_sysconfdir}/pam.d/%{name}-kde4-root |
---|
| 221 | %PAM-1.0 |
---|
| 222 | auth include config-util |
---|
| 223 | account include config-util |
---|
| 224 | session include config-util |
---|
| 225 | EOF |
---|
| 226 | |
---|
| 227 | sh my-find-lang.sh %{buildroot} %{name} %{name}.lang |
---|
| 228 | find %{buildroot}/%{_datadir}/locale/ -mindepth 1 \ |
---|
| 229 | \( -name locale -prune \) -o \ |
---|
| 230 | -type d -printf '%%%%dir %{_datadir}/locale/%%P\n' -o \ |
---|
| 231 | ! -name '*.py' -printf '%{_datadir}/locale/%%P\n' -o \ |
---|
| 232 | -printf '%{_datadir}/locale/%%P\n' \ |
---|
| 233 | -printf '%{_datadir}/locale/%%P[co]\n' >> lang.lst |
---|
| 234 | |
---|
| 235 | %clean |
---|
| 236 | rm -rf %{buildroot} |
---|
| 237 | |
---|
| 238 | |
---|
| 239 | %files common -f lang.lst |
---|
| 240 | %defattr(-,root,root,-) |
---|
| 241 | %{_bindir}/%{name} |
---|
| 242 | %dir %{_datadir}/%{name}/ |
---|
| 243 | %{_datadir}/%{name}/common/ |
---|
| 244 | %{_datadir}/%{name}/plugins/ |
---|
| 245 | %{_mandir}/man1/%{name}* |
---|
| 246 | %doc %{_docdir}/%{name}/ |
---|
| 247 | %doc %{_docdir}/%{name}-common/ |
---|
| 248 | |
---|
| 249 | |
---|
| 250 | %files gnome |
---|
| 251 | %defattr(-,root,root,-) |
---|
| 252 | %{_bindir}/%{name}-gnome |
---|
| 253 | %{_bindir}/%{name}-gnome-root |
---|
| 254 | %{_sbindir}/%{name}-gnome-root |
---|
| 255 | %{_datadir}/applications/%{name}-gnome.desktop |
---|
| 256 | %{_datadir}/applications/%{name}-gnome-root.desktop |
---|
| 257 | %{_datadir}/%{name}/gnome/ |
---|
| 258 | %doc %{_datadir}/gnome/help/%{name}/ |
---|
| 259 | %doc %{_docdir}/%{name}-gnome/ |
---|
| 260 | %{_datadir}/omf/%{name}/ |
---|
| 261 | %config(noreplace) %{_sysconfdir}/pam.d/%{name}-gnome-root |
---|
| 262 | %config %{_sysconfdir}/security/console.apps/%{name}-gnome-root |
---|
| 263 | |
---|
| 264 | |
---|
| 265 | %files kde |
---|
| 266 | %defattr(-,root,root,-) |
---|
| 267 | %{_bindir}/%{name}-kde4 |
---|
| 268 | %{_bindir}/%{name}-kde4-root |
---|
| 269 | %{_sbindir}/%{name}-kde4-root |
---|
| 270 | %{_datadir}/applications/kde4/%{name}-kde4.desktop |
---|
| 271 | %{_datadir}/applications/kde4/%{name}-kde4-root.desktop |
---|
| 272 | %{_datadir}/backintime/kde4/ |
---|
| 273 | %doc %{_datadir}/doc/kde4/HTML/en/%{name}/ |
---|
| 274 | %doc %{_docdir}/%{name}-kde4/ |
---|
| 275 | %config(noreplace) %{_sysconfdir}/pam.d/%{name}-kde4-root |
---|
| 276 | %config %{_sysconfdir}/security/console.apps/%{name}-kde4-root |
---|
| 277 | |
---|
| 278 | %changelog |
---|
[4965] | 279 | * Fri Oct 14 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0.8-1 |
---|
| 280 | - new upstream release |
---|
| 281 | - deleted %bcond_with macro |
---|
| 282 | |
---|
[2438] | 283 | * Mon Jan 3 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0.6-1 |
---|
| 284 | - new upstream release |
---|
| 285 | - dropt patch1 |
---|
| 286 | |
---|
[2382] | 287 | * Sat Dec 25 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0.4-1 |
---|
| 288 | - new upstream release |
---|
| 289 | - added Patch1 to fix ja.po a little |
---|
| 290 | |
---|
[521] | 291 | * Sat Feb 6 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.26-10 |
---|
| 292 | - rebuilt with python-2.6.4 |
---|
| 293 | |
---|
| 294 | * Sun Jan 17 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.26-9 |
---|
| 295 | - used %bcond_with macro to maintain easier on Stable Release and Seed |
---|
| 296 | |
---|
| 297 | * Sat Nov 28 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.26-7 |
---|
| 298 | - generated GUI frontend for KDE4 package |
---|
| 299 | |
---|
| 300 | * Mon Nov 23 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.26-6 |
---|
| 301 | - updated Source1 |
---|
| 302 | |
---|
| 303 | * Sat Sep 26 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.26-5 |
---|
| 304 | - updated Source1 |
---|
| 305 | - added Patch0 from Fedora to secure backups |
---|
| 306 | |
---|
| 307 | * Sun Jun 28 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.26-4vl5 |
---|
| 308 | - updated Source1 |
---|
| 309 | |
---|
| 310 | * Sun Jun 14 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.26-3vl5 |
---|
| 311 | - updated Source1 |
---|
| 312 | - cleaned up spec |
---|
| 313 | - changed description of common, gnome |
---|
| 314 | - added Japanese summary |
---|
| 315 | |
---|
| 316 | * Sat May 23 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.26-2vl5 |
---|
| 317 | - fixed changelog typo in May 22 |
---|
| 318 | - updated Source1 |
---|
| 319 | |
---|
| 320 | * Fri May 22 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.26-1vl5 |
---|
| 321 | - New upstream release |
---|
| 322 | - dropt Patch1 |
---|
| 323 | - changed URL and Source0 tag |
---|
| 324 | - updated description of backintime-gnome |
---|
| 325 | - updated Source1 |
---|
| 326 | |
---|
| 327 | * Sun May 3 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.22-3vl5 |
---|
| 328 | - added Source1 to translate Japanese |
---|
| 329 | |
---|
| 330 | * Fri May 1 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.22-2vl5 |
---|
| 331 | - deleted PreReq: notify-python |
---|
| 332 | - moved Requires: notify-python, libnotify (to backintime-common) |
---|
| 333 | - fixed changelog typo in Apr 30 |
---|
| 334 | |
---|
| 335 | * Thu Apr 30 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.22-1vl5 |
---|
| 336 | - New upstream release |
---|
| 337 | - added Patch0 (import from fedora) |
---|
| 338 | - added PreReq: notify-python |
---|
| 339 | - added Requires: usermode-gtk (gnome and kde) |
---|
| 340 | - added configure option (enabled:common,gnome disabled:kde4) |
---|
| 341 | - spec in UTF-8 |
---|
| 342 | |
---|
| 343 | * Mon Apr 6 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.20-1vl5 |
---|
| 344 | - New upstream release |
---|
| 345 | |
---|
| 346 | * Sat Apr 4 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.18-1vl5 |
---|
| 347 | - initial build for VineSeed |
---|
| 348 | - don't provide package for KDE4 frontend (because KDE4 still don't provide..) |
---|
| 349 | |
---|
| 350 | * Tue Mar 17 2009 Simon Wesp <cassmodiah@fedoraproject.org> - 0.9.16.1-1 |
---|
| 351 | - New upstream release |
---|
| 352 | |
---|
| 353 | * Tue Mar 10 2009 Simon Wesp <cassmodiah@fedoraproject.org> - 0.9.14-1 |
---|
| 354 | - Initial Package build |
---|