|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
Name: libtomcrypt
|
|
|
|
|
Version: 1.17
|
|
|
|
|
Release: 20%{?dist}
|
|
|
|
|
Release: 21%{?dist}
|
|
|
|
|
Summary: A comprehensive, portable cryptographic toolkit
|
|
|
|
|
|
|
|
|
|
License: Public Domain
|
|
|
|
@ -10,7 +10,7 @@ Patch0: %{name}-makefile.patch
|
|
|
|
|
Patch1: %{name}-pkgconfig.patch
|
|
|
|
|
|
|
|
|
|
BuildRequires: ghostscript
|
|
|
|
|
BuildRequires: libtommath-devel >= 0.42.0
|
|
|
|
|
BuildRequires: libtommath-devel >= 0.42.0-3
|
|
|
|
|
BuildRequires: libtool
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora} || 0%{?rhel} >= 7
|
|
|
|
@ -58,15 +58,14 @@ The %{name}-doc package contains documentation for use with %{name}.
|
|
|
|
|
%patch1 -p1 -b .pkgconfig
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
# no configure script ships with libtomcrypt. Its only requirement is
|
|
|
|
|
# ANSI C. And libtommath. Explicitly force it to be built against libtommath
|
|
|
|
|
export CFLAGS="$RPM_OPT_FLAGS -DLTM_DESC -I%{_includedir}/tommath"
|
|
|
|
|
|
|
|
|
|
# No configure script ships with libtomcrypt. Its only requirement is ANSI C and
|
|
|
|
|
# libtommath. Explicitly force it to be built against libtommath.
|
|
|
|
|
export CFLAGS="$RPM_OPT_FLAGS -DLTM_DESC"
|
|
|
|
|
make %{?_smp_mflags} LIBPATH=%{_libdir} EXTRALIBS="-ltommath" -f makefile.shared
|
|
|
|
|
make %{?_smp_mflags} LIBPATH=%{_libdir} -f makefile docs
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
export CFLAGS="$RPM_OPT_FLAGS -DLTM_DESC -DUSE_LTM -I%{_includedir}/tommath"
|
|
|
|
|
export CFLAGS="$RPM_OPT_FLAGS -DLTM_DESC -DUSE_LTM"
|
|
|
|
|
make %{?_smp_mflags} LIBPATH=%{_libdir} EXTRALIBS="-ltommath" test
|
|
|
|
|
./test
|
|
|
|
|
|
|
|
|
@ -78,12 +77,12 @@ export INSTALL_USER=$(id -un)
|
|
|
|
|
export INSTALL_GROUP=$(id -gn)
|
|
|
|
|
export CFLAGS="$RPM_OPT_FLAGS -DLTM_DESC -DUSE_LTM"
|
|
|
|
|
|
|
|
|
|
make install INCPATH=%{_includedir}/tomcrypt DESTDIR=%{buildroot} LIBPATH=%{_libdir} EXTRALIBS="-ltommath" -f makefile.shared
|
|
|
|
|
make install DESTDIR=%{buildroot} LIBPATH=%{_libdir} EXTRALIBS="-ltommath" -f makefile.shared
|
|
|
|
|
find %{buildroot} -name '*.h' -exec chmod 644 {} \;
|
|
|
|
|
find %{buildroot} -name '*.c' -exec chmod 644 {} \;
|
|
|
|
|
chmod 644 LICENSE
|
|
|
|
|
|
|
|
|
|
# remove unneeded files
|
|
|
|
|
# Remove unneeded files
|
|
|
|
|
find %{buildroot} -name '*.la' -delete
|
|
|
|
|
find %{buildroot} -name '*.a' -delete
|
|
|
|
|
find %{buildroot} -name 'libtomcrypt_prof*' -delete
|
|
|
|
@ -97,8 +96,7 @@ find %{buildroot} -name 'libtomcrypt_prof*' -delete
|
|
|
|
|
%{_libdir}/*.so.*
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%doc LICENSE
|
|
|
|
|
%{_includedir}/tomcrypt
|
|
|
|
|
%{_includedir}/*.h
|
|
|
|
|
%{_libdir}/*.so
|
|
|
|
|
%{_libdir}/pkgconfig/libtomcrypt.pc
|
|
|
|
|
|
|
|
|
@ -106,6 +104,9 @@ find %{buildroot} -name 'libtomcrypt_prof*' -delete
|
|
|
|
|
%doc LICENSE doc/crypt.pdf
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Sun Sep 29 2013 Simone Caronni <negativo17@gmail.com> - 1.17-21
|
|
|
|
|
- Move headers to default location.
|
|
|
|
|
|
|
|
|
|
* Thu Aug 08 2013 Simone Caronni <negativo17@gmail.com> - 1.17-20
|
|
|
|
|
- Make doc package noarch.
|
|
|
|
|
- Remove executable bits from LICENSE file and source files.
|
|
|
|
|