Blame SPECS/libtommath.spec

fe3e34
Name:           libtommath
fe3e34
Version:        0.42.0
fe3e34
Release:        6%{?dist}
fe3e34
Summary:        A portable number theoretic multiple-precision integer library
fe3e34
License:        Public Domain
fe3e34
URL:            http://www.libtom.org/?page=features&newsitems=5&whatfile=ltm
fe3e34
fe3e34
Source0:        http://www.libtom.org/files/ltm-%{version}.tar.bz2
fe3e34
Patch0:         %{name}-makefile.patch
fe3e34
fe3e34
BuildRequires:  ghostscript
fe3e34
BuildRequires:  libtool
fe3e34
fe3e34
%if 0%{?rhel} == 6
fe3e34
BuildRequires:  libtiff
fe3e34
%else
fe3e34
BuildRequires:  libtiff-tools
fe3e34
%endif
fe3e34
fe3e34
%if 0%{?fedora} || 0%{?rhel} >= 7
fe3e34
BuildRequires:  tex(dvips)
fe3e34
BuildRequires:  tex(latex)
fe3e34
%else
fe3e34
BuildRequires:  tetex-dvips
fe3e34
BuildRequires:  tetex-latex
fe3e34
%endif
fe3e34
fe3e34
%description
fe3e34
A free open source portable number theoretic multiple-precision integer library
fe3e34
written entirely in C. (phew!). The library is designed to provide a simple to
fe3e34
work with API that provides fairly efficient routines that build out of the box
fe3e34
without configuration.
fe3e34
fe3e34
%package        devel
fe3e34
Summary:        Development files for %{name}
fe3e34
Requires:       %{name}%{?_isa} = %{version}-%{release}
fe3e34
fe3e34
%description    devel
fe3e34
The %{name}-devel package contains libraries and header files for developing
fe3e34
applications that use %{name}.
fe3e34
fe3e34
%package        doc
fe3e34
Summary:        Documentation files for %{name}
fe3e34
BuildArch:      noarch
fe3e34
Provides:       %{name}-doc = %{version}-%{release}
fe3e34
Obsoletes:      %{name}-doc < 0.42-1
fe3e34
fe3e34
%description    doc
fe3e34
The %{name}-doc package contains PDF documentation for using %{name}.
fe3e34
fe3e34
%prep
fe3e34
%setup -q
fe3e34
%patch0 -p1 -b .makefile
fe3e34
fe3e34
%build
fe3e34
# no configure script ships with libtommath. Its only requirement is ANSI C.
fe3e34
export CFLAGS="$RPM_OPT_FLAGS"
fe3e34
make %{?_smp_mflags} LIBPATH=%{_libdir} -f makefile.shared 
fe3e34
make %{?_smp_mflags} -f makefile poster manual docs
fe3e34
fe3e34
%install
fe3e34
# There is no configure script that ships with libtommath but it does understand
fe3e34
# DESTDIR and it installs via that and the INSTALL_USER and INSTALL_GROUP
fe3e34
# environment variables.
fe3e34
export INSTALL_USER=$(id -un)
fe3e34
export INSTALL_GROUP=$(id -gn)
fe3e34
make install DESTDIR=%{buildroot} LIBPATH=%{_libdir} -f makefile.shared
fe3e34
find %{buildroot} -name '*.h' -exec chmod 644 {} \;
fe3e34
find %{buildroot} -name '*.c' -exec chmod 644 {} \;
fe3e34
chmod 644 LICENSE
fe3e34
fe3e34
find %{buildroot} -name '*.la' -delete
fe3e34
find %{buildroot} -name '*.a' -delete
fe3e34
fe3e34
%post -p /sbin/ldconfig
fe3e34
fe3e34
%postun -p /sbin/ldconfig
fe3e34
fe3e34
%files
fe3e34
%doc LICENSE
fe3e34
%{_libdir}/*.so.*
fe3e34
fe3e34
%files devel
fe3e34
%{_includedir}/*.h
fe3e34
%{_libdir}/*.so
fe3e34
fe3e34
%files doc
fe3e34
%doc bn.pdf poster.pdf tommath.pdf
fe3e34
fe3e34
%changelog
fe3e34
* Fri May 12 2017 Pavel Cahyna <pcahyna@redhat.com> - 0.42.0-6
fe3e34
- Rebuild for RHEL 7.4 Extras
fe3e34
fe3e34
* Mon May 08 2017 Yaakov Selkowitz <yselkowi@redhat.com> - 0.42.0-5
fe3e34
- Build on multiple architectures
fe3e34
fe3e34
* Mon Dec 07 2015 Jaromir Capik <jcapik@redhat.com> - 0.42.0-4
fe3e34
- Workaround for ghostscript segfault on ppc64le
fe3e34
fe3e34
* Sun Sep 29 2013 Simone Caronni <negativo17@gmail.com> - 0.42.0-3
fe3e34
- Move headers to default location.
fe3e34
fe3e34
* Thu Aug 08 2013 Simone Caronni <negativo17@gmail.com> - 0.42.0-2
fe3e34
- Fix changelog entries.
fe3e34
- Remove executable bits from LICENSE file and source files.
fe3e34
fe3e34
* Thu Aug 08 2013 Simone Caronni <negativo17@gmail.com> - 0.42.0-1
fe3e34
- Update to 0.42.
fe3e34
- Make doc package noarch and not requiring base package.
fe3e34
fe3e34
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.41-17
fe3e34
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
fe3e34
fe3e34
* Thu Jun 06 2013 Simone Caronni <negativo17@gmail.com> - 0.41-16
fe3e34
- SPEC file cleanup, remove obsolete tags.
fe3e34
- Fix tex/latex BuildRequires.
fe3e34
fe3e34
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.41-15
fe3e34
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
fe3e34
fe3e34
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.41-14
fe3e34
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
fe3e34
fe3e34
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.41-13
fe3e34
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
fe3e34
fe3e34
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.41-12
fe3e34
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
fe3e34
fe3e34
* Sun Jun 20 2010 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.41-11
fe3e34
- fix bugs #555445 and #591543
fe3e34
fe3e34
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.41-10
fe3e34
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
fe3e34
fe3e34
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.41-9
fe3e34
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
fe3e34
fe3e34
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.41-8
fe3e34
- Autorebuild for GCC 4.3
fe3e34
fe3e34
* Sun Nov 25 2007 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.41-7
fe3e34
- Resolve multilib conflicts from Bug #342441 by splitting out
fe3e34
  documentation to libtommath-docs subpackage
fe3e34
- fix rpmlint Summary: warning
fe3e34
fe3e34
* Wed Aug 29 2007 Fedora Release Engineering <rel-eng at fedoraproject dot org> - 0.41-6
fe3e34
- Rebuild for selinux ppc32 issue.
fe3e34
fe3e34
* Fri Jun 29 2007 Jeremy Hinegardner <jeremy@hinegardner.org> - 0.41-5
fe3e34
- removed package name from summary
fe3e34
 
fe3e34
* Wed Jun 27 2007 Jeremy Hinegardner <jeremy@hinegardner.org> - 0.41-4
fe3e34
- changed patch to honor RPM_OPT_FLAGS
fe3e34
- changed patch to allow INCPATH to be set externally
fe3e34
- changed installation of headers to _includedir/tommath
fe3e34
fe3e34
* Sun Jun 24 2007 Jeremy Hinegardner <jeremy@hinegardner.org> - 0.41-3
fe3e34
- changed patch to bring it into line with the style of libtomcrypt 
fe3e34
fe3e34
* Sat Jun 23 2007 Jeremy Hinegardner <jeremy@hinegardner.org> - 0.41-2
fe3e34
- add patch to makefile.shared to allow for /usr/lib64 installs
fe3e34
- update spec to pass libdir build and install process
fe3e34
fe3e34
* Fri Jun 22 2007 Jeremy Hinegardner <jeremy@hinegardner.org> - 0.41-1
fe3e34
- Initial spec file creation