3 %bcond_with static # link cryptsetup statically
5 Summary: LUKS for dm-crypt implemented in cryptsetup
6 Summary(pl): LUKS dla dm-crypta zaimplementowany w cryptsetup
12 Source0: http://luks.endorphin.org/source/%{name}-%{version}.tar.bz2
13 # Source0-md5: e134b82b4706a28ba1d73b9176d5ad0c
14 Patch0: %{name}-sepol.patch
15 Patch1: %{name}-nostatic.patch
16 URL: http://luks.endorphin.org/about
17 BuildRequires: autoconf
18 BuildRequires: automake
19 BuildRequires: gettext-devel
21 BuildRequires: device-mapper-static >= 1.02.07
22 BuildRequires: libgcrypt-static >= 1.1.42
23 BuildRequires: libgpg-error-static
24 BuildRequires: libselinux-static
25 BuildRequires: libsepol-static
26 BuildRequires: libuuid-static
27 BuildRequires: popt-static
29 Provides: cryptsetup = 0.2-1.pre1.8
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 %define _sbindir /sbin
36 LUKS is the upcoming standard for Linux hard disk encryption. By
37 providing a standard on-disk-format, it does not only facilitate
38 compatibility among distributions, but also provide secure management
39 of multiple user passwords. In contrast to existing solution, LUKS
40 stores all setup necessary setup information in the partition header,
41 enabling the user to transport or migrate his data seamlessly.
43 This package contains implementation of LUKS for dm-crypt implemented
47 LUKS to nadchodz±cy standard linuksowego szyfrowania twardego dysku.
48 Dostarczaj±c standardowy format danych na dysku nie tylko u³atwia
49 utrzymanie kompatybilno¶ci miêdzy dystrybucjami, ale tak¿e dostarcza
50 bezpieczne zarz±dzanie wieloma has³ami u¿ytkowników. W przeciwieñstwie
51 do istniej±cego rozwi±zania LUKS przechowuje wszystkie potrzebne
52 informacje o konfiguracji w nag³ówku partycji, pozwalaj±c
53 u¿ytkownikowi przenosiæ lub migrowaæ dane w sposób przezroczysty.
55 Ten pakiet zawiera implementacjê LUKS dla dm-crytpa zaimplementowan± w
59 Summary: Header files for cryptsetup library
60 Summary(pl): Pliki nag³ówkowe biblioteki cryptsetup
61 Group: Development/Libraries
62 Requires: %{name} = %{version}-%{release}
63 Requires: device-mapper-devel
64 Requires: libgcrypt-devel >= 1.1.42
65 Provides: cryptsetup-devel
66 Obsoletes: cryptsetup-devel
69 Header files for cryptsetup library.
71 %description devel -l pl
72 Pliki nag³ówkowe biblioteki cryptsetup.
75 Summary: Static cryptsetup library
76 Summary(pl): Statyczna biblioteka cryptsetup
77 Group: Development/Libraries
78 Requires: %{name}-devel = %{version}-%{release}
79 Provides: cryptsetup-static
80 Obsoletes: cryptsetup-static
83 Static version of cryptsetup library.
85 %description static -l pl
86 Statyczna wersja biblioteki cryptsetup.
101 %{?with_static:--enable-static-cryptsetup}
105 rm -rf $RPM_BUILD_ROOT
108 DESTDIR=$RPM_BUILD_ROOT
110 install -d $RPM_BUILD_ROOT/%{_lib}
111 mv -f $RPM_BUILD_ROOT%{_libdir}/libcryptsetup.so.*.*.* $RPM_BUILD_ROOT/%{_lib}
112 ln -sf /%{_lib}/$(cd $RPM_BUILD_ROOT/%{_lib}; echo libcryptsetup.so.*.*.*) \
113 $RPM_BUILD_ROOT%{_libdir}/libcryptsetup.so
118 rm -rf $RPM_BUILD_ROOT
120 %post -p /sbin/ldconfig
121 %postun -p /sbin/ldconfig
123 %files -f %{name}.lang
124 %defattr(644,root,root,755)
126 %attr(755,root,root) %{_sbindir}/cryptsetup
127 %attr(755,root,root) /%{_lib}/libcryptsetup.so.*.*.*
131 %defattr(644,root,root,755)
132 %attr(755,root,root) %{_libdir}/libcryptsetup.so
133 %{_libdir}/libcryptsetup.la
137 %defattr(644,root,root,755)
138 %{_libdir}/libcryptsetup.a