Fix tex/latex BuildRequires & SPEC file cleanup

epel9
Simone Caronni 12 years ago
parent baefd82832
commit 077a591a66

@ -1,93 +1,92 @@
Name: libtommath Name: libtommath
Version: 0.41 Version: 0.41
Release: 15%{?dist} Release: 16%{?dist}
Summary: A portable number theoretic multiple-precision integer library Summary: A portable number theoretic multiple-precision integer library
Group: System Environment/Libraries
License: Public Domain License: Public Domain
URL: http://www.libtom.org/?page=features&newsitems=5&whatfile=ltm URL: http://www.libtom.org/?page=features&newsitems=5&whatfile=ltm
Source0: http://www.libtom.org/files/ltm-%{version}.tar.bz2 Source0: http://www.libtom.org/files/ltm-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Patch0: libtommath-makefile.patch
BuildRequires: ghostscript
BuildRequires: libtool BuildRequires: libtool
Patch0: libtommath-makefile.patch %if 0%{?rhel} == 6
BuildRequires: libtiff
%else
BuildRequires: libtiff-tools
%endif
%if 0%{?fedora} >= 18 || 0%{?rhel} >= 7
BuildRequires: tex(dvips)
BuildRequires: tex(latex)
%else
BuildRequires: tetex-dvips
BuildRequires: tetex-latex
%endif
%description %description
A free open source portable number theoretic multiple-precision integer A free open source portable number theoretic multiple-precision integer library
library written entirely in C. (phew!). The library is designed to written entirely in C. (phew!). The library is designed to provide a simple to
provide a simple to work with API that provides fairly efficient work with API that provides fairly efficient routines that build out of the box
routines that build out of the box without configuration. without configuration.
%package devel %package devel
Summary: Development files for %{name} Summary: Development files for %{name}
Group: Development/Libraries
Requires: %{name} = %{version}-%{release} Requires: %{name} = %{version}-%{release}
%description devel %description devel
The %{name}-devel package contains libraries and header files for The %{name}-devel package contains libraries and header files for developing
developing applications that use %{name}. applications that use %{name}.
%package doc %package doc
Summary: Documentation files for %{name} Summary: Documentation files for %{name}
Group: Documentation
Requires: %{name} = %{version}-%{release} Requires: %{name} = %{version}-%{release}
BuildRequires: tetex-latex, tetex-dvips, ghostscript, libtiff-tools
%description doc %description doc
The %{name}-doc package contains PDF documentation for The %{name}-doc package contains PDF documentation for using %{name}.
using %{name}.
%prep %prep
%setup -q %setup -q
%patch0 -p1 -b .makefile %patch0 -p1 -b .makefile
%build %build
# no configure script ships with libtommath. Its only requirement is # no configure script ships with libtommath. Its only requirement is ANSI C.
# ANSI C.
export CFLAGS="$RPM_OPT_FLAGS" export CFLAGS="$RPM_OPT_FLAGS"
make %{?_smp_mflags} LIBPATH=%{_libdir} -f makefile.shared make %{?_smp_mflags} LIBPATH=%{_libdir} -f makefile.shared
make %{?_smp_mflags} -f makefile poster manual docs make %{?_smp_mflags} -f makefile poster manual docs
%install %install
# There is no configure script that ships with libtommath but it does # There is no configure script that ships with libtommath but it does
# understand DESTDIR and it installs via that and the # understand DESTDIR and it installs via that and the
# INSTALL_USER and INSTALL_GROUP environment variables. # INSTALL_USER and INSTALL_GROUP environment variables.
rm -rf $RPM_BUILD_ROOT
export INSTALL_USER=$(id -un) export INSTALL_USER=$(id -un)
export INSTALL_GROUP=$(id -gn) export INSTALL_GROUP=$(id -gn)
make install INCPATH=%{_includedir}/tommath DESTDIR=$RPM_BUILD_ROOT LIBPATH=%{_libdir} -f makefile.shared make install INCPATH=%{_includedir}/tommath DESTDIR=%{buildroot} LIBPATH=%{_libdir} -f makefile.shared
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' find %{buildroot} -name '*.la' -exec rm -f {} ';'
find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} ';' find %{buildroot} -name '*.a' -exec rm -f {} ';'
find $RPM_BUILD_ROOT -name '*.h' -exec chmod 644 {} ';' find %{buildroot} -name '*.h' -exec chmod 644 {} ';'
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig %post -p /sbin/ldconfig
%postun -p /sbin/ldconfig %postun -p /sbin/ldconfig
%files %files
%defattr(-,root,root,-)
%doc LICENSE %doc LICENSE
%{_libdir}/*.so.* %{_libdir}/*.so.*
%files devel %files devel
%defattr(-,root,root,-)
%doc LICENSE
%{_includedir}/tommath %{_includedir}/tommath
%{_libdir}/*.so %{_libdir}/*.so
%files doc %files doc
%defattr(-,root,root,-)
%doc LICENSE
%doc bn.pdf poster.pdf tommath.pdf %doc bn.pdf poster.pdf tommath.pdf
%changelog %changelog
* Thu Jun 06 2013 Simone Caronni <negativo17@gmail.com> - 0.41-16
- SPEC file cleanup, remove obsolete tags.
- Fix tex/latex BuildRequires.
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.41-15 * Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.41-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild

Loading…
Cancel
Save