backintime-vl.spec 10 KB

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