Cleanup SPEC file

epel9
Simone Caronni 9 years ago
parent 1cf292d419
commit 7e93531133

1
.gitignore vendored

@ -1,3 +1,4 @@
ltm-0.41.tar.bz2
/ltm-0.42.0.tar.bz2
/ltm-1.0.tar.xz
/libtommath-1.0.tar.gz

@ -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.

@ -1 +1 @@
a95dc984d8409a6f355efb0831009a66 ltm-1.0.tar.xz
c62fbc717289f492246f8dd4dd72a602 libtommath-1.0.tar.gz

Loading…
Cancel
Save