commit 0e2913c0ab08fd6b7354b85146e68b2268aba106 Author: zhuchunyi Date: Wed Nov 6 19:40:31 2019 +0800 update code diff --git a/libtomcrypt-1.18.2.tar.gz b/libtomcrypt-1.18.2.tar.gz new file mode 100644 index 0000000..f929b48 Binary files /dev/null and b/libtomcrypt-1.18.2.tar.gz differ diff --git a/libtomcrypt.spec b/libtomcrypt.spec new file mode 100644 index 0000000..e90557e --- /dev/null +++ b/libtomcrypt.spec @@ -0,0 +1,65 @@ +Name: libtomcrypt +Version: 1.18.2 +Release: 3 +Summary: A comprehensive, portable cryptographic toolkit +License: Public Domain or WTFPL +URL: http://www.libtom.net/ +Source0: https://github.com/libtom/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz + +BuildRequires: libtommath-devel libtool + +%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 +Summary: Development files for libtomcrypt +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +This package contains libraries and header files for developing applications +using libtomcrypt. + +%prep +%autosetup -n %{name}-%{version} -p1 + +%build +export CFLAGS="%{build_cflags} -DLTM_DESC -DUSE_LTM" +make %{?_smp_mflags} LIBPATH=%{_libdir} INCPATH="%{_includedir}" PREFIX="%{_prefix}" EXTRALIBS="-ltommath" -f makefile.shared + +%install +%make_install INSTALL_OPTS="-m 755" INCPATH="%{_includedir}" LIBPATH="%{_libdir}" -f makefile.shared + +%delete_la_and_a + +%check +make test + +%post -n %{name} -p /sbin/ldconfig +%postun -n %{name} -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%license LICENSE +%{_libdir}/libtomcrypt.so.* + +%files devel +%defattr(-,root,root) +%{_includedir}/*.h +%{_libdir}/libtomcrypt.so +%{_libdir}/pkgconfig/*.pc + +%changelog +* Fri Oct 11 2019 openEuler Buildteam - 1.18.2-3 +- modify build path + +* Thu Oct 10 2019 openEuler Buildteam - 1.18.2-2 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:modify libtomcrypt spec + +* Thu Oct 10 2019 openEuler Buildteam - 1.18.2-1 +- Package init