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: device-mapper-devel
20 BuildRequires: gettext-devel
21 BuildRequires: libgcrypt-devel >= 1.1.42
22 BuildRequires: libselinux-devel
23 BuildRequires: libsepol-devel
24 BuildRequires: libuuid-devel
25 BuildRequires: popt-devel
27 BuildRequires: device-mapper-static >= 1.02.07
28 BuildRequires: libgcrypt-static >= 1.1.42
29 BuildRequires: libgpg-error-static
30 BuildRequires: libselinux-static
31 BuildRequires: libsepol-static
32 BuildRequires: libuuid-static
33 BuildRequires: popt-static
35 Provides: cryptsetup = 0.2-1.pre1.8
37 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39 %define _sbindir /sbin
42 LUKS is the upcoming standard for Linux hard disk encryption. By
43 providing a standard on-disk-format, it does not only facilitate
44 compatibility among distributions, but also provide secure management
45 of multiple user passwords. In contrast to existing solution, LUKS
46 stores all setup necessary setup information in the partition header,
47 enabling the user to transport or migrate his data seamlessly.
49 This package contains implementation of LUKS for dm-crypt implemented
53 LUKS to nadchodz±cy standard linuksowego szyfrowania twardego dysku.
54 Dostarczaj±c standardowy format danych na dysku nie tylko u³atwia
55 utrzymanie kompatybilno¶ci miêdzy dystrybucjami, ale tak¿e dostarcza
56 bezpieczne zarz±dzanie wieloma has³ami u¿ytkowników. W przeciwieñstwie
57 do istniej±cego rozwi±zania LUKS przechowuje wszystkie potrzebne
58 informacje o konfiguracji w nag³ówku partycji, pozwalaj±c
59 u¿ytkownikowi przenosiæ lub migrowaæ dane w sposób przezroczysty.
61 Ten pakiet zawiera implementacjê LUKS dla dm-crytpa zaimplementowan± w
65 Summary: Header files for cryptsetup library
66 Summary(pl): Pliki nag³ówkowe biblioteki cryptsetup
67 Group: Development/Libraries
68 Requires: %{name} = %{version}-%{release}
69 Requires: device-mapper-devel
70 Requires: libgcrypt-devel >= 1.1.42
71 Provides: cryptsetup-devel
72 Obsoletes: cryptsetup-devel
75 Header files for cryptsetup library.
77 %description devel -l pl
78 Pliki nag³ówkowe biblioteki cryptsetup.
81 Summary: Static cryptsetup library
82 Summary(pl): Statyczna biblioteka cryptsetup
83 Group: Development/Libraries
84 Requires: %{name}-devel = %{version}-%{release}
85 Provides: cryptsetup-static
86 Obsoletes: cryptsetup-static
89 Static version of cryptsetup library.
91 %description static -l pl
92 Statyczna wersja biblioteki cryptsetup.
107 %{?with_static:--enable-static-cryptsetup}
111 rm -rf $RPM_BUILD_ROOT
114 DESTDIR=$RPM_BUILD_ROOT
116 install -d $RPM_BUILD_ROOT/%{_lib}
117 mv -f $RPM_BUILD_ROOT%{_libdir}/libcryptsetup.so.*.*.* $RPM_BUILD_ROOT/%{_lib}
118 ln -sf /%{_lib}/$(cd $RPM_BUILD_ROOT/%{_lib}; echo libcryptsetup.so.*.*.*) \
119 $RPM_BUILD_ROOT%{_libdir}/libcryptsetup.so
124 rm -rf $RPM_BUILD_ROOT
126 %post -p /sbin/ldconfig
127 %postun -p /sbin/ldconfig
129 %files -f %{name}.lang
130 %defattr(644,root,root,755)
132 %attr(755,root,root) %{_sbindir}/cryptsetup
133 %attr(755,root,root) /%{_lib}/libcryptsetup.so.*.*.*
137 %defattr(644,root,root,755)
138 %attr(755,root,root) %{_libdir}/libcryptsetup.so
139 %{_libdir}/libcryptsetup.la
143 %defattr(644,root,root,755)
144 %{_libdir}/libcryptsetup.a