e937537
Name:           zn_poly
23d9841
Version:        0.9.2
47d890a
Release:        4%{?dist}
e937537
Summary:        C library for polynomial arithmetic
e937537
bb698ef
# All files released under "GPLv2 or GPLv3", except:
bb698ef
# - include/wide_arith.h is part LGPLv2+ and part GPLv2+
bb698ef
# - include/profiler.h is part GPLv2+
e937537
License:        (GPLv2 or GPLv3) and GPLv2+ and LGPLv2+
bb698ef
URL:            https://gitlab.com/sagemath/%{name}
bb698ef
Source0:        https://gitlab.com/sagemath/%{name}/-/archive/%{version}/%{name}-%{version}.tar.bz2
e937537
bb698ef
BuildRequires:  gcc
e937537
BuildRequires:  gmp-devel
bb698ef
BuildRequires:  python3
e937537
e937537
%description
e937537
zn_poly is a C library for polynomial arithmetic in Z/nZ[x], where n is
e937537
any modulus that fits into an unsigned long.
e937537
e937537
e937537
%package devel
e937537
Summary:        Development files for %{name}
e937537
Requires:       %{name} = %{version}-%{release}
bb698ef
e937537
%description devel
e937537
zn_poly is a C library for polynomial arithmetic in Z/nZ[x], where n is
e937537
any modulus that fits into an unsigned long.
e937537
e937537
This package contains the development files.
e937537
e937537
e937537
%package static
e937537
Summary:        Development files for %{name}
e937537
Requires:       %{name}-devel = %{version}-%{release}
e937537
%description static
e937537
zn_poly is a C library for polynomial arithmetic in Z/nZ[x], where n is
e937537
any modulus that fits into an unsigned long.
e937537
e937537
This package contains the static library.
e937537
e937537
e937537
%prep
bb698ef
%autosetup -p0
e937537
e937537
sed -i "s|typedef unsigned long  ulong;|\/\/typedef unsigned long  ulong;|g" include/zn_poly.h
e937537
e937537
e937537
%build
bb698ef
python3 makemakefile.py --cflags="%{optflags} -fPIC" --prefix=%{_prefix} \
e937537
    --gmp-prefix=%{_prefix} \
bb698ef
    --disable-tuning \
e937537
    > makefile
e937537
23d9841
%make_build all libzn_poly.so libzn_poly-%{version}.so LDFLAGS="$RPM_LD_FLAGS"
e937537
e937537
e937537
%install
e937537
# install manually, because makefile does not honor DESTDIR
e937537
mkdir -p %{buildroot}%{_includedir}/zn_poly/
e937537
mkdir -p %{buildroot}%{_libdir}
e937537
cp -pv include/*.h %{buildroot}%{_includedir}/zn_poly/
b57a316
cp -pv libzn_poly.a %{buildroot}%{_libdir}
b57a316
cp -pv libzn_poly-%{version}.so %{buildroot}%{_libdir}
b57a316
ln -s libzn_poly-%{version}.so %{buildroot}%{_libdir}/libzn_poly-0.9.so
b57a316
ln -s libzn_poly-0.9.so %{buildroot}%{_libdir}/libzn_poly.so
e937537
e937537
%check
23d9841
make test LDFLAGS="$RPM_LD_FLAGS"
e937537
./test/test all
e937537
e937537
e937537
%files
e937537
%doc COPYING gpl-?.0.txt
e937537
%doc demo/bernoulli/bernoulli.c doc/REFERENCES
e937537
%{_libdir}/libzn_poly-%{version}.so
bb698ef
%{_libdir}/libzn_poly-0.9.so
e937537
e937537
e937537
%files devel
e937537
%{_libdir}/libzn_poly.so
e937537
%{_includedir}/zn_poly/
e937537
e937537
e937537
%files static
e937537
%{_libdir}/libzn_poly.a
e937537
e937537
e937537
%changelog
47d890a
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.2-4
47d890a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
47d890a
538983e
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.2-3
538983e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
538983e
b57a316
* Mon Jan 13 2020 Jerry James <loganjerry@gmail.com> - 0.9.2-2
b57a316
- Fix library symlinks
b57a316
23d9841
* Mon Jan  6 2020 Jerry James <loganjerry@gmail.com> - 0.9.2-1
23d9841
- Version 0.9.2
23d9841
- Drop upstreamed -python3 patch
23d9841
- Link with Fedora flags
23d9841
34ce2c3
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.1-3
34ce2c3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
34ce2c3
e007d72
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.1-2
e007d72
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
e007d72
bb698ef
* Mon Oct  8 2018 Jerry James <loganjerry@gmail.com> - 0.9.1-1
bb698ef
- Switch to sagemath gitlab repository URLs
bb698ef
- New 0.9.1 release
bb698ef
- Use python3 instead of python2 to generate the makefile
bb698ef
- Minor specfile cleanups for recent guidelines changes
bb698ef
f0524f2
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-19.2
f0524f2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
f0524f2
d76e0dd
* Sun Mar 18 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.9-18.2
d76e0dd
- Update Python 2 dependency declarations to new packaging standards
d76e0dd
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
d76e0dd
f92b2c4
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-17.2
f92b2c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
f92b2c4
43b2f8f
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-16.2
43b2f8f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
43b2f8f
02b1793
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-15.2
02b1793
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
02b1793
49d8550
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-14.2
49d8550
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
49d8550
97412a1
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-13.2
97412a1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
97412a1
646a553
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-12.2
646a553
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
646a553
1657d04
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-11.2
1657d04
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
1657d04
d918adc
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-10.2
d918adc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
d918adc
1592a19
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-9.2
1592a19
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
1592a19
028a3f0
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-8.2
028a3f0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
028a3f0
514f768
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-7.2
514f768
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
514f768
6e854b4
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-6.2
6e854b4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
6e854b4
17b39e8
* Wed Oct 26 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.9-5.2
17b39e8
- rebuild with new gmp without compat lib
17b39e8
8da329e
* Wed Oct 12 2011 Peter Schiffer <pschiffe@redhat.com> - 0.9-5.1
8da329e
- rebuild with new gmp
8da329e
55a01ed
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-5
55a01ed
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
55a01ed
e937537
* Sun Jun 27 2010 Thomas Spura <tomspur@fedoraproject.org> - 0.9-4
e937537
- revert last change (fix flint instead)
e937537
e937537
* Sun Jun 27 2010 Thomas Spura <tomspur@fedoraproject.org> - 0.9-3
e937537
- flint wants to have headers in %%{_includedir}/zn_poly/src/
e937537
e937537
* Sun Jun 27 2010 Thomas Spura <tomspur@fedoraproject.org> - 0.9-2
e937537
- make libzn_poly.so a symlink to libzn_poly-%%{version}.so
e937537
- use directly makemakefile.py instead of configure
e937537
- preserve timestamps
e937537
e937537
* Sat Jun 26 2010 Thomas Spura <tomspur@fedoraproject.org> - 0.9-1
e937537
- initial package