libalkimia-vl.spec 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. Name: libalkimia
  2. Summary: Financial library
  3. Version: 4.3.2
  4. Release: 3%{?_dist_release}
  5. License: LGPLv2+
  6. URL: http://kde-apps.org/content/show.php/libalkimia?content=137323
  7. Group: System Environment/Libraries
  8. Source0: http://kde-apps.org/CONTENT/content-files/137323-libalkimia-%{version}.tar.bz2
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  10. BuildRequires: cmake
  11. BuildRequires: gmp-devel
  12. BuildRequires: kdelibs4-devel
  13. BuildRequires: pkgconfig
  14. %description
  15. libalkimia is a library with common classes and functionality used by
  16. finance applications for the KDE SC.
  17. Currently it supports a common class to represent monetary values with
  18. arbitrary precision.
  19. %package devel
  20. Summary: Development files for %{name}
  21. Group: Development/Libraries
  22. Requires: %{name} = %{version}-%{release}
  23. Requires: gmp-devel
  24. Requires: kdelibs4-devel
  25. Requires: pkgconfig
  26. %description devel
  27. %{summary}.
  28. %prep
  29. %setup -q
  30. %build
  31. mkdir -p %{_target_platform}
  32. pushd %{_target_platform}
  33. %cmake \
  34. -DCMAKE_BUILD_TYPE=release \
  35. -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
  36. -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
  37. -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
  38. -DLIB_INSTALL_DIR:PATH=%{_libdir} \
  39. -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
  40. -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
  41. ..
  42. popd
  43. make %{?_smp_mflags} -C %{_target_platform}
  44. %install
  45. make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
  46. %check
  47. export PKG_CONFIG_PATH=%{buildroot}%{_datadir}/pkgconfig:%{buildroot}%{_libdir}/pkgconfig
  48. test "$(pkg-config --modversion libalkimia)" = "%{version}"
  49. %post -p /sbin/ldconfig
  50. %postun -p /sbin/ldconfig
  51. %files
  52. %defattr(-,root,root,-)
  53. %{_libdir}/libalkimia.so.*
  54. %files devel
  55. %defattr(-,root,root,-)
  56. %{_includedir}/kde4/alkimia
  57. %{_libdir}/libalkimia.so
  58. %{_libdir}/pkgconfig/libalkimia.pc
  59. %{_datadir}/kde4/apps/cmake/modules/FindLibAlkimia.cmake
  60. %changelog
  61. * Sun Jul 10 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.3.2-3
  62. - rebuild with gcc-5.4.0
  63. * Mon Oct 27 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 4.3.2-2
  64. - added BR: cmake
  65. - added Group tag
  66. * Sun Sep 02 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.3.2-1
  67. - initial build for Vine Linux
  68. * Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.3.2-2
  69. - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
  70. * Sat Feb 04 2012 Rex Dieter <rdieter@fedoraproject.org> 4.3.2-1
  71. - 4.3.2
  72. * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.3.1-5
  73. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  74. * Wed Nov 02 2011 Rex Dieter <rdieter@fedoraproject.org> 4.3.1-4
  75. - rebuild (gmp)
  76. * Mon Aug 22 2011 Rex Dieter <rdieter@fedoraproject.org> 4.3.1-3
  77. - .spec cosmetics
  78. * Sat Aug 20 2011 Rex Dieter <rdieter@fedoraproject.org> 4.3.1-2
  79. - BR: gmp-devel
  80. - %%check : don't ignore errors
  81. * Sat Aug 06 2011 Rex Dieter <rdieter@fedoraproject.org> 4.3.1-1
  82. - 4.3.1
  83. * Tue Jun 21 2011 Rex Dieter <rdieter@fedoraproject.org> 4.3.0-1
  84. - first try