From 7e9353113395708e79d52106f8d6ffc9a3f0d80c Mon Sep 17 00:00:00 2001 From: Simone Caronni Date: Tue, 23 Feb 2016 13:29:44 +0100 Subject: [PATCH] Cleanup SPEC file --- .gitignore | 1 + libtommath.spec | 21 ++++++++------------- sources | 2 +- 3 files changed, 10 insertions(+), 14 deletions(-) diff --git a/.gitignore b/.gitignore index 5fa2ffb..929b585 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/libtommath.spec b/libtommath.spec index ea3027d..7ba2c55 100644 --- a/libtommath.spec +++ b/libtommath.spec @@ -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 - 1.0-2 +- Use proper source URL. +- Cleanup SPEC file. + * Tue Feb 23 2016 Simone Caronni - 1.0-1 - Fix FTBFS (#1307741). - Update to 1.0. diff --git a/sources b/sources index f662e64..4b1ba78 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -a95dc984d8409a6f355efb0831009a66 ltm-1.0.tar.xz +c62fbc717289f492246f8dd4dd72a602 libtommath-1.0.tar.gz