File mcrypt.spec of Package mcrypt
#
# spec file for package mcrypt (Version 2.6.8)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: mcrypt
BuildRequires: libmcrypt-devel mhash-devel zlib-devel
License: GPL v3 or later
Group: Productivity/Security
AutoReqProv: on
Version: 2.6.8
Release: 3
Summary: Replacement for the crypt Command
Source: %{name}-%{version}.tar.bz2
Patch0: %{name}-%{version}-gettext.patch
Patch1: %{name}-%{version}-format_strings.patch
Patch2: %{name}-%{version}-uninitialized.patch
# PATCH-FEATURE-OPENSUSE mcrypt-native-by-default.patch bnc385951 petr.uzel@suse.cz -- make native encryption format default (patch from Fedora)
Patch3: mcrypt-native-by-default.patch
# PATCH-FIX-OPENSUSE mcrypt-manpage-fix.patch petr.uzel@suse.cz -- fix manpage typos (patch from Debian)
Patch4: mcrypt-manpage-fix.patch
Patch5: mcrypt-2.6.8-missing-fclose.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Url: http://mcrypt.sourceforge.net/
%description
A replacement for the old unix crypt(1) command. Mcrypt uses the
following encryption (block) algorithms: BLOWFISH, DES, TripleDES,
3-WAY, SAFER-SK64, SAFER-SK128, CAST-128, RC2 TEA (extended), TWOFISH,
RC6, IDEA, and GOST. The Unix crypt algorithm is also included to allow
compatibility with the crypt(1) command. CBC, ECB, OFB, and CFB modes
of encryption are supported.
Authors:
--------
Nikos Mavroyanopoulos <nmav@hellug.gr>
%prep
%setup -q
%patch0
%patch1
%patch2
%patch3 -p1
%patch4 -p1
%patch5 -p1
%build
rm -fv ac*.m4
autoreconf --force --install
test -f po/Makevars || mv po/Makevars.template po/Makevars
%configure
make %{?jobs:-j%jobs}
%install
make install DESTDIR=$RPM_BUILD_ROOT
%find_lang %{name}
%clean
rm -rf $RPM_BUILD_ROOT
%files -f %{name}.lang
%defattr(-,root,root)
%doc AUTHORS ChangeLog NEWS README THANKS TODO
%doc doc/FORMAT doc/magic doc/sample.mcryptrc
%{_bindir}/*
%doc %{_mandir}/man1/*
%changelog