Sophie

Sophie

distrib > Mandriva > cs4.0 > i586 > by-pkgid > fc448f43947fd3e1b4d2da3bcb5632f5 > files > 3

cryptsetup-luks-1.0.1-1mlcs4.src.rpm

%define name            cryptsetup-luks
%define version         1.0.1
%define release         %mkrel 1

Name: %{name}
Version: %{version}
Release: %{release}
Summary: Utility for setting up encrypted filesystems
License: GPL
Group: System/Base
URL: http://clemens.endorphin.org/LUKS
Source0: %{name}-%{version}.tar.bz2
Patch1: %{name}-dh.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: libgcrypt-devel >= 1.1.42
BuildRequires: glibc-static-devel
BuildRequires: libgpg-error-devel
BuildRequires: libdevmapper-devel
BuildRequires: libext2fs-devel
BuildRequires: libpopt-devel
Obsoletes: cryptsetup <= 1.0
Provides: cryptsetup

%description
LUKS is the upcoming standard for Linux hard disk encryption. 
By providing a standard on-disk-format, it does not only facilitate 
compatibility among distributions, but also provide secure management 
of multiple user passwords. In contrast to existing solution, LUKS stores 
all setup necessary setup information in the partition header, enabling 
the user to transport or migrate his data seamlessly.
LUKS for dm-crypt is implemented in cryptsetup. cryptsetup-luks is intended 
as a complete replacement for the original cryptsetup. It provides all the 
functionally of the original version plus all LUKS features, that are 
accessible by luks* action.

%prep
%setup -q
%patch1 -p1

%build
# static build for security reasons
%configure --enable-static
LDADD=-all-static %make

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall sbindir=$RPM_BUILD_ROOT/sbin
rm -rf $RPM_BUILD_ROOT/%{_libdir} $RPM_BUILD_ROOT/%{_includedir}
%find_lang %{name}

%clean
rm -rf $RPM_BUILD_ROOT

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files -f %name.lang
%defattr(-,root,root)
%doc COPYING ChangeLog AUTHORS INSTALL NEWS README
%_mandir/man8/cryptsetup*
/sbin/cryptsetup

%changelog
* Mon Oct 31 2005 Anne Nicolas <anne.nicolas@mandriva.com> 1.0.1-1mdk
- initial release
- use David Hayes patch