kmymoney-vl.spec 10 KB

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