%define libname %mklibname tommath 0 %define libname_devel %mklibname tommath -d %define libname_static_devel %mklibname tommath -d -s Name: libtommath Version: 0.41 Release: %mkrel 3 Summary: Portable number theoretic multiple-precision integer library Group: System/Libraries 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 BuildRequires: ghostscript BuildRequires: libtool BuildRequires: libtiff-progs BuildRequires: tetex-dvips BuildRequires: tetex-latex BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root %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 %clean rm -rf %{buildroot} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files -n %{libname} %defattr(0644,root,root,0755) %doc LICENSE %attr(-,root,root) %{_libdir}/*.so.* %files -n %{libname_devel} %defattr(0644,root,root,0755) %doc bn.pdf poster.pdf tommath.pdf %{_includedir}/tommath %attr(-,root,root) %{_libdir}/*.la %attr(-,root,root) %{_libdir}/*.so %files -n %{libname_static_devel} %defattr(0644,root,root,0755) %{_libdir}/*.a %changelog * 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