|
|
|
@ -1,32 +1,31 @@
|
|
|
|
|
Name: libtomcrypt
|
|
|
|
|
Version: 1.17
|
|
|
|
|
Release: 15%{?dist}
|
|
|
|
|
Release: 16%{?dist}
|
|
|
|
|
Summary: A comprehensive, portable cryptographic toolkit
|
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
|
|
|
|
|
|
License: Public Domain
|
|
|
|
|
URL: http://www.libtom.org/?page=features&newsitems=5&whatfile=crypt
|
|
|
|
|
Source0: http://www.libtom.org/files/crypt-%{version}.tar.bz2
|
|
|
|
|
Requires: libtommath >= 0.41
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
BuildRequires: libtommath-devel >= 0.41, libtool
|
|
|
|
|
Patch0: %{name}-makefile.patch
|
|
|
|
|
Patch1: %{name}-pkgconfig.patch
|
|
|
|
|
|
|
|
|
|
Patch0: libtomcrypt-makefile.patch
|
|
|
|
|
Requires: libtommath >= 0.41
|
|
|
|
|
BuildRequires: libtommath-devel >= 0.41
|
|
|
|
|
BuildRequires: libtool
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
A 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.
|
|
|
|
|
A 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.
|
|
|
|
|
|
|
|
|
|
Designed from the ground up to be very simple to use. It has a modular
|
|
|
|
|
and standard API that allows new ciphers, hashes and PRNGs to be added
|
|
|
|
|
or removed without change to the overall end application. It features
|
|
|
|
|
easy to use functions and a complete user manual which has many source
|
|
|
|
|
snippet examples.
|
|
|
|
|
Designed from the ground up to be very simple to use. It has a modular and
|
|
|
|
|
standard API that allows new ciphers, hashes and PRNGs to be added or removed
|
|
|
|
|
without change to the overall end application. It features easy to use functions
|
|
|
|
|
and a complete user manual which has many source snippet examples.
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
@ -35,9 +34,19 @@ developing applications that use %{name}.
|
|
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
|
Summary: Documentation files for %{name}
|
|
|
|
|
Group: Documentation
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
BuildRequires: tetex-latex, tetex-dvips, ghostscript
|
|
|
|
|
|
|
|
|
|
BuildRequires: ghostscript
|
|
|
|
|
BuildRequires: tetex-dvips
|
|
|
|
|
BuildRequires: tetex-latex
|
|
|
|
|
%if 0%{?fedora} >= 18 || 0%{?rhel} >= 7
|
|
|
|
|
BuildRequires: texlive-cm
|
|
|
|
|
BuildRequires: texlive-fancyhdr
|
|
|
|
|
BuildRequires: texlive-latex-bin-bin
|
|
|
|
|
BuildRequires: texlive-makeindex-bin
|
|
|
|
|
BuildRequires: texlive-metafont-bin
|
|
|
|
|
BuildRequires: texlive-texconfig
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
|
The %{name}-doc package contains documentation for use with %{name}.
|
|
|
|
@ -45,20 +54,16 @@ The %{name}-doc package contains documentation for use with %{name}.
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
|
|
|
|
%patch0 -p1 -b .makefile
|
|
|
|
|
|
|
|
|
|
%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"
|
|
|
|
|
# work around bug #239003
|
|
|
|
|
%ifarch ppc64
|
|
|
|
|
export CFLAGS="$CFLAGS -O0"
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
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"
|
|
|
|
|
make %{?_smp_mflags} LIBPATH=%{_libdir} EXTRALIBS="-ltommath" test
|
|
|
|
@ -68,45 +73,42 @@ make %{?_smp_mflags} LIBPATH=%{_libdir} EXTRALIBS="-ltommath" test
|
|
|
|
|
# There is no configure script that ships with libtomcrypt but it does
|
|
|
|
|
# have understand DESTDIR and its installs via that and the
|
|
|
|
|
# INSTALL_USER and INSTALL_GROUP environment variables.
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
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=$RPM_BUILD_ROOT LIBPATH=%{_libdir} EXTRALIBS="-ltommath" -f makefile.shared
|
|
|
|
|
find $RPM_BUILD_ROOT -name '*.h' -exec chmod 644 {} ';'
|
|
|
|
|
make install INCPATH=%{_includedir}/tomcrypt DESTDIR=%{buildroot} LIBPATH=%{_libdir} EXTRALIBS="-ltommath" -f makefile.shared
|
|
|
|
|
find %{buildroot} -name '*.h' -exec chmod 644 {} ';'
|
|
|
|
|
|
|
|
|
|
# remove unneeded files
|
|
|
|
|
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
|
|
|
|
|
find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} ';'
|
|
|
|
|
find $RPM_BUILD_ROOT -name 'libtomcrypt_prof*' -exec rm -f {} ';'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
find %{buildroot} -name '*.la' -exec rm -f {} ';'
|
|
|
|
|
find %{buildroot} -name '*.a' -exec rm -f {} ';'
|
|
|
|
|
find %{buildroot} -name 'libtomcrypt_prof*' -exec rm -f {} ';'
|
|
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%doc LICENSE
|
|
|
|
|
%{_libdir}/*.so.*
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%doc LICENSE
|
|
|
|
|
%{_includedir}/tomcrypt
|
|
|
|
|
%{_libdir}/*.so
|
|
|
|
|
%{_libdir}/pkgconfig/libtomcrypt.pc
|
|
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%doc LICENSE doc/crypt.pdf
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Jun 03 2013 Simone Caronni <negativo17@gmail.com> - 1.17-16
|
|
|
|
|
- Update SPEC, remove obsolete tags, fix formatting.
|
|
|
|
|
- Add patch for pkg config (libtomcrypt.pc).
|
|
|
|
|
- Add correct build requirements for Fedora 19+ and RHEL 7+.
|
|
|
|
|
|
|
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.17-15
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|