libtommath/libtommath.spec

71 lines
1.9 KiB
RPMSpec
Raw Normal View History

Name: libtommath
Version: 1.0.1
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} \
INCPATH=%{_includedir}
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -f makefile.shared \
LIBPATH=%{_libdir} \
INCPATH=%{_includedir}
%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
%{_libdir}/pkgconfig/libtommath.pc
%doc README.md
%changelog
* Sat Sep 09 2017 Automatic Build System <autodist@mambasoft.it> 1.0.1-1mamba
- automatic version update by autodist
* Wed Aug 10 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0-1mamba
- package created using the webbuild interface