libtommath/libtommath.spec

65 lines
1.7 KiB
RPMSpec
Raw Permalink Normal View History

Name: libtommath
Version: 1.0
Release: 1mamba
Summary: Portable number theoretic multiple-precision integer library written entirely in C
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.libtom.net
## GITSOURCE https://github.com/libtom/libtommath.git v1.0
Source: https://github.com/libtom/libtommath.git/v%{version}/libtommath-%{version}.tar.bz2
License: Public Domain
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
LibTomMath is a free open source portable number theoretic multiple-precision integer library written entirely in C.
%package devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description devel
This package contains libraries and header files for developing applications that use %{name}.
%debug_package
%prep
%setup -q
%build
%make -f makefile.shared \
LIBPATH=%{_libdir}
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -f makefile.shared \
LIBPATH=%{_libdir}
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/libtommath.so.*
%doc LICENSE
%files devel
%defattr(-,root,root)
%{_includedir}/tommath*.h
%{_libdir}/libtommath.a
%{_libdir}/libtommath.la
%{_libdir}/libtommath.so
%doc README.md
%changelog
* Wed Aug 10 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0-1mamba
- package created using the webbuild interface