backintime-vl.spec 11 KB

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