mcrypt/mcrypt.spec

85 lines
3.0 KiB
RPMSpec
Raw Normal View History

Name: mcrypt
Version: 2.6.8
Release: 1mamba
Summary: A replacement of the old unix crypt
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://mcrypt.sourceforge.net/
Source: http://downloads.sourceforge.net/project/mcrypt/MCrypt/%{version}/mcrypt-%{version}.tar.gz
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libmcrypt-devel
BuildRequires: libmhash-devel
BuildRequires: libz-devel
## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Mcrypt, and the accompanying libmcrypt, are intended to be replacements for the old Unix crypt, except that they are under the GPL and support an ever-wider range of algorithms and modes.
Unlike most encryption libraries libmcrypt does not have everything (random number generators, hashes, hmac implementation, key exchange, public key encryption etc.).
Libmcrypt only implements an interface to access block and stream encryption algorithms.
It's purpose was to assist in the development of mcrypt by providing a uniform interface to access several different encryption algorithms, so that the main program is independent of the encryption algorithms and the modes used.
Libmcrypt supports the algorithms:
* BLOWFISH
* TWOFISH
* DES, TripleDES
* 3-WAY
* SAFER-sk64, SAFER-sk128, SAFER+
* LOKI97
* GOST
* RC2, RC6
* MARS
* IDEA
* RIJNDAEL-128 (AES), RIJNDAEL-192, RIJNDAEL-256
* SERPENT
* CAST-128 (known as CAST5), CAST-256
* ARCFOUR
* WAKE
Block algorithms can be used in: CBC, ECB, CFB and OFB (8 bit and n bit, where
n is the size of the algorithm's block length).
%package devel
Summary: Devel package for libmcrypt
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
Mcrypt, and the accompanying libmcrypt, are intended to be replacements for the old Unix crypt, except that they are under the GPL and support an ever-wider range of algorithms and modes.
Unlike most encryption libraries libmcrypt does not have everything (random number generators, hashes, hmac implementation, key exchange, public key encryption etc.).
Libmcrypt only implements an interface to access block and stream encryption algorithms.
It's purpose was to assist in the development of mcrypt by providing a uniform interface to access several different encryption algorithms, so that the main program is independent of the encryption algorithms and the modes used.
This package contains static libraries and header files need for development
%prep
%setup -q -n mcrypt-%{version}
%build
%configure \
--enable-shared
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
%find_lang %{name}
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files -f %{name}.lang
%defattr(-,root,root)
%{_bindir}/mcrypt
%{_bindir}/mdecrypt
%{_mandir}/man1/mcrypt.1*
%changelog
* Mon Jul 13 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 2.6.8-1mamba
- package created