Summary: Data encryption library Name: libmcrypt Version: 2.5.7 Release: 1a License: GPL, Other License(s), see package Group: System Environment/Libraries Obsoletes: libmcrpt Packager: Leonard den Ottolander Source: libmcrypt-%{version}.tar.bz2 Source1: libmcrypt-idea-0.9.tar.bz2 Source2: libmcrypt-mars-0.9.tar.bz2 Source3: libmcrypt-rc6-0.9.tar.bz2 Source4: libmcrypt-skipjack-0.9.tar.bz2 URL: http://mcrypt.sourceforge.net/ BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: libtool Patch: libmcrypt-2.5.7-man3.patch Patch1: libmcrypt-2.5.7-extra_modules.patch Patch2: libmcrypt-2.5.7-notdynamic.diff %description Libmcrypt is a data encryption library. The library is thread safe and provides encryption and decryption functions. This version of the library supports many encryption algorithms and encryption modes. Some algorithms which are supported: SERPENT, RIJNDAEL, 3DES, GOST, SAFER+, CAST-256, RC2, XTEA, 3WAY, TWOFISH, BLOWFISH, ARC. FOUR, WAKE and more. %package -n libmcrypt-devel Summary: Development package for libmcrypt Group: Development/Libraries Requires: libmcrypt Obsoletes: libmcrpd %description -n libmcrypt-devel Files needed for software development using libmcrypt. %prep %setup -q -n libmcrypt-%{version} -a 1 -a 2 -a 3 -a 4 %patch %patch1 %patch2 %build libtoolize --force for m in idea mars rc6 skipjack; do cp libmcrypt-$m-*/modules/algorithms/*.[ch] modules/algorithms sed -e "s/^EXTRA_DIST = /EXTRA_DIST = $m.h /" \ -e "s/^EXTRA_LTLIBRARIES = /EXTRA_LTLIBRARIES = $m.la /" \ modules/algorithms/Makefile.am >modules/algorithms/Makefile.am2 mv modules/algorithms/Makefile.am2 modules/algorithms/Makefile.am echo "${m}_la_SOURCES = $m.c" >> modules/algorithms/Makefile.am echo "${m}_la_LDFLAGS = -module -avoid-version -rpath \$(pkglibdir)" >> modules/algorithms/Makefile.am done remove_module() { cd modules/algorithms; for mname in $*; do fname=`echo $mname | sed 's/-/_/'` sed -e "/${fname}_la/d" -e "s/${mname}.h//" -e "s/${mname}.la//" Makefile.am > Makefile.am2; mv Makefile.am2 Makefile.am done cd - for mname in $*; do sed -e "s/${mname}//" configure.in > configure.in.2 mv configure.in.2 configure.in done } # remove algorithms which do not work # big endian architectures %ifarch sparc ppc ppc64 s390 s390x mips remove_module panama rc6 %endif # 64bit architectures and s390 %ifarch alpha ia64 s390 remove_module cast-256 mars rc6 %endif aclocal automake -a autoconf CFLAGS="$RPM_OPT_FLAGS" %configure --enable-static make make check %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-, root, root, 0755) %doc AUTHORS ChangeLog KNOWN-BUGS NEWS README THANKS TODO doc/README.* %_libdir/libmcrypt.la %_libdir/libmcrypt.so.* %files -n libmcrypt-devel %defattr(-, root, root, 0755) %doc doc/example.c /usr/bin/* /usr/share/aclocal/* /usr/include/mcrypt.h %_libdir/libmcrypt.a %_libdir/libmcrypt.so %doc %{_mandir}/man3/* %changelog * Sat Dec 27 2003 Leonard den Ottolander 2.5.7-1 - Adapted to build on Red Hat Linux 9 and Fedora Core 1 * Thu Jul 24 2003 - tcrhak@suse.cz - update to version 2.5.7 * Tue Jan 21 2003 - meissner@suse.de - Also remove the ignored algorithms from configure so that it builds on non Intel 32bit again. * Fri Jan 10 2003 - tcrhak@suse.cz - disabled dynamic loading for idea, mars, rc6 and skipjack; this is the default for modules within the main tarball for security reasons * Mon Jan 06 2003 - tcrhak@suse.cz - update to version 2.5.5 * Thu Dec 19 2002 - tcrhak@suse.cz - update to version 2.5.4 * Tue Sep 17 2002 - ro@suse.de - removed bogus self-provides * Fri Aug 16 2002 - kukuk@suse.de - Move libmcrypt.la to main package to make libtools dlopen happy. * Mon Aug 05 2002 - prehak@suse.cz - update to version 2.5.2 - fixed includes in mars module algorithm * Tue Jun 18 2002 - meissner@suse.de - do not build panama, rc6 for ppc64 either. * Fri Apr 26 2002 - tcrhak@suse.cz - added prototype of mcrypt_check_version to mcrypt.h (necessary for mcrypt to configure on ia64) - added description of mcrypt_check_version to mcrypt.3 - don't build panama and rc6 for s390x * Thu Apr 25 2002 - coolo@suse.de - use %%_libdir - added mips to big endian architectures * Mon Feb 25 2002 - tcrhak@suse.cz - moved *.la from the devel to the main package; needed by mcrypt_list_algorithms() and mcrypt_list_modes() * Tue Jan 29 2002 - cihlar@suse.cz - added /usr/bin/* and /usr/share/aclocal/* to %%files * Fri Jan 25 2002 - cihlar@suse.cz - updated libmcrypt to version 2.4.20 - updated all modules to version 0.9 - removed obsolete patches for rc6 and mars - run suse_update_config always - added "make check" - fixed lists of algorithms which do not work on each architecture - compile with $RPM_OPT_FLAGS also on ia64 * Thu Aug 23 2001 - schwab@suse.de - Fix integration of MARS and RC6. - Compile with -O1 on ia64 to workaround compiler bug. - Update libltdl directory. - Configure with --enable-static to get static modules. * Wed Aug 08 2001 - cihlar@suse.cz - completed MODULES list - fix to work only with existing modules from MODULES * Mon Jul 16 2001 - kukuk@suse.de - Build all modules on SPARC again * Wed Jun 27 2001 - pblaha@suse.cz - update on 2.4.15 - fix problem with make static lib * Mon Mar 26 2001 - pblaha@suse.cz - update on 2.4.10 * Thu Feb 01 2001 - pblaha@suse.cz - update on 2.4.9 * Wed Jan 24 2001 - pblaha@suse.cz - update on 2.4.8 * Tue Nov 21 2000 - pblaha@suse.cz - update on 2.4.7 * Wed Sep 13 2000 - fober@suse.de - for s390: %%suse_update_config in %%setup - removed mars idea rc6 cast-256 on s390 - removed wake on s390: this one is especially strange: its only modes: line in the test says ,,failed'', yet the algorithm-lines say ,,ok''! * Mon Jun 26 2000 - uli@suse.de - removed rc6 and idea for PPC * Sun Jun 04 2000 - kukuk@suse.de - Remove algorithms which does not work correctly on SPARC * Fri May 26 2000 - bubnikv@suse.cz - sorted * Mon Apr 17 2000 - bubnikv@suse.cz - added addon cipher algorithms - some cipher algorithms do not work correctly on axp, those are removed from package on axp * Fri Apr 07 2000 - bubnikv@suse.cz - new package (version 2.4.2)