2014-07-03 14:57:19 +00:00
|
|
|
#
|
|
|
|
# Spec file for package libtomcrypt (Version 1.17)
|
|
|
|
#
|
|
|
|
# Copyright (c) 2009 Exata T.I., Maringa, PR, Brasil.
|
|
|
|
# This file and all modifications and additions to the pristine
|
|
|
|
# package are under the same license as the package itself.
|
|
|
|
#
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org
|
|
|
|
#
|
|
|
|
|
2014-07-03 16:32:06 +00:00
|
|
|
%define soname libtomcrypt0
|
2014-07-03 14:57:19 +00:00
|
|
|
|
2014-07-03 16:32:06 +00:00
|
|
|
Name: libtomcrypt
|
2014-07-03 14:57:19 +00:00
|
|
|
Version: 1.17
|
|
|
|
Release: 1
|
2014-07-03 16:32:06 +00:00
|
|
|
License: SUSE-Public-Domain
|
2014-07-03 14:57:19 +00:00
|
|
|
Summary: Cryptographic Toolkit Written in Portable C
|
|
|
|
Url: http://libtom.org
|
|
|
|
Group: System/Libraries
|
|
|
|
Source0: crypt-%{version}.tar.bz2
|
|
|
|
# PATCH-FIX-UPSTREAM %{name}-makefile.shared.patch
|
|
|
|
Patch0: %{name}-makefile.shared.patch
|
|
|
|
BuildRequires: libtool, texlive-latex
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
Author:
|
|
|
|
--------
|
|
|
|
Tom St Denis
|
|
|
|
|
2014-07-03 16:32:06 +00:00
|
|
|
%package -n %{soname}
|
|
|
|
Summary: Libraries for %{name}
|
2014-07-03 16:38:54 +00:00
|
|
|
Group: System/Libraries
|
2014-07-03 16:32:06 +00:00
|
|
|
|
|
|
|
%description -n %{soname}
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
2014-07-03 14:57:19 +00:00
|
|
|
%package devel
|
|
|
|
Summary: Development Files for LibTomCrypt
|
|
|
|
Group: Development/Libraries/C and C++
|
2014-07-03 16:50:35 +00:00
|
|
|
Requires: %{soname} = %{version}
|
2014-07-03 14:57:19 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
Headers and other development files for TomCrypt library.
|
|
|
|
|
|
|
|
Author:
|
|
|
|
--------
|
|
|
|
Tom St Denis
|
|
|
|
|
|
|
|
%package examples
|
|
|
|
Summary: Example Files for LibTomCrypt
|
|
|
|
Group: Development/Libraries/Other
|
2014-07-03 16:50:35 +00:00
|
|
|
Requires: %{soname} = %{version}
|
2014-07-03 14:57:19 +00:00
|
|
|
|
|
|
|
%description examples
|
|
|
|
Example *.c files showing how to use TomCrypt library.
|
|
|
|
|
|
|
|
Author:
|
|
|
|
--------
|
|
|
|
Tom St Denis
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -qn libtomcrypt-%{version}
|
|
|
|
%patch0 -p1
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
export CFLAGS="%{optflags}"
|
|
|
|
make %{?_smp_mflags} LIBPATH=%{_libdir} -f makefile.shared
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%{__make} DESTDIR=%{buildroot} LIBPATH=%{_libdir} NODOCS=0 -f makefile.shared install
|
|
|
|
# Remove static libraries (It's upstream bug in makefile.shared I think.)
|
|
|
|
%{__rm} %{buildroot}%{_libdir}/*.a
|
|
|
|
|
2014-07-03 16:32:06 +00:00
|
|
|
%post -n %{soname} -p /sbin/ldconfig
|
2014-07-03 14:57:19 +00:00
|
|
|
|
|
|
|
|
2014-07-03 16:32:06 +00:00
|
|
|
%postun -n %{soname} -p /sbin/ldconfig
|
2014-07-03 14:57:19 +00:00
|
|
|
|
|
|
|
|
2014-07-03 16:32:06 +00:00
|
|
|
%files -n %{soname}
|
2014-07-03 14:57:19 +00:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libtomcrypt.so.0
|
|
|
|
%{_libdir}/libtomcrypt.so.0.0.117
|
|
|
|
%{_libdir}/libtomcrypt_prof.so.0
|
|
|
|
%{_libdir}/libtomcrypt_prof.so.0.0.117
|
|
|
|
%doc LICENSE README TODO doc/crypt.pdf
|
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%attr(0644,root,root) %{_includedir}/tomcrypt*.h
|
|
|
|
%{_libdir}/libtomcrypt.so
|
|
|
|
%{_libdir}/libtomcrypt.la
|
|
|
|
%{_libdir}/libtomcrypt_prof.so
|
|
|
|
%{_libdir}/libtomcrypt_prof.la
|
|
|
|
|
|
|
|
|
|
|
|
%files examples
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc demos
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|