kmymoney-vl.spec 9.9 KB

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