kmymoney-vl.spec 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342
  1. Summary: Personal finance
  2. Name: kmymoney
  3. Version: 4.6.3
  4. Release: 1%{?_dist_release}
  5. Group: Applications/Productivity
  6. # kmm itself is GPLv2+ , but kdchart is GPLv2 or GPLv3
  7. License: GPLv2 or GPLv3
  8. URL: http://kmymoney2.sourceforge.net/
  9. Source0: http://downloads.sourceforge.net/sourceforge/kmymoney2/kmymoney-%{version}.tar.bz2
  10. ## upstream patches
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. BuildRequires: libboost-devel
  13. BuildRequires: cppunit-devel
  14. BuildRequires: desktop-file-utils
  15. BuildRequires: gettext
  16. BuildRequires: gpgme-devel
  17. BuildRequires: glibmm-devel
  18. BuildRequires: kdepimlibs-devel
  19. #BuildRequires: koffice-kdchart-devel
  20. BuildRequires: libical-devel
  21. BuildRequires: libxml2-devel
  22. BuildRequires: libofx-devel
  23. BuildRequires: libxml++-devel
  24. BuildRequires: libalkimia-devel
  25. BuildRequires: soprano-devel
  26. BuildRequires: gwenhywfar-devel
  27. BuildRequires: gmp-devel
  28. Requires: %{name}-libs = %{version}-%{release}
  29. Obsoletes: kmymoney2 < 2
  30. Provides: kmymoney2 = %{version}-%{release}
  31. Obsoletes: kmymoney2-aqbanking < 2
  32. Provides: kmymoney2-aqbanking = %{version}-%{release}
  33. %description
  34. KMyMoney strives to be the best personal finance manager.
  35. The ultimate objectives of KMyMoney are...
  36. * Accuracy. Using time tested double entry accounting principles
  37. helps ensure that your finances are kept in correct order.
  38. * Ease of use. Strives to be the easiest open source personal
  39. finance manager to use, especially for the non-technical user.
  40. * Familiar Features. Intends to provide all important features
  41. found in the commercially-available, personal finance managers.
  42. %package libs
  43. Summary: Run-time libraries for %{name}
  44. Group: System Environment/Libraries
  45. Requires: %{name} = %{version}-%{release}
  46. Obsoletes: kmymoney2-libs < 2
  47. %description libs
  48. %{summary}.
  49. %package devel
  50. Summary: Development files for %{name}
  51. Group: Development/Libraries
  52. Requires: %{name}-libs%{?_isa} = %{version}-%{release}
  53. Requires: kdelibs4-devel
  54. Obsoletes: kmymoney2-devel < 2
  55. %description devel
  56. %{summary}.
  57. %prep
  58. %setup -q -n kmymoney-%{version}
  59. %build
  60. mkdir -p %{_target_platform}
  61. pushd %{_target_platform}
  62. %{cmake} \
  63. -DCMAKE_BUILD_TYPE=release \
  64. -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
  65. -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
  66. -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
  67. ..
  68. popd
  69. make %{?_smp_mflags} -C %{_target_platform}
  70. # fix world writable perms
  71. find . -type f -name 'ui_*.h' -exec chmod 0644 {} ';'
  72. %install
  73. rm -rf %{buildroot}
  74. make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
  75. %find_lang kmymoney --with-kde
  76. %check
  77. desktop-file-validate %{buildroot}%{_datadir}/applications/kde4/kmymoney.desktop
  78. # make test
  79. %clean
  80. rm -rf %{buildroot}
  81. %post libs -p /sbin/ldconfig
  82. %postun libs -p /sbin/ldconfig
  83. %post
  84. touch --no-create %{_datadir}/icons/locolor &> /dev/null || :
  85. touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
  86. %postun
  87. if [ $1 -eq 0 ] ; then
  88. update-desktop-database -q &> /dev/null
  89. update-mime-database %{_datadir}/mime &> /dev/null
  90. touch --no-create %{_datadir}/icons/locolor &> /dev/null
  91. touch --no-create %{_datadir}/icons/hicolor &> /dev/null
  92. gtk-update-icon-cache %{_datadir}/icons/locolor &> /dev/null || :
  93. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
  94. fi
  95. %posttrans
  96. update-desktop-database -q &> /dev/null
  97. update-mime-database %{_datadir}/mime &> /dev/null
  98. gtk-update-icon-cache %{_datadir}/icons/locolor &> /dev/null || :
  99. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
  100. %files -f kmymoney.lang
  101. %defattr(-,root,root,-)
  102. %doc AUTHORS ChangeLog COPYING TODO
  103. %doc README.Fileformats README.ofx
  104. %{_bindir}/kmymoney
  105. %{_datadir}/kde4/apps/kmymoney/
  106. %{_datadir}/kde4/apps/kmm_*/
  107. %{_datadir}/applications/kde4/kmymoney.desktop
  108. %{_datadir}/config.kcfg/kmymoney.kcfg
  109. %{_datadir}/config/csvimporterrc
  110. %{_datadir}/kde4/services/*.desktop
  111. %{_datadir}/kde4/servicetypes/*.desktop
  112. %{_mandir}/man1/kmymoney.1.gz
  113. %{_datadir}/mime/packages/x-kmymoney.xml
  114. %{_datadir}/icons/hicolor/*/*/*
  115. %{_datadir}/icons/locolor/*/*/*
  116. %{_libdir}/kde4/*.so
  117. %files libs
  118. %defattr(-,root,root,-)
  119. %{_libdir}/libkmm_kdchart.so.4*
  120. %{_libdir}/libkmm_mymoney.so.4*
  121. %{_libdir}/libkmm_plugin.so.4*
  122. %{_libdir}/libkmm_widgets.so.4*
  123. %files devel
  124. %defattr(-,root,root,-)
  125. %{_includedir}/kde4/kmymoney/
  126. %{_libdir}/libkmm_*.so
  127. %changelog
  128. * Sun Sep 02 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 4.6.3-1
  129. - new upstream release
  130. - remove Patch50 (kmymoney-3.96.1-rpath.patch)
  131. - add BuildRequires: gmp-devel, libalkimia-devel
  132. - remove BuildRequires: q4banking-devel
  133. * Sat May 14 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 4.5-3
  134. - add BuildRequires: soprano-devel, gwenhywfar-devel
  135. * Wed Sep 15 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 4.5-2
  136. - Initial build for VineLinux
  137. * Mon Aug 16 2010 Rex Dieter <rdieter@fedoraproject.org> - 4.5-1
  138. - kmymoney-4.5
  139. * Sun May 16 2010 Rex Dieter <rdieter@fedoraproject.org> - 3.98.0-1
  140. - kmymoney-3.98.0
  141. * Wed Apr 07 2010 Rex Dieter <rdieter@fedoraproject.org> - 3.97.2-1
  142. - kmymoney-3.97.2
  143. - License: GPLv2 or GPLv3
  144. - omit .directory files from packaging
  145. - -debuginfo: fix world-writable perms in generated headers
  146. * Fri Apr 02 2010 Rex Dieter <rdieter@fedoraproject.org> - 3.97.0-1
  147. - kmymoney-3.97.0
  148. - use external/shared kdchart
  149. * Fri Mar 19 2010 Rex Dieter <rdieter@fedoraproject.org> - 3.96.1-1
  150. - kmymoney-3.96.1 (for kde4, beta)
  151. - Obsoletes: kmymoney2 (and friends)
  152. * Mon Feb 15 2010 Rex Dieter <rdieter@fedoraproject.org> - 1.0.3-1
  153. - kmymoney2-1.0.3
  154. * Thu Jan 21 2010 Bill Nottingham <notting@redhat.com> - 1.0.2-2
  155. - rebuild against latest aqbanking/qbanking
  156. * Sun Oct 04 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.0.2-1
  157. - kmymoney2-1.0.2
  158. * Sun Sep 06 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.0.1-1
  159. - kmymoney2-1.0.1
  160. * Wed Aug 19 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.0.0-1
  161. - kmymoney2-1.0.0
  162. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.3-4
  163. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  164. * Fri Jul 17 2009 Rex Dieter <rdieter@fedoraproject.org> - 0.9.3-3
  165. - validate .desktop file
  166. - -libs unconditional
  167. - use %%_isa where appropriate
  168. - optimize scriptlets
  169. * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.3-2
  170. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  171. * Tue Feb 24 2009 Rex Dieter <rdieter@fedoraproject.org> 0.9.3-1
  172. - kmymoney2-0.9.3
  173. * Mon Sep 15 2008 Rex Dieter <rdieter@fedoraproject.org> 0.9.2-3
  174. - respun tarball
  175. * Sun Sep 14 2008 Rex Dieter <rdieter@fedoraproject.org> 0.9.2-1
  176. - kmymoney2-0.9.2
  177. * Tue Sep 9 2008 Bill Nottingham <notting@redhat.com> 0.9-2
  178. - rebuild for new libofx ABI
  179. * Wed May 14 2008 Rex Dieter <rdieter@fedoraproject.org> 0.9-1
  180. - kmymoney2-0.9
  181. * Wed Mar 26 2008 Rex Dieter <rdieter@fedoraproject.org> 0.8.9-1
  182. - kmymoney2-0.8.9
  183. - --disable-kbanking (requires aqbanking,kbanking fix/update)
  184. - drop multilib upgrade hack
  185. * Fri Feb 22 2008 Rex Dieter <rdieter@fedoraproject.org> 0.8.8-3
  186. - gcc43 patch (#434398)
  187. - multiarch conflicts, -libs subpkg (#341821)
  188. * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.8.8-2
  189. - Autorebuild for GCC 4.3
  190. * Wed Dec 19 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 0.8.8-1
  191. - kmymoney2-0.8.8
  192. - --enable-kbanking
  193. * Sat Dec 08 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 0.8.7-5
  194. - BR: kdelibs3-devel
  195. * Sat Aug 25 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 0.8.7-4
  196. - respin (BuildID)
  197. * Thu Aug 09 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 0.8.7-3
  198. - License: GPLv2+
  199. * Wed Jul 25 2007 Jesse Keating <jkeating@redhat.com> 0.8.7-2
  200. - Rebuild for RH #249435
  201. * Mon Jul 23 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 0.8.7-1
  202. - kmymoney2-0.8.7
  203. * Sat Mar 10 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 0.8.6-1
  204. - kmymoney2-0.8.6
  205. - fix Obsoletes: kmymoney
  206. * Thu Jan 11 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 0.8.5-3
  207. - fix _enable_ofxbanking macro usage to re-enable ofx support
  208. * Tue Nov 28 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.8.5-2
  209. - drop desktop-file-utils bits
  210. - Ob/Pr: kmymoney(-devel), upstream/rpmforge calls it kmymoney
  211. * Thu Aug 31 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.8.5-1
  212. - 0.8.5
  213. * Tue Aug 29 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.8.4-2
  214. - --disable-final (for now)
  215. - BR: gettext
  216. * Sun May 21 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.8.4-1
  217. - 0.8.4
  218. * Thu Apr 13 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.8.3-3
  219. - desktop-file-install --vendor=""
  220. * Wed Feb 22 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.8.3-1
  221. - 0.8.3
  222. * Fri Feb 10 2006 Rex Dieter <rexdieter[AT]users.sf.net>
  223. - fc5: gcc/glibc respin
  224. * Sat Dec 31 2005 Rex Dieter <rexdieter[AT]users.sf.net> 0.8.2-1
  225. - 0.8.2
  226. * Fri Dec 23 2005 Rex Dieter <rexdieter[AT]users.sf.net> 0.8.1-7
  227. - gcc41 patch
  228. * Fri Dec 23 2005 Rex Dieter <rexdieter[AT]users.sf.net> 0.8.1-6
  229. - cleanup ofx deps
  230. * Fri Dec 23 2005 Rex Dieter <rexdieter[AT]users.sf.net> 0.8.1-5
  231. - cleanup %%post
  232. - fc5 respin for new(er) libofx
  233. * Mon Nov 14 2005 Rex Dieter <rexdieter[AT]users.sf.net> 0.8.1-4
  234. - relax BR: kdelibs-devel to 3.3 (for aurora/sparc, #173133)
  235. * Thu Nov 10 2005 Rex Dieter <rexdieter[AT]users.sf.net> 0.8.1-3
  236. - fix relative symlinks
  237. * Wed Nov 09 2005 Rex Dieter <rexdieter[AT]users.sf.net> 0.8.1-2
  238. - qt-3.3.5 patch
  239. - 'make check' workaround (kde bug #115863)
  240. - trim %%description
  241. * Sat Nov 05 2005 Rex Dieter <rexdieter[AT]users.sf.net> 0.8.1-1
  242. - 0.8.1
  243. * Fri Nov 04 2005 Rex Dieter <rexdieter[AT]users.sf.net> 0.8-5
  244. - drop useless macros
  245. - use %%fedora,%%rhel to conditionalize ofxbanking support
  246. * Fri Oct 21 2005 Rex Dieter <rexdieter[AT]users.sf.net> 0.8-4
  247. - %%post,%%postun: gtk-update-icon-cache, update-desktop-database
  248. - omit lib*.la
  249. - x86_64: set QTDIR/QTLIB
  250. * Thu Sep 01 2005 Rex Dieter <rexdieter[AT]users.sf.net> 0.8-3
  251. - BR: libofx-devel
  252. * Tue Aug 30 2005 Rex Dieter <rexdieter[AT]users.sf.net> 0.8-2
  253. - simplify specfile
  254. - fix build
  255. * Fri Aug 12 2005 Rex Dieter <rexdieter[AT]users.sf.net> 0.8-1
  256. - 0.8