]> git.pld-linux.org Git - packages/cryptsetup-luks.git/commitdiff
- added nostatic patch and static bcond (link cryptsetup dynamically by default)
authorJakub Bogusz <qboosh@pld-linux.org>
Tue, 22 Aug 2006 21:24:43 +0000 (21:24 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    cryptsetup-luks.spec -> 1.11

cryptsetup-luks.spec

index 4386de9544ea05f39c89b2353ffdb9fd414458f7..8fda4f34e4ac5d0a3c8ede5b8d7f4cf189abd260 100644 (file)
@@ -1,3 +1,7 @@
+#
+# 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
@@ -8,17 +12,20 @@ Group:               Base
 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)
@@ -81,6 +88,7 @@ Statyczna wersja biblioteki cryptsetup.
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
 %{__gettextize}
@@ -89,7 +97,8 @@ Statyczna wersja biblioteki cryptsetup.
 %{__autoconf}
 %{__automake}
 %configure \
-       --enable-static
+       --enable-static \
+       %{?with_static:--enable-static-cryptsetup}
 %{__make}
 
 %install
This page took 0.07454 seconds and 4 git commands to generate.