From fe1e6ed346d8c893536b2879cd7ab18ff73b277c Mon Sep 17 00:00:00 2001 From: Simone Caronni Date: Aug 08 2013 13:43:09 +0000 Subject: Update to 0.42.0, some cleanup --- diff --git a/.gitignore b/.gitignore index 48d0c04..b4a9572 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ ltm-0.41.tar.bz2 +/ltm-0.42.0.tar.bz2 diff --git a/libtommath.spec b/libtommath.spec index 9762c6d..6dc5106 100644 --- a/libtommath.spec +++ b/libtommath.spec @@ -1,12 +1,12 @@ Name: libtommath -Version: 0.41 -Release: 17%{?dist} +Version: 0.42.0 +Release: 1%{?dist} Summary: A portable number theoretic multiple-precision integer library License: Public Domain URL: http://www.libtom.org/?page=features&newsitems=5&whatfile=ltm Source0: http://www.libtom.org/files/ltm-%{version}.tar.bz2 -Patch0: libtommath-makefile.patch +Patch0: %{name}-makefile.patch BuildRequires: ghostscript BuildRequires: libtool @@ -17,7 +17,7 @@ BuildRequires: libtiff BuildRequires: libtiff-tools %endif -%if 0%{?fedora} >= 18 || 0%{?rhel} >= 7 +%if 0%{?fedora} || 0%{?rhel} >= 7 BuildRequires: tex(dvips) BuildRequires: tex(latex) %else @@ -33,7 +33,7 @@ without configuration. %package devel Summary: Development files for %{name} -Requires: %{name} = %{version}-%{release} +Requires: %{name}%{?_isa} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for developing @@ -41,7 +41,9 @@ applications that use %{name}. %package doc Summary: Documentation files for %{name} -Requires: %{name} = %{version}-%{release} +BuildArch: noarch +Provides: %{name}-doc = %{version}-%{release} +Obsoletes: %{name}-doc < 0.42-1 %description doc The %{name}-doc package contains PDF documentation for using %{name}. @@ -51,20 +53,20 @@ The %{name}-doc package contains PDF documentation for using %{name}. %patch0 -p1 -b .makefile %build -# no configure script ships with libtommath. Its only requirement is ANSI C. +# no configure script ships with libtommath. Its only requirement is ANSI C. export CFLAGS="$RPM_OPT_FLAGS" make %{?_smp_mflags} LIBPATH=%{_libdir} -f makefile.shared make %{?_smp_mflags} -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. +# 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 INCPATH=%{_includedir}/tommath DESTDIR=%{buildroot} LIBPATH=%{_libdir} -f makefile.shared -find %{buildroot} -name '*.la' -exec rm -f {} ';' -find %{buildroot} -name '*.a' -exec rm -f {} ';' +find %{buildroot} -name '*.la' -delete +find %{buildroot} -name '*.a' -delete find %{buildroot} -name '*.h' -exec chmod 644 {} ';' %post -p /sbin/ldconfig @@ -83,6 +85,10 @@ find %{buildroot} -name '*.h' -exec chmod 644 {} ';' %doc bn.pdf poster.pdf tommath.pdf %changelog +* Thu Aug 08 2013 Simone Caronni - 0.42-1 +- Update to 0.42. +- Make doc package noarch and not requiring base package. + * Sat Aug 03 2013 Fedora Release Engineering - 0.41-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild diff --git a/sources b/sources index f6552c3..3481602 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -96fafb55f86be27490957b89dea7b31b ltm-0.41.tar.bz2 +7380da904b020301be7045cb3a89039b ltm-0.42.0.tar.bz2