]> git.pld-linux.org Git - packages/cryptsetup.git/commitdiff
- add -initrd subpackage; rel 4 auto/th/cryptsetup-luks-1_0_6-4
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 9 Nov 2008 23:22:20 +0000 (23:22 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    cryptsetup.spec -> 1.27

cryptsetup.spec

index 332d9d6b15199766a5325590e07c3f4711ded566..05fa292b6d411ecee6d7b7c9f358ff9de3824abc 100644 (file)
@@ -1,13 +1,13 @@
 #
 # Conditonal build:
-%bcond_with    static  # link cryptsetup statically
+%bcond_without initrd  # don't build initrd version
 #
 %define        realname        cryptsetup
 Summary:       LUKS for dm-crypt implemented in cryptsetup
 Summary(pl.UTF-8):     LUKS dla dm-crypta zaimplementowany w cryptsetup
 Name:          cryptsetup-luks
 Version:       1.0.6
-Release:       3
+Release:       4
 License:       GPL v2
 Group:         Base
 Source0:       http://luks.endorphin.org/source/%{realname}-%{version}.tar.bz2
@@ -24,7 +24,7 @@ BuildRequires:        libsepol-devel
 BuildRequires: libtool
 BuildRequires: libuuid-devel
 BuildRequires: popt-devel
-%if %{with static}
+%if %{with initrd}
 BuildRequires: device-mapper-static >= 1.02.07
 BuildRequires: libgcrypt-static >= 1.1.42
 BuildRequires: libgpg-error-static
@@ -91,6 +91,14 @@ Static version of cryptsetup library.
 %description static -l pl.UTF-8
 Statyczna wersja biblioteki cryptsetup.
 
+%package initrd
+Summary:       LUKS for dm-crypt implemented in cryptsetup - initrd version
+Group:         Base
+
+%description initrd
+This package contains implementation of LUKS for dm-crypt implemented
+in cryptsetup - staticaly linked for initrd.
+
 %prep
 %setup -q -n %{realname}-%{version}
 %patch1 -p1
@@ -102,9 +110,18 @@ Statyczna wersja biblioteki cryptsetup.
 %{__autoconf}
 %{__autoheader}
 %{__automake}
+
+%if %{with initrd}
 %configure \
        --enable-static \
-       %{?with_static:--enable-static-cryptsetup}
+       --enable-static-cryptsetup
+%{__make}
+mv src/cryptsetup cryptsetup-initrd
+%{__make} clean
+%endif
+
+%configure \
+       --enable-static
 %{__make}
 
 %install
@@ -118,6 +135,10 @@ mv -f $RPM_BUILD_ROOT%{_libdir}/libcryptsetup.so.* $RPM_BUILD_ROOT/%{_lib}
 ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libcryptsetup.so.*.*.*) \
        $RPM_BUILD_ROOT%{_libdir}/libcryptsetup.so
 
+%if %{with initrd}
+install cryptsetup-initrd $RPM_BUILD_ROOT%{_sbindir}
+%endif
+
 %find_lang %{realname}
 
 %clean
@@ -143,3 +164,9 @@ rm -rf $RPM_BUILD_ROOT
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libcryptsetup.a
+
+%if %{with initrd}
+%files initrd
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_sbindir}/cryptsetup-initrd
+%endif
This page took 0.182368 seconds and 4 git commands to generate.