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