File cryptconfig.spec of Package cryptconfig
#
# spec file for package cryptconfig (Version 0.3)
#
# Copyright (c) 2010 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: cryptconfig
Version: 0.3
Release: 71
Group: System/Base
License: GPLv2+
Summary: A Utility to Configure Encrypted Home Directories and LUKS Partitions
AutoReqProv: on
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: util-linux cryptsetup pam_mount >= 0.20 glib2 >= 2.8 openssl >= 0.9.7 pam-config >= 0.21
BuildRequires: cryptsetup glib2-devel >= 2.8 intltool libxml2-devel openssl-devel >= 0.9.7 pam-config >= 0.21 pam-devel util-linux
Source: %{name}-%{version}.tar.gz
Source1: %{name}-po.tar.gz
Source2: baselibs.conf
Patch0: cryptconfig-0.3-new-pam_mount-options.dif
%description
This package contains a utility for configuring encrypted home
directories and LUKS partitions. It also supports creating LUKS disk
images, creating LUKS partitions, and enlarging disk images along with
their file systems. This package also contains a pam module that syncs
a user's UNIX password with the password used to encrypt their home
directory.
Authors:
--------
Chris Rivera <crivera@novell.com>
%prep
%setup -a1
%patch0
%build
#CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix} \
# --sbindir=%{_sbindir} --mandir=%{_mandir}
export CFLAGS="$RPM_OPT_FLAGS"
autoreconf --force --install
%configure --with-slibdir=/%{_lib}
%install
make install DESTDIR=${RPM_BUILD_ROOT}
rm -f $RPM_BUILD_ROOT/%_lib/security/pam_cryptpass.{a,la}
%{find_lang} %{name}
%clean
rm -rf $RPM_BUILD_ROOT
%files -f %{name}.lang
%defattr(-,root,root)
/%_lib/security/pam_cryptpass*.so
%{_sbindir}/cryptconfig
%{_sysconfdir}/cryptconfig.conf
%doc %{_mandir}/man8/cryptconfig.8.gz
%changelog