SPECS: cryptsetup-luks.spec - added nostatic patch and static bcon...

qboosh qboosh at pld-linux.org
Tue Aug 22 23:24:48 CEST 2006


Author: qboosh                       Date: Tue Aug 22 21:24:48 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added nostatic patch and static bcond (link cryptsetup dynamically by default)

---- Files affected:
SPECS:
   cryptsetup-luks.spec (1.10 -> 1.11) 

---- Diffs:

================================================================
Index: SPECS/cryptsetup-luks.spec
diff -u SPECS/cryptsetup-luks.spec:1.10 SPECS/cryptsetup-luks.spec:1.11
--- SPECS/cryptsetup-luks.spec:1.10	Fri Jun 23 12:25:23 2006
+++ SPECS/cryptsetup-luks.spec	Tue Aug 22 23:24:43 2006
@@ -1,4 +1,8 @@
 # $Revision$, $Date$
+#
+# Conditonal build:
+%bcond_with	static	# link cryptsetup statically
+#
 Summary:	LUKS for dm-crypt implemented in cryptsetup
 Summary(pl):	LUKS dla dm-crypta zaimplementowany w cryptsetup
 Name:		cryptsetup-luks
@@ -9,17 +13,20 @@
 Source0:	http://luks.endorphin.org/source/%{name}-%{version}.tar.bz2
 # Source0-md5:	e134b82b4706a28ba1d73b9176d5ad0c
 Patch0:		%{name}-sepol.patch
+Patch1:		%{name}-nostatic.patch
 URL:		http://luks.endorphin.org/about
 BuildRequires:	autoconf
 BuildRequires:	automake
-BuildRequires:	device-mapper-static >= 1.02.07
 BuildRequires:	gettext-devel
+%if %{with static}
+BuildRequires:	device-mapper-static >= 1.02.07
 BuildRequires:	libgcrypt-static >= 1.1.42
 BuildRequires:	libgpg-error-static
 BuildRequires:	libselinux-static
 BuildRequires:	libsepol-static
 BuildRequires:	libuuid-static
 BuildRequires:	popt-static
+%endif
 Provides:	cryptsetup = 0.2-1.pre1.8
 Obsoletes:	cryptsetup
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -82,6 +89,7 @@
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
 %{__gettextize}
@@ -90,7 +98,8 @@
 %{__autoconf}
 %{__automake}
 %configure \
-	--enable-static
+	--enable-static \
+	%{?with_static:--enable-static-cryptsetup}
 %{__make}
 
 %install
@@ -135,6 +144,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.11  2006/08/22 21:24:43  qboosh
+- added nostatic patch and static bcond (link cryptsetup dynamically by default)
+
 Revision 1.10  2006/06/23 10:25:23  wrobell
 - ver. 1.0.3
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/cryptsetup-luks.spec?r1=1.10&r2=1.11&f=u



More information about the pld-cvs-commit mailing list