|
|
6aeb452 |
Name: libtommath
|
|
|
6aeb452 |
Version: 0.41
|
|
|
6aeb452 |
Release: 5%{?dist}
|
|
|
6aeb452 |
Summary: a portable number theoretic multiple-precision integer library
|
|
|
6aeb452 |
Group: System Environment/Libraries
|
|
|
6aeb452 |
License: Public Domain
|
|
|
6aeb452 |
URL: http://www.libtom.org/?page=features&newsitems=5&whatfile=ltm
|
|
|
6aeb452 |
Source0: http://www.libtom.org/files/ltm-%{version}.tar.bz2
|
|
|
6aeb452 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
6aeb452 |
BuildRequires: libtool
|
|
|
6aeb452 |
|
|
|
6aeb452 |
Patch0: libtommath-makefile.patch
|
|
|
6aeb452 |
|
|
|
6aeb452 |
%description
|
|
|
6aeb452 |
A free open source portable number theoretic multiple-precision integer
|
|
|
6aeb452 |
library written entirely in C. (phew!). The library is designed to
|
|
|
6aeb452 |
provide a simple to work with API that provides fairly efficient
|
|
|
6aeb452 |
routines that build out of the box without configuration.
|
|
|
6aeb452 |
|
|
|
6aeb452 |
%package devel
|
|
|
6aeb452 |
Summary: Development files for %{name}
|
|
|
6aeb452 |
Group: Development/Libraries
|
|
|
6aeb452 |
Requires: %{name} = %{version}-%{release}
|
|
|
6aeb452 |
BuildRequires: tetex-latex, tetex-dvips, ghostscript
|
|
|
6aeb452 |
|
|
|
6aeb452 |
%description devel
|
|
|
6aeb452 |
The %{name}-devel package contains libraries and header files for
|
|
|
6aeb452 |
developing applications that use %{name}.
|
|
|
6aeb452 |
|
|
|
6aeb452 |
%prep
|
|
|
6aeb452 |
%setup -q
|
|
|
6aeb452 |
%patch0 -p1 -b .makefile
|
|
|
6aeb452 |
|
|
|
6aeb452 |
|
|
|
6aeb452 |
%build
|
|
|
6aeb452 |
# no configure script ships with libtommath. Its only requirement is
|
|
|
6aeb452 |
# ANSI C.
|
|
|
6aeb452 |
export CFLAGS="$RPM_OPT_FLAGS"
|
|
|
6aeb452 |
make %{?_smp_mflags} LIBPATH=%{_libdir} -f makefile.shared
|
|
|
6aeb452 |
make %{?_smp_mflags} -f makefile poster manual docs
|
|
|
6aeb452 |
|
|
|
6aeb452 |
|
|
|
6aeb452 |
%install
|
|
|
6aeb452 |
# There is no configure script that ships with libtommath but it does
|
|
|
6aeb452 |
# understand DESTDIR and it installs via that and the
|
|
|
6aeb452 |
# INSTALL_USER and INSTALL_GROUP environment variables.
|
|
|
6aeb452 |
rm -rf $RPM_BUILD_ROOT
|
|
|
6aeb452 |
export INSTALL_USER=$(id -un)
|
|
|
6aeb452 |
export INSTALL_GROUP=$(id -gn)
|
|
|
6aeb452 |
make install INCPATH=%{_includedir}/tommath DESTDIR=$RPM_BUILD_ROOT LIBPATH=%{_libdir} -f makefile.shared
|
|
|
6aeb452 |
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
|
|
|
6aeb452 |
find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} ';'
|
|
|
6aeb452 |
find $RPM_BUILD_ROOT -name '*.h' -exec chmod 644 {} ';'
|
|
|
6aeb452 |
|
|
|
6aeb452 |
|
|
|
6aeb452 |
%clean
|
|
|
6aeb452 |
rm -rf $RPM_BUILD_ROOT
|
|
|
6aeb452 |
|
|
|
6aeb452 |
|
|
|
6aeb452 |
%post -p /sbin/ldconfig
|
|
|
6aeb452 |
|
|
|
6aeb452 |
%postun -p /sbin/ldconfig
|
|
|
6aeb452 |
|
|
|
6aeb452 |
|
|
|
6aeb452 |
%files
|
|
|
6aeb452 |
%defattr(-,root,root,-)
|
|
|
6aeb452 |
%doc LICENSE
|
|
|
6aeb452 |
%{_libdir}/*.so.*
|
|
|
6aeb452 |
|
|
|
6aeb452 |
%files devel
|
|
|
6aeb452 |
%defattr(-,root,root,-)
|
|
|
6aeb452 |
%doc bn.pdf poster.pdf tommath.pdf
|
|
|
6aeb452 |
%{_includedir}/tommath
|
|
|
6aeb452 |
%{_libdir}/*.so
|
|
|
6aeb452 |
|
|
|
6aeb452 |
%changelog
|
|
|
6aeb452 |
* Fri Jun 29 2007 Jeremy Hinegardner <jeremy@hinegardner.org> - 0.41-5
|
|
|
6aeb452 |
- removed package name from summary
|
|
|
6aeb452 |
|
|
|
6aeb452 |
* Wed Jun 27 2007 Jeremy Hinegardner <jeremy@hinegardner.org> - 0.41-4
|
|
|
6aeb452 |
- changed patch to honor RPM_OPT_FLAGS
|
|
|
6aeb452 |
- changed patch to allow INCPATH to be set externally
|
|
|
6aeb452 |
- changed installation of headers to _includedir/tommath
|
|
|
6aeb452 |
|
|
|
6aeb452 |
* Sun Jun 24 2007 Jeremy Hinegardner <jeremy@hinegardner.org> - 0.41-3
|
|
|
6aeb452 |
- changed patch to bring it into line with the style of libtomcrypt
|
|
|
6aeb452 |
|
|
|
6aeb452 |
* Sat Jun 23 2007 Jeremy Hinegardner <jeremy@hinegardner.org> - 0.41-2
|
|
|
6aeb452 |
- add patch to makefile.shared to allow for /usr/lib64 installs
|
|
|
6aeb452 |
- update spec to pass libdir build and install process
|
|
|
6aeb452 |
|
|
|
6aeb452 |
* Fri Jun 22 2007 Jeremy Hinegardner <jeremy@hinegardner.org> - 0.41-1
|
|
|
6aeb452 |
- Initial spec file creation
|