backintime-vl.spec 11 KB

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