backintime-vl.spec 11 KB

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