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