Summary(pl.UTF-8): LUKS dla dm-crypta zaimplementowany w cryptsetup
Name: cryptsetup-luks
Version: 1.0.6
-Release: 9
+Release: 10
License: GPL v2
Group: Base
Source0: http://luks.endorphin.org/source/%{realname}-%{version}.tar.bz2
Summary: LUKS for dm-crypt implemented in cryptsetup - initrd version
Group: Base
Requires: udev-initrd >= 1:115
+Conflicts: geninitrd < 10000.10
%description initrd
This package contains implementation of LUKS for dm-crypt implemented
%if %{with initrd}
%configure \
%if %{with dietlibc}
- CC="diet %{__cc} -Os %{rpmldflags}" \
+ CC="diet %{__cc} %{rpmcflags} %{rpmldflags} -Os" \
ac_cv_lib_popt_poptConfigFileToString=yes \
ac_cv_lib_sepol_sepol_bool_set=no \
ac_cv_lib_selinux_is_selinux_enabled=no \
%if %{with dietlibc}
# we have to do it by hand cause libtool "know better" and forces
# static libs from /usr/lib
-diet %{__cc} -Os -I./lib -static -o cryptsetup-initrd src/cryptsetup.c \
- ./lib/.libs/libcryptsetup.a -lpopt -lgcrypt -lgpg-error -ldevmapper -luuid -lcompat
+diet %{__cc} %{rpmcflags} %{rpmldflags} -Os -I./lib -static \
+ -o cryptsetup-initrd src/cryptsetup.c ./lib/.libs/libcryptsetup.a \
+ -lpopt -lgcrypt -lgpg-error -ldevmapper -luuid -lcompat
%else
%{__make} -C src
mv src/cryptsetup cryptsetup-initrd
$RPM_BUILD_ROOT%{_libdir}/libcryptsetup.so
%if %{with initrd}
-install cryptsetup-initrd $RPM_BUILD_ROOT%{_sbindir}
+install -d $RPM_BUILD_ROOT%{_libdir}/initrd
+install cryptsetup-initrd $RPM_BUILD_ROOT%{_libdir}/initrd/cryptsetup
%endif
install %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/initramfs-tools/conf-hooks.d/cryptsetup
%if %{with initrd}
%files initrd
%defattr(644,root,root,755)
-%attr(755,root,root) %{_sbindir}/cryptsetup-initrd
+%attr(755,root,root) %{_libdir}/initrd/cryptsetup
%endif
%files initramfs