gnucash-vl.spec 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289
  1. %define ver 2.2.9
  2. %define docver 2.2.0
  3. %define rel 3%{?_dist_release}
  4. %define __libtoolize /bin/true
  5. %define schemas /etc/gconf/schemas/apps_gnucash_dialog_business_common.schemas /etc/gconf/schemas/apps_gnucash_dialog_commodities.schemas /etc/gconf/schemas/apps_gnucash_dialog_common.schemas /etc/gconf/schemas/apps_gnucash_dialog_hbci.schemas /etc/gconf/schemas/apps_gnucash_dialog_prices.schemas /etc/gconf/schemas/apps_gnucash_dialog_print_checks.schemas /etc/gconf/schemas/apps_gnucash_dialog_reconcile.schemas /etc/gconf/schemas/apps_gnucash_dialog_scheduled_transctions.schemas /etc/gconf/schemas/apps_gnucash_dialog_totd.schemas /etc/gconf/schemas/apps_gnucash_general.schemas /etc/gconf/schemas/apps_gnucash_history.schemas /etc/gconf/schemas/apps_gnucash_import_generic_matcher.schemas /etc/gconf/schemas/apps_gnucash_import_qif.schemas /etc/gconf/schemas/apps_gnucash_warnings.schemas /etc/gconf/schemas/apps_gnucash_window_pages_account_tree.schemas /etc/gconf/schemas/apps_gnucash_window_pages_register.schemas
  6. Name: gnucash
  7. Summary: GnuCash is an application to keep track of your finances.
  8. Summary(ja): 個人用財務管理アプリケーション
  9. Version: %{ver}
  10. Release: %{rel}
  11. License: GPL/LGPL/GFDL
  12. Group: Applications/Productivity
  13. URL: http://www.gnucash.org/
  14. Source: %{name}-%{version}.tar.bz2
  15. Source1: %{name}-docs-%{docver}.tar.gz
  16. Patch0: gnucash-2.2.3-quiet.patch
  17. Patch1: gnucash-2.2.9-aqbanking4.patch
  18. Patch2: gnucash-2.2.9-goffice.patch
  19. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  20. BuildRequires: aqbanking-devel >= 3.7.2
  21. BuildRequires: GConf2-devel
  22. BuildRequires: bzip2-devel
  23. BuildRequires: expat-devel
  24. BuildRequires: gettext
  25. BuildRequires: goffice-devel >= 0.4.3
  26. BuildRequires: gtk2-devel
  27. BuildRequires: gtkhtml3-devel
  28. BuildRequires: guile-devel
  29. BuildRequires: libofx-devel
  30. BuildRequires: libgnomeui-devel
  31. BuildRequires: libjpeg-devel
  32. BuildRequires: pcre-devel
  33. BuildRequires: popt-devel
  34. BuildRequires: swig
  35. BuildRequires: slib
  36. BuildRequires: gwenhywfar-devel
  37. BuildRequires: desktop-file-utils
  38. # for HBCI setup wizard
  39. Requires: qbanking
  40. Requires: slib
  41. Requires: perl-DateManip
  42. Requires: yelp
  43. Requires(pre,post,preun): GConf2
  44. Requires(post,postun): scrollkeeper >= 0.3.4
  45. Obsoletes: gnucash-backend-postgres
  46. Packager: kenta, inagaki
  47. %description
  48. GnuCash is a personal finance manager. A check-book like
  49. register GUI allows you to enter and track bank accounts,
  50. stocks, income and even currency trades. The interface is
  51. designed to be simple and easy to use, but is backed with
  52. double-entry accounting principles to ensure balanced books.
  53. %description -l ja
  54. GnuCashは 個人用財務管理をするアプリケーションです.
  55. 預金, 株式, 所得そして通貨取引さえ入力し、追跡することができる
  56. グラフィカルな小切手帖です.インターフェスはシンプルかつ簡単に
  57. 使用できるようにデザインされています.
  58. %prep
  59. %setup -q -a 1
  60. %patch0 -p1 -b .quiet
  61. %patch1 -p0 -b .aqbanking4
  62. %patch2 -p0 -b .goffice08
  63. %build
  64. msgfmt -v po/ja.po -o po/ja.gmo
  65. #autoconf -f
  66. #cp %{_datadir}/libtool/config.{sub,guess} .
  67. %configure --enable-error-on-warning=no \
  68. --disable-sql \
  69. --enable-ofx \
  70. --enable-hbci \
  71. --disable-schemas-install \
  72. --disable-static \
  73. --with-slibdir=/%{_lib}
  74. make LIBTOOL=%{_bindir}/libtool
  75. # doc build
  76. cd gnucash-docs-%{docver}
  77. #autoconf
  78. %configure
  79. make
  80. %install
  81. [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
  82. make install DESTDIR=$RPM_BUILD_ROOT LIBTOOL=/usr/bin/libtool
  83. %find_lang %name
  84. cd gnucash-docs-%{docver}
  85. make install DESTDIR=$RPM_BUILD_ROOT || :
  86. # vfolder desktop file install stuff
  87. mkdir -p $RPM_BUILD_ROOT/%{_datadir}/applications/
  88. desktop-file-install --vendor gnome --delete-original \
  89. --dir $RPM_BUILD_ROOT%{_datadir}/applications \
  90. --add-category X-Red-Hat-Extra \
  91. --add-category Application \
  92. --add-category Office \
  93. $RPM_BUILD_ROOT%{_datadir}/applications/gnucash.desktop
  94. echo "StartupWMClass=GnuCash" >> $RPM_BUILD_ROOT%{_datadir}/applications/gnome-gnucash.desktop
  95. rm -rf $RPM_BUILD_ROOT/%{_infodir} \
  96. $RPM_BUILD_ROOT/%{_includedir} \
  97. $RPM_BUILD_ROOT/%{_libdir}/lib*.a \
  98. $RPM_BUILD_ROOT/%{_libdir}/gnucash/lib*.a
  99. %clean
  100. [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
  101. %pre
  102. if [ "$1" -gt 1 ]; then
  103. export GCONF_CONFIG_SOURCE=$(gconftool-2 --get-default-source)
  104. for S in %{schemas}; do
  105. gconftool-2 --makefile-uninstall-rule ${S} >/dev/null
  106. done
  107. fi
  108. %post
  109. /sbin/ldconfig
  110. %{_bindir}/scrollkeeper-update -o %{_datadir}/omf/gnucash-docs
  111. export GCONF_CONFIG_SOURCE=$(gconftool-2 --get-default-source)
  112. for S in %{schemas}; do
  113. gconftool-2 --makefile-install-rule ${S} >/dev/null
  114. done
  115. %preun
  116. if [ "$1" -gt 0 ]; then
  117. export GCONF_CONFIG_SOURCE=$(gconftool-2 --get-default-source)
  118. for S in %{schemas}; do
  119. gconftool-2 --makefile-uninstall-rule ${S} >/dev/null
  120. done
  121. fi
  122. %postun
  123. /sbin/ldconfig
  124. %{_bindir}/scrollkeeper-update
  125. %files -f %{name}.lang
  126. %defattr(-,root,root,755)
  127. %{_sysconfdir}/gconf/schemas/*
  128. %config %{_sysconfdir}/gnucash
  129. %{_bindir}/*
  130. %{_libexecdir}/gnucash
  131. %{_libdir}/*
  132. %{_datadir}/omf/gnucash-docs
  133. %{_datadir}/gnucash
  134. %{_datadir}/gnome/help/gnucash
  135. %{_datadir}/xml/gnucash
  136. %{_datadir}/applications/*
  137. %{_datadir}/icons/hicolor/*/apps/*
  138. %{_mandir}/man*/*
  139. %doc AUTHORS COPYING ChangeLog* DOCUMENTERS HACKING NEWS README README.patches
  140. %doc doc/README.german doc/README.francais doc/guile-hackers.txt
  141. %doc doc/README.OFX
  142. %changelog
  143. * Tue Sep 14 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.2.9-3
  144. - rebuilt with new toolchain, aqbanking-4.2.4, goffice-0.8.10
  145. - added Patch1 for building with aqbanking-4.2.4
  146. - added Patch2 for building with goffice-0.8.10
  147. * Fri Jul 24 2009 NAKAMURA Kenta <kenta@vinelinux.org> 2.2.9-2
  148. - added slib to BuildRequires: and Requires:
  149. * Sat May 30 2009 NAKAMURA Kenta <kenta@vinelinux.org> 2.2.9-1
  150. - new upstream release
  151. * Wed Jan 14 2009 NAKAMURA Kenta <kenta@vinelinux.org> 2.2.8-1
  152. - new upstream release
  153. * Mon Jan 12 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 2.2.7-2
  154. - rebuild with guile-1.8.6
  155. - add BuildRequires: gwenhywfar-devel
  156. * Sun Oct 12 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.2.7-1
  157. - new upstream release
  158. - applied new versioning policy
  159. - built with aqbanking-3.7.2, gwenheyfar-3.4.1, libofx-0.9.0
  160. * Tue Mar 11 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.2.4-0vl1
  161. - new upstream release
  162. - rebuilt with goffice-0.6.0
  163. * Tue Jan 22 2008 NAKAMURA Kenta <kenta@vinelinux.org> 2.2.3-0vl1
  164. - new upstream release
  165. * Sun Jan 20 2008 NAKAMURA Kenta <kenta@vinelinux.org> 2.2.2-0vl1
  166. - new upstream release
  167. - enable HBCI (Home Banking Computer Interface)
  168. * Tue Jan 08 2008 NAKAMURA Kenta <kenta@vinelinux.org> 2.2.0-0vl2
  169. - rebuild with libofx-0.8.3 (libofx.so.3)
  170. * Sun Dec 30 2007 NAKAMURA Kenta <kenta@vinelinux.org> 2.2.0-0vl1
  171. - new upstream release
  172. - disable postgresql backend, as it is unmaintained upstream
  173. - added Patch0: gnucash-2.2.0-quiet.patch
  174. * Sun Oct 23 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.8.12-0vl1
  175. - new upstream release
  176. - remove BuildRequiers: autoconf213
  177. - update ja.po
  178. * Fri Jan 2 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.8.8-0vl2
  179. - new upstream release
  180. - added BuildPrereq: libtool-ltdl-devel
  181. * Fri Jan 2 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.8.8-0vl2
  182. - rebuild with new toolchains
  183. - update ja.po
  184. * Sun Nov 23 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.8.8-0vl1
  185. - new upstream release
  186. * Sun Oct 19 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.8.7-1vl1
  187. - merged gnucash-docs-1.8.3
  188. - added patch from Redhat Rawhide 1.8.7-1
  189. - changed Group, License
  190. * Mon Oct 6 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.8.7-0vl1
  191. - updated to 1.8.7
  192. - updated print.patch
  193. - overwrite prefs.scm
  194. - s/Copyright/License/
  195. * Tue May 13 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.8.3-0vl1
  196. - updated to 1.8.3
  197. - added datelength.patch
  198. - separated devel packages
  199. (and ofx, hbci, backend-postgres. But default is off)
  200. * Wed Jan 16 2002 Akira TAGOH <tagoh@gnome.gr.jp> 1.6.5-0vl3
  201. - Build against with new gal.
  202. * Fri Dec 28 2001 Akira TAGOH <tagoh@gnome.gr.jp> 1.6.5-0vl2
  203. - Fixed printing issue.
  204. * Tue Dec 25 2001 Akira TAGOH <tagoh@gnome.gr.jp> 1.6.5-0vl1
  205. - New upstream release.
  206. * Thu Jul 26 2001 <sagami@vinelinux.org>
  207. - 1.6.0-0vl3: fix to not to own mandir itself, use %%{find_lang}
  208. * Tue Jun 12 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org>
  209. - %%make line is now commented out (bash2 complains it)
  210. (BTW, what the hell is the macro %%make anyway? I don't even know...)
  211. * Tue Jun 12 2001 Daisuke SUZUKI <daisuke@linux.or.jp> 1.6.0-0vl1
  212. - update to 1.6.0 (stable release version)
  213. * Thu May 24 2001 Daisuke SUZUKI <daisuke@linux.or.jp> 1.5.96-0vl1
  214. - update to 1.5.96 ( pre beta for 1.6.0 )
  215. * Mon Apr 23 2001 Daisuke SUZUKI <daisuke@linux.or.jp> 1.5.6-1vl2
  216. - added japanese patch for reporting and printing (thanx tagoh-san)
  217. * Mon Apr 23 2001 Daisuke SUZUKI <daisuke@linux.or.jp> 1.5.6-1vl1
  218. - updated to 1.5.6
  219. * Thu Apr 05 2001 Daisuke SUZUKI <daisuke@linux.or.jp> 1.5.4-1vl2
  220. - added translation messages to ja.po
  221. - enable guppi
  222. * Mon Apr 2 2001 Kazuhisa TAKEI <takei@vinelinux.org> 1.5.4-1vl1
  223. - upstream update
  224. - fixed broken ja.po
  225. * Wed Mar 28 2001 Kazuhisa TAKEI <takei@vinelinux.org> 1.5.2-1vl2
  226. - fixed registor window cursor position problem(gnucash-cursor_pos.patch)
  227. * Mon Mar 26 2001 Kazuhisa TAKEI <takei@vinelinux.org> 1.5.2-1vl1
  228. - initial relese package