Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37558790
en ru br
ALT Linux repos
S:2.5.8-alt3
5.0: 2.5.7-alt2
4.1: 2.5.7-alt2
4.0: 2.5.7-alt2
3.0: 2.5.7-alt1.2

Group :: System/Libraries
RPM: libmcrypt

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: libmcrypt
Version: 2.5.7
Release: alt2

Summary: Encryption/decryption library
License: LGPL
Group: System/Libraries
Url: http://mcrypt.sourceforge.net/

Packager: Vitaly Lipatov <lav at altlinux.ru>

Source: http://dl.sf.net/%name/%name-%version.tar.bz2
Patch0: libmcrypt-2.5.7-alt-libdl.patch
Patch1: libmcrypt-2.5.1-dlopen.patch
Patch2: libmcrypt-2.5.1-symbols.patch
Patch3: libmcrypt-2.5.1-extra.patch
Patch4: libmcrypt-2.5.7-automake.patch

Source1: mcrypt_symb.c

# Automatically added by buildreq on Tue Oct 22 2002

BuildRequires: glibc-devel-static

%package devel
Summary: Development environment for %name
Group: Development/C
Requires: %name = %version-%release

%package devel-static
Summary: Development environment for %name
Group: Development/C
Requires: %name-devel = %version-%release

%description
The 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, ARCFOUR, WAKE and more.

%description devel
This package contains the header files and libraries needed
to develop programs that use the %name library.

%description devel-static
This package contains static libraries.

%prep
%setup -q
%patch -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4

%__subst 's,libmcrypt_la_LIBADD =  at EXTRA_OBJECTS at ,,' lib/Makefile.am

(cd modules
   find . -type f -name '*.c'|xargs %__subst 's/#define _.*//'
)

# only invalid libtool.m4 inclusion

rm -f acinclude.m4
#rm -rf libltdl/

%build
%__autoreconf || %__autoreconf
# Since 2.5.4 libmcrypt does not use dynamic loading for the modules by default
%configure --enable-static --disable-ltdl \
--disable-libtool-lock --disable-dynamic-loading

cp %SOURCE1 lib

#No SMP

%make

%install
%makeinstall transform=

for i in  modes algorithms
do
   cp modules/$i/.libs/*.so %buildroot%_libdir/%name
   #cp modules/$i/.libs/*.la %buildroot%_libdir/%name
   cp modules/$i/.libs/*.a %buildroot%_libdir/%name
done

%post -p %post_ldconfig
%postun -p %post_ldconfig

%files
%_libdir/*.so.*
%dir %_libdir/%name
%_libdir/%name/*.so

%files devel
%doc AUTHORS NEWS README THANKS TODO doc/{README.*,example.c}
%_bindir/*
%_libdir/*.so
%_includedir/*
%_mandir/man?/*
%_datadir/aclocal/*

%files devel-static
%_libdir/*.a
%_libdir/%name/*.a

# TODO: add test for module working (from example?)

# TODO: remove strange hacking for build & install

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin