914fcde
%global srcnm Qalculate
914fcde
c0e51ae
Summary:	Multi-purpose calculator library
c0e51ae
Name:		libqalculate
90adb18
Version:	2.0.0
2acf084
Release:	5%{?dist}
c0e51ae
License:	GPLv2+
c0e51ae
Group:		System Environment/Libraries
914fcde
914fcde
URL:		https://qalculate.github.io/
914fcde
Source0:	https://github.com/%{srcnm}/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz
914fcde
914fcde
BuildRequires:	glib2-devel
914fcde
BuildRequires:	cln-devel
914fcde
BuildRequires:	intltool
c0e51ae
BuildRequires:	libxml2-devel
914fcde
BuildRequires:	readline-devel
914fcde
BuildRequires:	ncurses-devel
90adb18
BuildRequires:	curl-devel
90adb18
BuildRequires:	libicu-devel
90adb18
BuildRequires:	mpfr-devel
e1df2c7
BuildRequires:	perl(XML::Parser), gettext
59e9ab8
BuildRequires:	perl(Getopt::Long)
16c7ee7
16c7ee7
%description
16c7ee7
This library underpins the Qalculate! multi-purpose desktop calculator for
16c7ee7
GNU/Linux
16c7ee7
c0e51ae
%package	devel
c0e51ae
Summary:	Development tools for the Qalculate calculator library
c0e51ae
Group:		Development/Libraries
Rex Dieter 14c9fd2
Requires:	%{name}%{?_isa} = %{version}-%{release}
c0e51ae
Requires:	glib2-devel, libxml2-devel, cln-devel
ed4a112
Requires:       mpfr-devel
16c7ee7
c0e51ae
%description	devel
16c7ee7
The libqalculate-devel package contains the header files needed for development
16c7ee7
with libqalculate.
16c7ee7
c0e51ae
%package -n	qalculate
c0e51ae
Summary:	Multi-purpose calculator, text mode interface
c0e51ae
Group:		Applications/Engineering
Rex Dieter 14c9fd2
Requires:	%{name}%{?_isa} = %{version}-%{release}
c0e51ae
Requires:	pkgconfig
16c7ee7
c0e51ae
%description -n	qalculate
16c7ee7
Qalculate! is a multi-purpose desktop calculator for GNU/Linux. It is
16c7ee7
small and simple to use but with much power and versatility underneath.
16c7ee7
Features include customizable functions, units, arbitrary precision, plotting.
c0e51ae
This package provides the text-mode interface for Qalculate! The GTK and QT
c0e51ae
frontends are provided by qalculate-gtk and qalculate-kde packages resp.
16c7ee7
16c7ee7
%prep
16c7ee7
%setup -q
544bda5
544bda5
%build
16c7ee7
%configure --disable-static
5c62d2a
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
5c62d2a
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
90adb18
90adb18
%make_build
16c7ee7
16c7ee7
%install
90adb18
%make_install
914fcde
16c7ee7
%find_lang %{name}
16c7ee7
rm -f %{buildroot}/%{_libdir}/*.la
16c7ee7
16c7ee7
%post -p /sbin/ldconfig
16c7ee7
16c7ee7
%postun -p /sbin/ldconfig
16c7ee7
16c7ee7
%files -f %{name}.lang
ed4a112
%doc AUTHORS ChangeLog TODO
ed4a112
%license COPYING
16c7ee7
%{_libdir}/libqalculate.so.*
16c7ee7
%{_datadir}/qalculate/
59e9ab8
%{_docdir}/%{name}/*
16c7ee7
16c7ee7
%files devel
16c7ee7
%{_libdir}/libqalculate.so
16c7ee7
%{_libdir}/pkgconfig/libqalculate.pc
16c7ee7
%{_includedir}/libqalculate/
16c7ee7
16c7ee7
%files -n qalculate
16c7ee7
%{_bindir}/qalc
16c7ee7
16c7ee7
%changelog
2acf084
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.0.0-5
2acf084
- Escape macros in %%changelog
2acf084
5d6b8f9
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-4
5d6b8f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
5d6b8f9
12bc67b
* Thu Nov 30 2017 Pete Walter <pwalter@fedoraproject.org> - 2.0.0-3
12bc67b
- Rebuild for ICU 60.1
12bc67b
ed4a112
* Thu Sep 21 2017 Rex Dieter <rdieter@fedoraproject.org> - 2.0.0-2
ed4a112
- -devel: Requires: mpfr-devel
ed4a112
- use %%license
ed4a112
90adb18
* Fri Sep 15 2017 Mukundan Ragavan <nonamedotc@fedoraproject.org> - 2.0.0-1
90adb18
- Update to 2.0.0
90adb18
- Drop older patches
90adb18
- Update buildrequires (curl-devel, libicu-devel and mpfr-devel)
90adb18
b3a890f
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.10-7
b3a890f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
b3a890f
6dc5bb3
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.10-6
6dc5bb3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
6dc5bb3
8c48bdf
* Sat Feb 11 2017 Mukundan Ragavan <nonamedotc@fedoraproject.org> - 0.9.10-5
8c48bdf
- specfile cleanup
8c48bdf
9cf57d9
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.10-4
9cf57d9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
9cf57d9
83d42d4
* Sat Jan 28 2017 Mukundan Ragavan <nonamedotc@gmail.com> - 0.9.10-3
83d42d4
- rebuilt
83d42d4
Igor Gnatenko 0b63c72
* Thu Jan 12 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.9.10-2
Igor Gnatenko 0b63c72
- Rebuild for readline 7.x
Igor Gnatenko 0b63c72
914fcde
* Mon Nov 28 2016 Mukundan Ragavan <nonamedotc@fedoraproject.org> - 0.9.10-1
914fcde
- Update to 0.9.10
914fcde
9a8c40d
* Mon Apr 25 2016 Than Ngo <than@redhat.com> - 0.9.7-18
9a8c40d
- bz#953615, fix global variable buffer
9a8c40d
59e9ab8
* Thu Feb 18 2016 Mukundan Ragavan <nonamedotc@fedoraproject.org> - 0.9.7-17
59e9ab8
- Add BR:perl(Getopt::Long)
2acf084
- Added doc to %%files section
59e9ab8
3ac5b10
* Tue Feb 16 2016 Mukundan Ragavan <nonamedotc@fedoraproject.org> - 0.9.7-16
3ac5b10
- Added patch to fix GCC-6 FTBFS. Thanks Yaakov Selkowitz
3ac5b10
fd81a05
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.7-15
fd81a05
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
fd81a05
Rex Dieter 9e86efe
* Wed Jun 17 2015 Rex Dieter <rdieter@fedoraproject.org> 0.9.7-14
Rex Dieter 9e86efe
- workaround (mostly) needless stderr spam: failed to load external entity .../eurofxref-daily.xml
Rex Dieter 9e86efe
0167fcf
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.7-13
0167fcf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
0167fcf
Rex Dieter 14c9fd2
* Thu Apr 09 2015 Rex Dieter <rdieter@fedoraproject.org> 0.9.7-12
Rex Dieter 14c9fd2
- rebuild(gcc5), tighten subpkg deps via %%{?_isa}
Rex Dieter 14c9fd2
93d7155
* Mon Feb 23 2015 Rex Dieter <rdieter@fedoraproject.org> 0.9.7-11
93d7155
- rebuild (gcc5)
93d7155
aa631ed
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.7-10
aa631ed
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
aa631ed
94fe046
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.7-9
94fe046
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
94fe046
Deji Akingunola 0e2bdad
* Thu Aug 15 2013 Deji Akingunola <dakingun@gmail.com> - 0.9.7-8
Deji Akingunola 0e2bdad
- Fix for versioned docdir build error
Deji Akingunola 0e2bdad
9b4bafc
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.7-7
9b4bafc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
9b4bafc
2e9b371
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.7-6
2e9b371
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
2e9b371
bf59fc8
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.7-5
bf59fc8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
bf59fc8
d5e2ac8
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.7-4
d5e2ac8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
d5e2ac8
fdbd553
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.7-3
fdbd553
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
fdbd553
6c794e0
* Sat Feb 13 2010 Rex Dieter <rdieter@fedorproject.org> - 0.9.7-2
6c794e0
- respin pkgconfig_private patch for implicit linkage (#564920)
6c794e0
6df9922
* Fri Jan 29 2010 Deji Akingunola <dakingun@gmail.com> - 0.9.7-1
6df9922
- Update to 0.9.7
6df9922
b50fdb4
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.6-8
b50fdb4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
b50fdb4
544bda5
* Mon Jul 06 2009 Rex Dieter <rdieter@fedoraproject.org> 0.9.6-7
544bda5
- move auto*foo to prep stage
544bda5
- trim pkg-config-related deps (#509840)
544bda5
532cc25
* Sun Jul 05 2009 Deji Akingunola <dakingun@gmail.com> - 0.9.6-6
532cc25
- Rebuild for cln-1.3.0
532cc25
3bde16f
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.6-5
3bde16f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
3bde16f
1bc70bf
* Wed Feb 27 2008 Deji Akingunola <dakingun@gmail.com> - 0.9.6-4
1bc70bf
- Rebuild (with patch) for cln-1.2
1bc70bf
c0e51ae
* Sun Feb 10 2008 Deji Akingunola <dakingun@gmail.com> - 0.9.6-3
c0e51ae
- Rebuild for gcc43
c0e51ae
169decc
* Sat Aug 25 2007 Deji Akingunola <dakingun@gmail.com> - 0.9.6-2
169decc
- Rebuild
169decc
4fdae45
* Fri Aug 03 2007 Deji Akingunola <dakingun@gmail.com> - 0.9.6-2
4fdae45
- License tag update
4fdae45
5c62d2a
* Sun Jul 01 2007 Deji Akingunola <dakingun@gmail.com> - 0.9.6-1
5c62d2a
- Update to new release
5c62d2a
951454f
* Tue Jan 02 2007 Deji Akingunola <dakingun@gmail.com> - 0.9.5-1
951454f
- New release
951454f
ec15e46
* Mon Aug 28 2006 Deji Akingunola <dakingun@gmail.com> - 0.9.4-4
ec15e46
- Rebuild for FC6
ec15e46
8c48bdf
* Wed Jun 28 2006 Deji Akingunola <dakingun@gmail.com> - 0.9.4-3
b0632ba
- Arbitrarily bump the release field to fix broken update path
b0632ba
8c48bdf
* Tue Jun 27 2006 Deji Akingunola <dakingun@gmail.com> - 0.9.4-1
885a644
- New version 0.9.4
885a644
8c48bdf
* Sun Apr 30 2006 Deji Akingunola <dakingun@gmail.com> - 0.9.3-2
8ecb1d4
- More BRs from Paul Howarth (#193481)
8ecb1d4
b6cc250
* Thu Mar 30 2006 Deji Akingunola <dakingun@gmail.com> - 0.9.3-1
b6cc250
- Update to newer version
b6cc250
f069a2f
* Mon Feb 13 2006 Deji Akingunola <dakingun@gmail.com> - 0.9.2-2
f069a2f
- Rebuild for Fedora Extras 5
f069a2f
667d0a6
* Tue Dec 27 2005 Deji Akingunola <dakingun@gmail.com> - 0.9.2-1
667d0a6
- Upgrade to new version
667d0a6
75574e2
* Sat Nov 05 2005 Deji Akingunola <dakingun@gmail.com> - 0.9.0-1
75574e2
- Upgrade to new version
75574e2
d996614
* Mon Oct 17 2005 Deji Akingunola <deji.aking@gmail.com> - 0.8.2-3
d996614
- Add patch to allow build with cln-1.1.10
d996614
913f69e
* Mon Oct 17 2005 Deji Akingunola <deji.aking@gmail.com> - 0.8.2-2
913f69e
- Bump the release tag to make even with FC-4 and FC-3 branches
913f69e
16c7ee7
* Tue Oct 11 2005 Paul Howarth <paul@city-fan.org> - 0.8.2-1
16c7ee7
- Split off separate qalculate subpackage
16c7ee7
- Update to 0.8.2
16c7ee7
16c7ee7
* Mon Oct 10 2005 Paul Howarth <paul@city-fan.org> - 0.8.1.2-2
16c7ee7
- Don't include static libraries
16c7ee7
- Include license text
16c7ee7
- Don't include README, which only contains a URL
16c7ee7
- Include AUTHORS & TODO
16c7ee7
- Remove redundant manual dependencies
16c7ee7
- Split off separate devel subpackage
16c7ee7
- Be more explicit in %%files list
16c7ee7
- Add %%post and %%postun scripts to run ldconfig
16c7ee7
- Use DESTDIR with make instead of %%makeinstall
16c7ee7
- Add buildreqs readline-devel and ncurses-devel
16c7ee7
16c7ee7
* Wed Oct 05 2005 Deji Akingunola <deji.aking@gmail.com> - 0.8.1.2-1
16c7ee7
- Initial package