libqalculate-vl.spec 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. Summary: Multi-purpose calculator library
  2. Name: libqalculate
  3. Version: 0.9.6
  4. Release: 9%{?_dist_release}
  5. License: GPLv2+
  6. Group: System Environment/Libraries
  7. URL: http://qalculate.sourceforge.net/
  8. Source0: http://dl.sf.net/sourceforge/qalculate/%{name}-%{version}.tar.gz
  9. Patch0: libqalculate-gcc43.patch
  10. Patch1: libqalculate-cln12.patch
  11. Patch2: libqalculate-0.9.6-pkgconfig_private.patch
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. BuildRequires: glib2-devel, cln-devel
  14. BuildRequires: libxml2-devel
  15. BuildRequires: readline-devel, ncurses-devel
  16. BuildRequires: perl-XML-Parser, gettext
  17. BuildRequires: intltool, libtool, automake, autoconf
  18. %description
  19. This library underpins the Qalculate! multi-purpose desktop calculator for
  20. GNU/Linux
  21. %package devel
  22. Summary: Development tools for the Qalculate calculator library
  23. Group: Development/Libraries
  24. Requires: %{name} = %{version}-%{release}
  25. Requires: glib2-devel, libxml2-devel, cln-devel
  26. %description devel
  27. The libqalculate-devel package contains the header files needed for development
  28. with libqalculate.
  29. %package -n qalculate
  30. Summary: Multi-purpose calculator, text mode interface
  31. Group: Applications/Engineering
  32. Requires: %{name} = %{version}-%{release}
  33. Requires: pkgconfig
  34. %description -n qalculate
  35. Qalculate! is a multi-purpose desktop calculator for GNU/Linux. It is
  36. small and simple to use but with much power and versatility underneath.
  37. Features include customizable functions, units, arbitrary precision, plotting.
  38. This package provides the text-mode interface for Qalculate! The GTK and QT
  39. frontends are provided by qalculate-gtk and qalculate-kde packages resp.
  40. %prep
  41. %setup -q
  42. #patch0 -p0 -b .gcc43
  43. %patch1 -p0 -b .cln
  44. %patch2 -p1 -b .pkgconfig_private
  45. intltoolize --copy --force --automake
  46. libtoolize --force --copy
  47. aclocal
  48. autoheader
  49. automake
  50. autoconf
  51. %build
  52. %configure --disable-static
  53. sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
  54. sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
  55. make %{?_smp_mflags}
  56. %install
  57. rm -rf %{buildroot}
  58. make DESTDIR=%{buildroot} install
  59. %find_lang %{name}
  60. rm -f %{buildroot}/%{_libdir}/*.la
  61. %clean
  62. rm -rf %{buildroot}
  63. %post -p /sbin/ldconfig
  64. %postun -p /sbin/ldconfig
  65. %files -f %{name}.lang
  66. %defattr(-,root,root,-)
  67. %doc AUTHORS ChangeLog COPYING TODO
  68. %{_libdir}/libqalculate.so.*
  69. %{_datadir}/qalculate/
  70. %files devel
  71. %defattr(-,root,root,-)
  72. %{_libdir}/libqalculate.so
  73. %{_libdir}/pkgconfig/libqalculate.pc
  74. %{_includedir}/libqalculate/
  75. %files -n qalculate
  76. %defattr(-,root,root,-)
  77. %{_bindir}/qalc
  78. %changelog
  79. * Sun Aug 30 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.9.6-9
  80. - Initial build for Vine Linux
  81. * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.6-8
  82. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  83. * Mon Jul 06 2009 Rex Dieter <rdieter@fedoraproject.org> 0.9.6-7
  84. - move auto*foo to prep stage
  85. - trim pkg-config-related deps (#509840)
  86. * Sun Jul 05 2009 Deji Akingunola <dakingun@gmail.com> - 0.9.6-6
  87. - Rebuild for cln-1.3.0
  88. * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.6-5
  89. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  90. * Wed Feb 27 2008 Deji Akingunola <dakingun@gmail.com> - 0.9.6-4
  91. - Rebuild (with patch) for cln-1.2
  92. * Sun Feb 10 2008 Deji Akingunola <dakingun@gmail.com> - 0.9.6-3
  93. - Rebuild for gcc43
  94. * Sat Aug 25 2007 Deji Akingunola <dakingun@gmail.com> - 0.9.6-2
  95. - Rebuild
  96. * Fri Aug 03 2007 Deji Akingunola <dakingun@gmail.com> - 0.9.6-2
  97. - License tag update
  98. * Sun Jul 01 2007 Deji Akingunola <dakingun@gmail.com> - 0.9.6-1
  99. - Update to new release
  100. * Tue Jan 02 2007 Deji Akingunola <dakingun@gmail.com> - 0.9.5-1
  101. - New release
  102. * Mon Aug 28 2006 Deji Akingunola <dakingun@gmail.com> - 0.9.4-4
  103. - Rebuild for FC6
  104. * Thu Jun 28 2006 Deji Akingunola <dakingun@gmail.com> - 0.9.4-3
  105. - Arbitrarily bump the release field to fix broken update path
  106. * Wed Jun 27 2006 Deji Akingunola <dakingun@gmail.com> - 0.9.4-1
  107. - New version 0.9.4
  108. * Tue Apr 30 2006 Deji Akingunola <dakingun@gmail.com> - 0.9.3-2
  109. - More BRs from Paul Howarth (#193481)
  110. * Thu Mar 30 2006 Deji Akingunola <dakingun@gmail.com> - 0.9.3-1
  111. - Update to newer version
  112. * Mon Feb 13 2006 Deji Akingunola <dakingun@gmail.com> - 0.9.2-2
  113. - Rebuild for Fedora Extras 5
  114. * Tue Dec 27 2005 Deji Akingunola <dakingun@gmail.com> - 0.9.2-1
  115. - Upgrade to new version
  116. * Sat Nov 05 2005 Deji Akingunola <dakingun@gmail.com> - 0.9.0-1
  117. - Upgrade to new version
  118. * Mon Oct 17 2005 Deji Akingunola <deji.aking@gmail.com> - 0.8.2-3
  119. - Add patch to allow build with cln-1.1.10
  120. * Mon Oct 17 2005 Deji Akingunola <deji.aking@gmail.com> - 0.8.2-2
  121. - Bump the release tag to make even with FC-4 and FC-3 branches
  122. * Tue Oct 11 2005 Paul Howarth <paul@city-fan.org> - 0.8.2-1
  123. - Split off separate qalculate subpackage
  124. - Update to 0.8.2
  125. * Mon Oct 10 2005 Paul Howarth <paul@city-fan.org> - 0.8.1.2-2
  126. - Don't include static libraries
  127. - Include license text
  128. - Don't include README, which only contains a URL
  129. - Include AUTHORS & TODO
  130. - Remove redundant manual dependencies
  131. - Split off separate devel subpackage
  132. - Be more explicit in %%files list
  133. - Add %%post and %%postun scripts to run ldconfig
  134. - Use DESTDIR with make instead of %%makeinstall
  135. - Add buildreqs readline-devel and ncurses-devel
  136. * Wed Oct 05 2005 Deji Akingunola <deji.aking@gmail.com> - 0.8.1.2-1
  137. - Initial package