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