|
|
e828dc0 |
Name: gf2x
|
|
|
e828dc0 |
Version: 1.1
|
|
|
007966a |
Release: 8%{?dist}
|
|
|
e828dc0 |
Summary: Polynomial multiplication over the binary field
|
|
|
e828dc0 |
|
|
|
e828dc0 |
License: GPLv2+
|
|
|
e828dc0 |
URL: http://gf2x.gforge.inria.fr/
|
|
|
e828dc0 |
Source0: https://gforge.inria.fr/frs/download.php/30873/%{name}-%{version}.tar.gz
|
|
|
e828dc0 |
|
|
|
e828dc0 |
%description
|
|
|
e828dc0 |
Gf2x is a C/C++ software package containing routines for fast arithmetic
|
|
|
e828dc0 |
in GF(2)[x] (multiplication, squaring, GCD) and searching for
|
|
|
e828dc0 |
irreducible/primitive trinomials.
|
|
|
e828dc0 |
|
|
|
e828dc0 |
%package devel
|
|
|
e828dc0 |
Summary: Headers and library files for %{name}
|
|
|
e828dc0 |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
e828dc0 |
|
|
|
e828dc0 |
%description devel
|
|
|
e828dc0 |
Headers and library files for developing applications that use %{name}.
|
|
|
e828dc0 |
|
|
|
e828dc0 |
%prep
|
|
|
e828dc0 |
%setup -q
|
|
|
e828dc0 |
|
|
|
e828dc0 |
# Fix the FSF's address
|
|
|
e828dc0 |
for badfile in `grep -FRl 'Fifth Floor' .`; do
|
|
|
e828dc0 |
sed -e 's/Fifth Floor/Suite 500/' -e 's/02111-1307/02110-1335/' \
|
|
|
e828dc0 |
-i.orig $badfile
|
|
|
e828dc0 |
touch -r $badfile.orig $badfile
|
|
|
e828dc0 |
rm -f $badfile.orig
|
|
|
e828dc0 |
done
|
|
|
e828dc0 |
|
|
|
e828dc0 |
%build
|
|
|
e828dc0 |
# Build an SSE2-enabled version for 32-bit x86
|
|
|
e828dc0 |
%ifarch %{ix86}
|
|
|
e828dc0 |
%configure --disable-static --enable-sse2 --disable-pclmul \
|
|
|
e828dc0 |
CFLAGS="$RPM_OPT_FLAGS -march=pentium4 -msse2"
|
|
|
e828dc0 |
|
|
|
e828dc0 |
# Eliminate hardcoded rpaths
|
|
|
e828dc0 |
sed -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
|
|
|
e828dc0 |
-e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
|
|
|
e828dc0 |
-i libtool
|
|
|
e828dc0 |
make %{?_smp_mflags}
|
|
|
e828dc0 |
|
|
|
e828dc0 |
# Stash the results away and prepare to build again
|
|
|
e828dc0 |
mv .libs sse2
|
|
|
e828dc0 |
make distclean
|
|
|
e828dc0 |
%endif
|
|
|
e828dc0 |
|
|
|
e828dc0 |
# Build the native version for all CPUs (SSE2 for x86_64).
|
|
|
e828dc0 |
# Support for pclmul would be nice, but not all x86_64s support it.
|
|
|
e828dc0 |
%ifarch x86_64
|
|
|
e828dc0 |
%configure --disable-static --enable-sse2 --disable-pclmul
|
|
|
e828dc0 |
%else
|
|
|
e828dc0 |
%configure --disable-static --disable-sse2 --disable-pclmul
|
|
|
e828dc0 |
%endif
|
|
|
e828dc0 |
|
|
|
e828dc0 |
# Eliminate hardcoded rpaths
|
|
|
e828dc0 |
sed -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
|
|
|
e828dc0 |
-e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
|
|
|
e828dc0 |
-i libtool
|
|
|
e828dc0 |
make %{?_smp_mflags} --eval='.SECONDARY:'
|
|
|
e828dc0 |
|
|
|
e828dc0 |
%install
|
|
|
e828dc0 |
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
|
|
|
e828dc0 |
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
|
|
e828dc0 |
|
|
|
e828dc0 |
%ifarch %{ix86}
|
|
|
e828dc0 |
mkdir -p $RPM_BUILD_ROOT%{_libdir}/sse2
|
|
|
e828dc0 |
install -m 755 sse2/lib%{name}.so.*.*.* $RPM_BUILD_ROOT%{_libdir}/sse2
|
|
|
e828dc0 |
%endif
|
|
|
e828dc0 |
|
|
|
e828dc0 |
%check
|
|
|
e828dc0 |
LD_LIBRARY_PATH=`pwd`/.libs make check
|
|
|
e828dc0 |
|
|
|
e828dc0 |
%post -p /sbin/ldconfig
|
|
|
e828dc0 |
|
|
|
e828dc0 |
%postun -p /sbin/ldconfig
|
|
|
e828dc0 |
|
|
|
e828dc0 |
%files
|
|
|
2b4b824 |
%doc AUTHORS BUGS README TODO
|
|
|
2b4b824 |
%license COPYING
|
|
|
e828dc0 |
%{_libdir}/lib%{name}.so.*
|
|
|
e828dc0 |
%ifarch %{ix86}
|
|
|
e828dc0 |
%{_libdir}/sse2/lib%{name}.so.*
|
|
|
e828dc0 |
%endif
|
|
|
e828dc0 |
|
|
|
e828dc0 |
%files devel
|
|
|
e828dc0 |
%{_includedir}/%{name}/
|
|
|
e828dc0 |
%{_includedir}/%{name}.h
|
|
|
e828dc0 |
%{_libdir}/lib%{name}.so
|
|
|
e828dc0 |
|
|
|
e828dc0 |
%changelog
|
|
|
007966a |
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-8
|
|
|
007966a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
007966a |
|
|
|
070113e |
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-7
|
|
|
070113e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
070113e |
|
|
|
2b4b824 |
* Tue Feb 17 2015 Jerry James <loganjerry@gmail.com> - 1.1-6
|
|
|
2b4b824 |
- Use license macro
|
|
|
2b4b824 |
|
|
|
ee754d1 |
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-5
|
|
|
ee754d1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
ee754d1 |
|
|
|
65afe3d |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-4
|
|
|
65afe3d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
65afe3d |
|
|
|
e029995 |
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-3
|
|
|
e029995 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
e029995 |
|
|
|
86da322 |
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-2
|
|
|
86da322 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
86da322 |
|
|
|
e828dc0 |
* Fri Aug 3 2012 Jerry James <loganjerry@gmail.com> - 1.1-1
|
|
|
e828dc0 |
- New upstream release
|
|
|
e828dc0 |
|
|
|
e828dc0 |
* Fri May 4 2012 Jerry James <loganjerry@gmail.com> - 1.0-1
|
|
|
e828dc0 |
- Initial RPM
|