From adfa38058be5f0ba9f1ca9b5dfb18b94fedfe6d4 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 05:56:28 +0100 Subject: [PATCH] package created using the webbuild interface [release 1.0-1mamba;Wed Aug 10 2016] --- README.md | 2 ++ libtommath.spec | 64 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 libtommath.spec diff --git a/README.md b/README.md index b232287..3ce1193 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # libtommath +LibTomMath is a free open source portable number theoretic multiple-precision integer library written entirely in C. + diff --git a/libtommath.spec b/libtommath.spec new file mode 100644 index 0000000..9ece131 --- /dev/null +++ b/libtommath.spec @@ -0,0 +1,64 @@ +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 +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 1.0-1mamba +- package created using the webbuild interface