|
|
|
@ -1,11 +1,11 @@
|
|
|
|
|
Name: libtommath
|
|
|
|
|
Version: 1.0
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Summary: A portable number theoretic multiple-precision integer library
|
|
|
|
|
License: Public Domain
|
|
|
|
|
URL: http://www.libtom.org/
|
|
|
|
|
|
|
|
|
|
Source0: https://github.com/libtom/%{name}/releases/download/v%{version}/ltm-%{version}.tar.xz
|
|
|
|
|
Source0: https://github.com/libtom/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
BuildRequires: ghostscript
|
|
|
|
|
BuildRequires: libtool
|
|
|
|
@ -73,21 +73,12 @@ sed -i \
|
|
|
|
|
*.{pl,src,tex}
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
# no configure script ships with libtommath. Its only requirement is ANSI C.
|
|
|
|
|
export CFLAGS="$RPM_OPT_FLAGS"
|
|
|
|
|
export CFLAGS="%{optflags}"
|
|
|
|
|
make %{?_smp_mflags} LIBPATH=%{_libdir} -f makefile.shared
|
|
|
|
|
make -f makefile poster manual docs
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
# There is no configure script that ships with libtommath but it does understand
|
|
|
|
|
# DESTDIR and it installs via that and the INSTALL_USER and INSTALL_GROUP
|
|
|
|
|
# environment variables.
|
|
|
|
|
export INSTALL_USER=$(id -un)
|
|
|
|
|
export INSTALL_GROUP=$(id -gn)
|
|
|
|
|
make install DESTDIR=%{buildroot} LIBPATH=%{_libdir} -f makefile.shared
|
|
|
|
|
find %{buildroot} -name '*.h' -exec chmod 644 {} \;
|
|
|
|
|
find %{buildroot} -name '*.c' -exec chmod 644 {} \;
|
|
|
|
|
chmod 644 LICENSE
|
|
|
|
|
%make_install LIBPATH=%{_libdir} -f makefile.shared
|
|
|
|
|
|
|
|
|
|
find %{buildroot} -name '*.la' -delete
|
|
|
|
|
find %{buildroot} -name '*.a' -delete
|
|
|
|
@ -109,6 +100,10 @@ find %{buildroot} -name '*.a' -delete
|
|
|
|
|
%doc bn.pdf poster.pdf tommath.pdf
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Feb 23 2016 Simone Caronni <negativo17@gmail.com> - 1.0-2
|
|
|
|
|
- Use proper source URL.
|
|
|
|
|
- Cleanup SPEC file.
|
|
|
|
|
|
|
|
|
|
* Tue Feb 23 2016 Simone Caronni <negativo17@gmail.com> - 1.0-1
|
|
|
|
|
- Fix FTBFS (#1307741).
|
|
|
|
|
- Update to 1.0.
|
|
|
|
|