From 17112c8593f26c421c06386c618994c12f4757db Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 05:56:22 +0100 Subject: [PATCH] package created using the webbuild interface [release 1.18.2-1mamba;Tue Nov 16 2021] --- README.md | 2 ++ libtomcrypt.spec | 70 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 72 insertions(+) create mode 100644 libtomcrypt.spec diff --git a/README.md b/README.md index 24c8026..63224c7 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # libtomcrypt +LibTomCrypt is a fairly comprehensive, modular and portable cryptographic toolkit that provides developers with a vast array of well known published block ciphers, one-way hash functions, chaining modes, pseudo-random number generators, public key cryptography and a plethora of other routines. + diff --git a/libtomcrypt.spec b/libtomcrypt.spec new file mode 100644 index 0000000..9615259 --- /dev/null +++ b/libtomcrypt.spec @@ -0,0 +1,70 @@ +Name: libtomcrypt +Version: 1.18.2 +Release: 1mamba +Summary: A fairly comprehensive, modular and portable cryptographic toolkit +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://www.libtom.net/ +Source: https://github.com/libtom/libtomcrypt.git/v%{version}/libtomcrypt-%{version}.tar.bz2 +License: Unilicense +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libgmp-devel +BuildRequires: libtommath-devel +## AUTOBUILDREQ-END + +%description +LibTomCrypt is a fairly comprehensive, modular and portable cryptographic toolkit that provides developers with a vast array of well known published block ciphers, one-way hash functions, chaining modes, pseudo-random number generators, public key cryptography and a plethora of other routines. + +%package devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} +Requires: pkg-config + +%description devel +This package contains libraries and header files for developing applications that use %{name}. + +%debug_package + +%prep +%setup -q + +%build +export CPPFLAGS+=" -DLTM_DESC -DGMP_DESC -DUSE_LTM" +export EXTRALIBS="-ltommath -lgmp" +%make -f makefile.shared IGNORE_SPEED=1 library test + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall \ + -f makefile.shared \ + PREFIX=%{_prefix} \ + INSTALL_OPTS="" \ + LIBPATH=%{_libdir} + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_libdir}/libtomcrypt.so.* +%doc LICENSE + +%files devel +%defattr(-,root,root) +%{_includedir}/tomcrypt*.h +%{_libdir}/libtomcrypt.a +%{_libdir}/libtomcrypt.la +%{_libdir}/libtomcrypt.so +%{_libdir}/pkgconfig/libtomcrypt.pc +%doc README.md + +%changelog +* Tue Nov 16 2021 Silvan Calarco 1.18.2-1mamba +- package created using the webbuild interface