2016-08-30 15:18:34 +00:00
|
|
|
# versioned documentation for old releases
|
|
|
|
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
|
|
|
|
|
2016-08-30 14:09:43 +00:00
|
|
|
Name: mpdecimal
|
|
|
|
Version: 2.4.2
|
2018-07-13 11:05:30 +00:00
|
|
|
Release: 10%{?dist}
|
2016-08-30 14:09:43 +00:00
|
|
|
Summary: Library for general decimal arithmetic
|
|
|
|
License: BSD
|
|
|
|
|
|
|
|
URL: http://www.bytereef.org/mpdecimal/index.html
|
|
|
|
Source0: http://www.bytereef.org/software/mpdecimal/releases/mpdecimal-%{version}.tar.gz
|
|
|
|
Source1: http://speleotrove.com/decimal/dectest.zip
|
|
|
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: unzip
|
|
|
|
|
|
|
|
%description
|
|
|
|
The package contains a library limpdec implementing General Decimal Arithmetic
|
|
|
|
Specification. The specification, written by Mike Cowlishaw from IBM, defines
|
|
|
|
a general purpose arbitrary precision data type together with rigorously
|
|
|
|
specified functions and rounding behavior.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
Summary: Development headers for mpdecimal library
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
The package contains development headers for the mpdecimal library.
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
Summary: Documentation for mpdecimal library
|
|
|
|
# docs is FBSDDL
|
|
|
|
# bundles underscore.js: MIT
|
|
|
|
# bundles jquery: MIT or GPLv2
|
|
|
|
# jquery bundles sizzle.js: MIT and BSD and GPL
|
|
|
|
License: FBSDDL and BSD and GPL
|
|
|
|
BuildArch: noarch
|
|
|
|
Provides: bundled(js-jquery) = 1.7.2
|
|
|
|
Provides: bundled(js-underscore) = 1.4.4
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
The package contains documentation for the mpdecimal library.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup
|
|
|
|
unzip -d tests/testdata %{SOURCE1}
|
|
|
|
|
|
|
|
%build
|
|
|
|
%configure
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%check
|
|
|
|
make check
|
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
|
|
|
rm -f %{buildroot}%{_libdir}/*.a
|
2016-08-30 15:18:34 +00:00
|
|
|
|
|
|
|
# license will go into dedicated directory
|
|
|
|
rm -f %{buildroot}%{_docdir}/%{name}/LICENSE.txt
|
|
|
|
|
|
|
|
# relocate documentation if versioned documentation is used
|
|
|
|
if [ "%{_pkgdocdir}" != "%{_docdir}/%{name}" ]; then
|
|
|
|
install -d -m 0755 %{buildroot}%{_pkgdocdir}
|
|
|
|
mv -v %{buildroot}%{_docdir}/%{name}/* %{buildroot}%{_pkgdocdir}/
|
|
|
|
fi
|
2016-08-30 14:09:43 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%license LICENSE.txt
|
|
|
|
%{_libdir}/libmpdec.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_libdir}/libmpdec.so
|
|
|
|
%{_includedir}/mpdecimal.h
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
%license doc/LICENSE.txt
|
|
|
|
%doc %{_pkgdocdir}
|
|
|
|
|
2019-01-22 17:40:26 +00:00
|
|
|
%ldconfig_scriptlets
|
2016-08-30 14:09:43 +00:00
|
|
|
|
|
|
|
%changelog
|
2018-07-13 11:05:30 +00:00
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.2-10
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-02-08 03:20:49 +00:00
|
|
|
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.2-9
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2017-08-03 03:36:41 +00:00
|
|
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.2-8
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
|
2017-07-26 22:19:35 +00:00
|
|
|
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.2-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-02-10 21:45:32 +00:00
|
|
|
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.2-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-08-30 15:18:34 +00:00
|
|
|
* Tue Aug 30 2016 Jan Vcelak <jvcelak@fedoraproject.org> - 2.4.2-5
|
|
|
|
- fix build on EPEL 7
|
|
|
|
|
2016-08-30 14:09:43 +00:00
|
|
|
* Tue Aug 30 2016 Jan Vcelak <jvcelak@fedoraproject.org> - 2.4.2-4
|
|
|
|
- doc: use versioned Provides for bundled libraries
|
|
|
|
|
|
|
|
* Mon Aug 22 2016 Jan Vcelak <jvcelak@fedoraproject.org> - 2.4.2-3
|
|
|
|
- add ldconfig in post and postun
|
|
|
|
- doc: add license file and fix License field
|
|
|
|
- doc: add Provides for bundled JavaScript libraries
|
|
|
|
|
|
|
|
* Fri Aug 12 2016 Jan Vcelak <jvcelak@fedoraproject.org> - 2.4.2-2
|
|
|
|
- fix build on EPEL 7
|
|
|
|
|
|
|
|
* Fri Jul 15 2016 Jan Vcelak <jvcelak@fedoraproject.org> - 2.4.2-1
|
|
|
|
- initial package
|