|
|
e937537 |
Name: zn_poly
|
|
|
e937537 |
Version: 0.9
|
|
|
49d8550 |
Release: 14%{?dist}.2
|
|
|
e937537 |
Summary: C library for polynomial arithmetic
|
|
|
e937537 |
|
|
|
e937537 |
Group: Development/Libraries
|
|
|
e937537 |
# see COPYING to see, which file has which license
|
|
|
e937537 |
License: (GPLv2 or GPLv3) and GPLv2+ and LGPLv2+
|
|
|
e937537 |
URL: http://cims.nyu.edu/~harvey/code/zn_poly/
|
|
|
e937537 |
Source0: http://cims.nyu.edu/~harvey/code/zn_poly/releases/zn_poly-%{version}.tar.gz
|
|
|
e937537 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
e937537 |
|
|
|
e937537 |
BuildRequires: python
|
|
|
e937537 |
BuildRequires: gmp-devel
|
|
|
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 |
Group: Development/Libraries
|
|
|
e937537 |
Requires: %{name} = %{version}-%{release}
|
|
|
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 |
Group: Development/Libraries
|
|
|
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
|
|
|
e937537 |
%setup -q
|
|
|
e937537 |
|
|
|
e937537 |
sed -i "s|typedef unsigned long ulong;|\/\/typedef unsigned long ulong;|g" include/zn_poly.h
|
|
|
e937537 |
|
|
|
e937537 |
|
|
|
e937537 |
%build
|
|
|
e937537 |
python makemakefile.py --cflags="%{optflags} -fPIC" --prefix=%{_prefix} \
|
|
|
e937537 |
--gmp-prefix=%{_prefix} \
|
|
|
e937537 |
--ntl-prefix=%{_prefix} \
|
|
|
e937537 |
--flint-prefix=%{_prefix} \
|
|
|
e937537 |
> makefile
|
|
|
e937537 |
|
|
|
e937537 |
make all libzn_poly.so libzn_poly-%{version}.so %{?_smp_mflags}
|
|
|
e937537 |
|
|
|
e937537 |
|
|
|
e937537 |
%install
|
|
|
e937537 |
rm -rf %{buildroot}
|
|
|
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/
|
|
|
e937537 |
cp -pv libzn_poly* %{buildroot}%{_libdir}
|
|
|
e937537 |
|
|
|
e937537 |
# make libzn_poly.so a symlink
|
|
|
e937537 |
pushd %{buildroot}%{_libdir}
|
|
|
e937537 |
rm libzn_poly.so
|
|
|
e937537 |
ln -s libzn_poly-%{version}.so libzn_poly.so
|
|
|
e937537 |
popd
|
|
|
e937537 |
|
|
|
e937537 |
%check
|
|
|
e937537 |
make test
|
|
|
e937537 |
./test/test all
|
|
|
e937537 |
|
|
|
e937537 |
|
|
|
e937537 |
%post -p /sbin/ldconfig
|
|
|
e937537 |
%postun -p /sbin/ldconfig
|
|
|
e937537 |
|
|
|
e937537 |
|
|
|
e937537 |
%clean
|
|
|
e937537 |
rm -rf %{buildroot}
|
|
|
e937537 |
|
|
|
e937537 |
|
|
|
e937537 |
%files
|
|
|
e937537 |
%defattr(-,root,root,-)
|
|
|
e937537 |
%doc COPYING gpl-?.0.txt
|
|
|
e937537 |
%doc demo/bernoulli/bernoulli.c doc/REFERENCES
|
|
|
e937537 |
%{_libdir}/libzn_poly-%{version}.so
|
|
|
e937537 |
|
|
|
e937537 |
|
|
|
e937537 |
%files devel
|
|
|
e937537 |
%defattr(-,root,root,-)
|
|
|
e937537 |
%{_libdir}/libzn_poly.so
|
|
|
e937537 |
%{_includedir}/zn_poly/
|
|
|
e937537 |
|
|
|
e937537 |
|
|
|
e937537 |
%files static
|
|
|
e937537 |
%defattr(-,root,root,-)
|
|
|
e937537 |
%{_libdir}/libzn_poly.a
|
|
|
e937537 |
|
|
|
e937537 |
|
|
|
e937537 |
%changelog
|
|
|
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
|