%define major 0 %define libname %mklibname tommath %{major} %define libname_devel %mklibname tommath -d %define libname_static_devel %mklibname tommath -d -s Summary: Portable number theoretic multiple-precision integer library Name: libtommath Version: 0.39 Release: %mkrel 2 Group: System/Libraries License: Public Domain URL: http://math.libtomcrypt.com/ Source0: http://math.libtomcrypt.com/files/ltm-%{version}.tar.bz2 Source1: http://math.libtomcrypt.com/files/ltm-%{version}.tar.bz2.asc Patch0: libtommath-makefile.patch BuildRequires: ghostscript BuildRequires: libtool BuildRequires: libtiff-progs BuildRequires: tetex-dvips BuildRequires: tetex-latex BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot %description A free open source portable number theoretic multiple-precision integer library written entirely in C. (phew!). The library is designed to provide a simple to work with API that provides fairly efficient routines that build out of the box without configuration. %package -n %{libname} Summary: Portable number theoretic multiple-precision integer library Group: System/Libraries %description -n %{libname} A free open source portable number theoretic multiple-precision integer library written entirely in C. (phew!). The library is designed to provide a simple to work with API that provides fairly efficient routines that build out of the box without configuration. %package -n %{libname_devel} Summary: Development files for %{name} Group: Development/C Requires: %{libname} = %{version}-%{release} Provides: tommath-devel = %{version}-%{release} %description -n %{libname_devel} The %{libname_devel} package contains libraries and header files for developing applications that use %{name}. %package -n %{libname_static_devel} Summary: Static development files for %{name} Group: Development/C Requires: %{libname_devel} = %{version}-%{release} Provides: tommath-static-devel = %{version}-%{release} %description -n %{libname_static_devel} The %{libname_static_devel} package contains static libraries for developing applications that use %{name}. %prep %setup -q %patch0 -p1 %build export CFLAGS="%{optflags}" %make LIBPATH=%{_libdir} -f makefile.shared %make -f makefile poster manual docs %install rm -rf %{buildroot} export INSTALL_USER=$(id -un) export INSTALL_GROUP=$(id -gn) %makeinstall_std INCPATH=%{_includedir}/tommath LIBPATH=%{_libdir} -f makefile.shared %if %mdkversion < 200900 %post -n %{libname} -p /sbin/ldconfig %endif %if %mdkversion < 200900 %postun -n %{libname} -p /sbin/ldconfig %endif %clean rm -rf %{buildroot} %files -n %{libname} %defattr(0644,root,root,0755) %doc LICENSE %attr(0755,root,root) %{_libdir}/*.so.%{major}* %files -n %{libname_devel} %defattr(0644,root,root,0755) %doc bn.pdf poster.pdf tommath.pdf %dir %{_includedir}/tommath %attr(0644,root,root) %{_includedir}/tommath/* %attr(0644,root,root) %{_libdir}/*.la %attr(0755,root,root) %{_libdir}/*.so %files -n %{libname_static_devel} %defattr(0644,root,root,0755) %attr(0644,root,root) %{_libdir}/*.a %changelog * Mon Sep 14 2009 Thierry Vignaud <tvignaud@mandriva.com> 0.39-2mdv2010.0 + Revision: 439484 - rebuild * Thu Feb 26 2009 Oden Eriksson <oeriksson@mandriva.com> 0.39-1mdv2009.1 + Revision: 345255 - the origin of 0.41 can't be found, rolling back to 0.39 * Mon Aug 11 2008 David Walluck <walluck@mandriva.org> 0.41-3mdv2009.0 + Revision: 270861 - BuildRequires: libtiff-progs - BuildRequires: libtool - fix permissions - fix package - import libtommath * Sun Aug 10 2008 David Walluck <walluck@mandriva.org> 0.41-1 - release