]>
Commit | Line | Data |
---|---|---|
c769990d JB |
1 | # |
2 | # Conditonal build: | |
44e18714 | 3 | %bcond_without initrd # don't build initrd version |
c769990d | 4 | # |
ab903cbb | 5 | %define realname cryptsetup |
c25a01c4 | 6 | Summary: LUKS for dm-crypt implemented in cryptsetup |
f00185e9 | 7 | Summary(pl.UTF-8): LUKS dla dm-crypta zaimplementowany w cryptsetup |
00a57b4e | 8 | Name: cryptsetup-luks |
90eb1525 | 9 | Version: 1.0.6 |
4e0bd0ac | 10 | Release: 7 |
ab903cbb | 11 | License: GPL v2 |
00a57b4e | 12 | Group: Base |
ab903cbb | 13 | Source0: http://luks.endorphin.org/source/%{realname}-%{version}.tar.bz2 |
90eb1525 | 14 | # Source0-md5: 00d452eb7a76e39f5749545d48934a10 |
c769990d | 15 | Patch1: %{name}-nostatic.patch |
6bea0031 | 16 | Patch2: %{name}-udev.patch |
8d48ad54 | 17 | URL: http://luks.endorphin.org/ |
6707f1d7 JB |
18 | BuildRequires: autoconf |
19 | BuildRequires: automake | |
e6ecff5e | 20 | BuildRequires: device-mapper-devel |
6707f1d7 | 21 | BuildRequires: gettext-devel |
e6ecff5e JB |
22 | BuildRequires: libgcrypt-devel >= 1.1.42 |
23 | BuildRequires: libselinux-devel | |
24 | BuildRequires: libsepol-devel | |
81a6ed91 | 25 | BuildRequires: libtool |
e6ecff5e JB |
26 | BuildRequires: libuuid-devel |
27 | BuildRequires: popt-devel | |
44e18714 | 28 | %if %{with initrd} |
c769990d | 29 | BuildRequires: device-mapper-static >= 1.02.07 |
24fff120 | 30 | BuildRequires: libgcrypt-static >= 1.1.42 |
31 | BuildRequires: libgpg-error-static | |
32 | BuildRequires: libselinux-static | |
4ad6edfa | 33 | BuildRequires: libsepol-static |
24fff120 | 34 | BuildRequires: libuuid-static |
35 | BuildRequires: popt-static | |
c769990d | 36 | %endif |
ad703024 | 37 | Provides: cryptsetup = %{version} |
b08008aa | 38 | Obsoletes: cryptsetup |
9b81b87b ER |
39 | Conflicts: udev < 1:118-1 |
40 | Conflicts: udev-core < 1:115 | |
00a57b4e | 41 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
42 | ||
43 | %define _sbindir /sbin | |
e4ea12be | 44 | %define _noautoreqdep libcryptsetup.so.0 |
00a57b4e | 45 | |
46 | %description | |
d23e9766 | 47 | LUKS is the upcoming standard for Linux hard disk encryption. By |
48 | providing a standard on-disk-format, it does not only facilitate | |
49 | compatibility among distributions, but also provide secure management | |
50 | of multiple user passwords. In contrast to existing solution, LUKS | |
51 | stores all setup necessary setup information in the partition header, | |
52 | enabling the user to transport or migrate his data seamlessly. | |
00a57b4e | 53 | |
d23e9766 | 54 | This package contains implementation of LUKS for dm-crypt implemented |
55 | in cryptsetup. | |
00a57b4e | 56 | |
8a316dbb JR |
57 | %description -l pl.UTF-8 |
58 | LUKS to nadchodzący standard linuksowego szyfrowania twardego dysku. | |
59 | Dostarczając standardowy format danych na dysku nie tylko ułatwia | |
60 | utrzymanie kompatybilności między dystrybucjami, ale także dostarcza | |
61 | bezpieczne zarządzanie wieloma hasłami użytkowników. W przeciwieństwie | |
62 | do istniejącego rozwiązania LUKS przechowuje wszystkie potrzebne | |
63 | informacje o konfiguracji w nagłówku partycji, pozwalając | |
64 | użytkownikowi przenosić lub migrować dane w sposób przezroczysty. | |
b08008aa | 65 | |
8a316dbb | 66 | Ten pakiet zawiera implementację LUKS dla dm-crytpa zaimplementowaną w |
b08008aa JB |
67 | cryptsetup. |
68 | ||
00a57b4e | 69 | %package devel |
70 | Summary: Header files for cryptsetup library | |
f00185e9 | 71 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki cryptsetup |
00a57b4e | 72 | Group: Development/Libraries |
73 | Requires: %{name} = %{version}-%{release} | |
74 | Requires: device-mapper-devel | |
75 | Requires: libgcrypt-devel >= 1.1.42 | |
b08008aa | 76 | Obsoletes: cryptsetup-devel |
00a57b4e | 77 | |
78 | %description devel | |
79 | Header files for cryptsetup library. | |
80 | ||
8a316dbb JR |
81 | %description devel -l pl.UTF-8 |
82 | Pliki nagłówkowe biblioteki cryptsetup. | |
00a57b4e | 83 | |
84 | %package static | |
85 | Summary: Static cryptsetup library | |
f00185e9 | 86 | Summary(pl.UTF-8): Statyczna biblioteka cryptsetup |
00a57b4e | 87 | Group: Development/Libraries |
88 | Requires: %{name}-devel = %{version}-%{release} | |
689fc456 | 89 | Obsoletes: cryptsetup-static |
00a57b4e | 90 | |
91 | %description static | |
92 | Static version of cryptsetup library. | |
93 | ||
8a316dbb | 94 | %description static -l pl.UTF-8 |
00a57b4e | 95 | Statyczna wersja biblioteki cryptsetup. |
96 | ||
44e18714 ER |
97 | %package initrd |
98 | Summary: LUKS for dm-crypt implemented in cryptsetup - initrd version | |
99 | Group: Base | |
6bea0031 | 100 | Requires: udev-initrd >= 1:115 |
44e18714 ER |
101 | |
102 | %description initrd | |
103 | This package contains implementation of LUKS for dm-crypt implemented | |
104 | in cryptsetup - staticaly linked for initrd. | |
105 | ||
00a57b4e | 106 | %prep |
ab903cbb | 107 | %setup -q -n %{realname}-%{version} |
c769990d | 108 | %patch1 -p1 |
6bea0031 | 109 | %patch2 -p1 |
00a57b4e | 110 | |
111 | %build | |
4ad6edfa | 112 | %{__gettextize} |
ab903cbb | 113 | %{__libtoolize} |
4ad6edfa | 114 | %{__aclocal} -I m4 |
115 | %{__autoconf} | |
ab903cbb | 116 | %{__autoheader} |
4ad6edfa | 117 | %{__automake} |
44e18714 ER |
118 | |
119 | %if %{with initrd} | |
24fff120 | 120 | %configure \ |
2c80e984 | 121 | --disable-shared-library \ |
c769990d | 122 | --enable-static \ |
2c80e984 ER |
123 | --enable-static-cryptsetup \ |
124 | --disable-nls | |
44e18714 ER |
125 | %{__make} |
126 | mv src/cryptsetup cryptsetup-initrd | |
127 | %{__make} clean | |
128 | %endif | |
129 | ||
130 | %configure \ | |
131 | --enable-static | |
00a57b4e | 132 | %{__make} |
133 | ||
134 | %install | |
135 | rm -rf $RPM_BUILD_ROOT | |
136 | ||
137 | %{__make} install \ | |
138 | DESTDIR=$RPM_BUILD_ROOT | |
139 | ||
140 | install -d $RPM_BUILD_ROOT/%{_lib} | |
ab903cbb JB |
141 | mv -f $RPM_BUILD_ROOT%{_libdir}/libcryptsetup.so.* $RPM_BUILD_ROOT/%{_lib} |
142 | ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libcryptsetup.so.*.*.*) \ | |
00a57b4e | 143 | $RPM_BUILD_ROOT%{_libdir}/libcryptsetup.so |
144 | ||
44e18714 ER |
145 | %if %{with initrd} |
146 | install cryptsetup-initrd $RPM_BUILD_ROOT%{_sbindir} | |
147 | %endif | |
148 | ||
ab903cbb | 149 | %find_lang %{realname} |
00a57b4e | 150 | |
151 | %clean | |
152 | rm -rf $RPM_BUILD_ROOT | |
153 | ||
154 | %post -p /sbin/ldconfig | |
155 | %postun -p /sbin/ldconfig | |
156 | ||
ab903cbb | 157 | %files -f %{realname}.lang |
00a57b4e | 158 | %defattr(644,root,root,755) |
ab903cbb | 159 | %doc AUTHORS ChangeLog TODO |
00a57b4e | 160 | %attr(755,root,root) %{_sbindir}/cryptsetup |
161 | %attr(755,root,root) /%{_lib}/libcryptsetup.so.*.*.* | |
ab903cbb JB |
162 | %attr(755,root,root) %ghost /%{_lib}/libcryptsetup.so.0 |
163 | %{_mandir}/man8/cryptsetup.8* | |
00a57b4e | 164 | |
165 | %files devel | |
166 | %defattr(644,root,root,755) | |
167 | %attr(755,root,root) %{_libdir}/libcryptsetup.so | |
168 | %{_libdir}/libcryptsetup.la | |
ab903cbb | 169 | %{_includedir}/libcryptsetup.h |
00a57b4e | 170 | |
24fff120 | 171 | %files static |
172 | %defattr(644,root,root,755) | |
173 | %{_libdir}/libcryptsetup.a | |
44e18714 ER |
174 | |
175 | %if %{with initrd} | |
176 | %files initrd | |
177 | %defattr(644,root,root,755) | |
178 | %attr(755,root,root) %{_sbindir}/cryptsetup-initrd | |
179 | %endif |