3 %bcond_with static # link cryptsetup statically
5 %define _realname cryptsetup
6 Summary: LUKS for dm-crypt implemented in cryptsetup
7 Summary(pl.UTF-8): LUKS dla dm-crypta zaimplementowany w cryptsetup
13 Source0: http://luks.endorphin.org/source/%{_realname}-%{version}.tar.bz2
14 # Source0-md5: 0aa2f94c39123f1a0352983e5366179c
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
26 BuildRequires: libtool
28 BuildRequires: device-mapper-static >= 1.02.07
29 BuildRequires: libgcrypt-static >= 1.1.42
30 BuildRequires: libgpg-error-static
31 BuildRequires: libselinux-static
32 BuildRequires: libsepol-static
33 BuildRequires: libuuid-static
34 BuildRequires: popt-static
37 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39 %define _sbindir /sbin
40 %define _noautoreqdep libcryptsetup.so.0
43 LUKS is the upcoming standard for Linux hard disk encryption. By
44 providing a standard on-disk-format, it does not only facilitate
45 compatibility among distributions, but also provide secure management
46 of multiple user passwords. In contrast to existing solution, LUKS
47 stores all setup necessary setup information in the partition header,
48 enabling the user to transport or migrate his data seamlessly.
50 This package contains implementation of LUKS for dm-crypt implemented
53 %description -l pl.UTF-8
54 LUKS to nadchodzący standard linuksowego szyfrowania twardego dysku.
55 Dostarczając standardowy format danych na dysku nie tylko ułatwia
56 utrzymanie kompatybilności między dystrybucjami, ale także dostarcza
57 bezpieczne zarządzanie wieloma hasłami użytkowników. W przeciwieństwie
58 do istniejącego rozwiązania LUKS przechowuje wszystkie potrzebne
59 informacje o konfiguracji w nagłówku partycji, pozwalając
60 użytkownikowi przenosić lub migrować dane w sposób przezroczysty.
62 Ten pakiet zawiera implementację LUKS dla dm-crytpa zaimplementowaną w
66 Summary: Header files for cryptsetup library
67 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki cryptsetup
68 Group: Development/Libraries
69 Requires: %{name} = %{version}-%{release}
70 Requires: device-mapper-devel
71 Requires: libgcrypt-devel >= 1.1.42
72 Obsoletes: cryptsetup-devel
75 Header files for cryptsetup library.
77 %description devel -l pl.UTF-8
78 Pliki nagłówkowe biblioteki cryptsetup.
81 Summary: Static cryptsetup library
82 Summary(pl.UTF-8): Statyczna biblioteka cryptsetup
83 Group: Development/Libraries
84 Requires: %{name}-devel = %{version}-%{release}
85 Obsoletes: cryptsetup-static
88 Static version of cryptsetup library.
90 %description static -l pl.UTF-8
91 Statyczna wersja biblioteki cryptsetup.
94 %setup -q -n %{_realname}-%{version}
105 %{?with_static:--enable-static-cryptsetup}
109 rm -rf $RPM_BUILD_ROOT
112 DESTDIR=$RPM_BUILD_ROOT
114 install -d $RPM_BUILD_ROOT/%{_lib}
115 mv -f $RPM_BUILD_ROOT%{_libdir}/libcryptsetup.so.*.*.* $RPM_BUILD_ROOT/%{_lib}
116 ln -sf /%{_lib}/$(cd $RPM_BUILD_ROOT/%{_lib}; echo libcryptsetup.so.*.*.*) \
117 $RPM_BUILD_ROOT%{_libdir}/libcryptsetup.so
119 %find_lang %{_realname}
122 rm -rf $RPM_BUILD_ROOT
124 %post -p /sbin/ldconfig
125 %postun -p /sbin/ldconfig
127 %files -f %{_realname}.lang
128 %defattr(644,root,root,755)
130 %attr(755,root,root) %{_sbindir}/cryptsetup
131 %attr(755,root,root) /%{_lib}/libcryptsetup.so.*.*.*
135 %defattr(644,root,root,755)
136 %attr(755,root,root) %{_libdir}/libcryptsetup.so
137 %{_libdir}/libcryptsetup.la
141 %defattr(644,root,root,755)
142 %{_libdir}/libcryptsetup.a