71 lines
2.0 KiB
RPMSpec
71 lines
2.0 KiB
RPMSpec
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 <silvan.calarco@mambasoft.it>
|
|
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 <silvan.calarco@mambasoft.it> 1.18.2-1mamba
|
|
- package created using the webbuild interface
|