]>
Commit | Line | Data |
---|---|---|
c769990d JB |
1 | # |
2 | # Conditonal build: | |
3 | %bcond_with static # link cryptsetup statically | |
4 | # | |
c25a01c4 | 5 | Summary: LUKS for dm-crypt implemented in cryptsetup |
f00185e9 | 6 | Summary(pl.UTF-8): LUKS dla dm-crypta zaimplementowany w cryptsetup |
00a57b4e | 7 | Name: cryptsetup-luks |
fd68bbdc | 8 | Version: 1.0.4 |
bc4e8022 | 9 | Release: 1 |
00a57b4e | 10 | License: GPL |
11 | Group: Base | |
12 | Source0: http://luks.endorphin.org/source/%{name}-%{version}.tar.bz2 | |
fd68bbdc | 13 | # Source0-md5: 156ae6b618438ee9feeddc6c2bdc4e94 |
c769990d | 14 | Patch1: %{name}-nostatic.patch |
00a57b4e | 15 | URL: http://luks.endorphin.org/about |
6707f1d7 JB |
16 | BuildRequires: autoconf |
17 | BuildRequires: automake | |
e6ecff5e | 18 | BuildRequires: device-mapper-devel |
6707f1d7 | 19 | BuildRequires: gettext-devel |
e6ecff5e JB |
20 | BuildRequires: libgcrypt-devel >= 1.1.42 |
21 | BuildRequires: libselinux-devel | |
22 | BuildRequires: libsepol-devel | |
23 | BuildRequires: libuuid-devel | |
24 | BuildRequires: popt-devel | |
fd68bbdc | 25 | BuildRequires: libtool |
c769990d JB |
26 | %if %{with static} |
27 | BuildRequires: device-mapper-static >= 1.02.07 | |
24fff120 | 28 | BuildRequires: libgcrypt-static >= 1.1.42 |
29 | BuildRequires: libgpg-error-static | |
30 | BuildRequires: libselinux-static | |
4ad6edfa | 31 | BuildRequires: libsepol-static |
24fff120 | 32 | BuildRequires: libuuid-static |
33 | BuildRequires: popt-static | |
c769990d | 34 | %endif |
689fc456 | 35 | Provides: cryptsetup = 0.2-1.pre1.8 |
b08008aa | 36 | Obsoletes: cryptsetup |
00a57b4e | 37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
38 | ||
39 | %define _sbindir /sbin | |
40 | ||
41 | %description | |
d23e9766 | 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. | |
00a57b4e | 48 | |
d23e9766 | 49 | This package contains implementation of LUKS for dm-crypt implemented |
50 | in cryptsetup. | |
00a57b4e | 51 | |
8a316dbb JR |
52 | %description -l pl.UTF-8 |
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. | |
b08008aa | 60 | |
8a316dbb | 61 | Ten pakiet zawiera implementację LUKS dla dm-crytpa zaimplementowaną w |
b08008aa JB |
62 | cryptsetup. |
63 | ||
00a57b4e | 64 | %package devel |
65 | Summary: Header files for cryptsetup library | |
f00185e9 | 66 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki cryptsetup |
00a57b4e | 67 | Group: Development/Libraries |
68 | Requires: %{name} = %{version}-%{release} | |
69 | Requires: device-mapper-devel | |
70 | Requires: libgcrypt-devel >= 1.1.42 | |
00a57b4e | 71 | Provides: cryptsetup-devel |
b08008aa | 72 | Obsoletes: cryptsetup-devel |
00a57b4e | 73 | |
74 | %description devel | |
75 | Header files for cryptsetup library. | |
76 | ||
8a316dbb JR |
77 | %description devel -l pl.UTF-8 |
78 | Pliki nagłówkowe biblioteki cryptsetup. | |
00a57b4e | 79 | |
80 | %package static | |
81 | Summary: Static cryptsetup library | |
f00185e9 | 82 | Summary(pl.UTF-8): Statyczna biblioteka cryptsetup |
00a57b4e | 83 | Group: Development/Libraries |
84 | Requires: %{name}-devel = %{version}-%{release} | |
689fc456 | 85 | Provides: cryptsetup-static |
86 | Obsoletes: cryptsetup-static | |
00a57b4e | 87 | |
88 | %description static | |
89 | Static version of cryptsetup library. | |
90 | ||
8a316dbb | 91 | %description static -l pl.UTF-8 |
00a57b4e | 92 | Statyczna wersja biblioteki cryptsetup. |
93 | ||
94 | %prep | |
95 | %setup -q | |
c769990d | 96 | %patch1 -p1 |
00a57b4e | 97 | |
98 | %build | |
4ad6edfa | 99 | %{__gettextize} |
6707f1d7 | 100 | %{__autoheader} |
4ad6edfa | 101 | %{__aclocal} -I m4 |
102 | %{__autoconf} | |
103 | %{__automake} | |
24fff120 | 104 | %configure \ |
c769990d JB |
105 | --enable-static \ |
106 | %{?with_static:--enable-static-cryptsetup} | |
00a57b4e | 107 | %{__make} |
108 | ||
109 | %install | |
110 | rm -rf $RPM_BUILD_ROOT | |
111 | ||
112 | %{__make} install \ | |
113 | DESTDIR=$RPM_BUILD_ROOT | |
114 | ||
115 | install -d $RPM_BUILD_ROOT/%{_lib} | |
116 | mv -f $RPM_BUILD_ROOT%{_libdir}/libcryptsetup.so.*.*.* $RPM_BUILD_ROOT/%{_lib} | |
117 | ln -sf /%{_lib}/$(cd $RPM_BUILD_ROOT/%{_lib}; echo libcryptsetup.so.*.*.*) \ | |
118 | $RPM_BUILD_ROOT%{_libdir}/libcryptsetup.so | |
119 | ||
120 | %find_lang %{name} | |
121 | ||
122 | %clean | |
123 | rm -rf $RPM_BUILD_ROOT | |
124 | ||
125 | %post -p /sbin/ldconfig | |
126 | %postun -p /sbin/ldconfig | |
127 | ||
128 | %files -f %{name}.lang | |
129 | %defattr(644,root,root,755) | |
130 | %doc ChangeLog | |
131 | %attr(755,root,root) %{_sbindir}/cryptsetup | |
132 | %attr(755,root,root) /%{_lib}/libcryptsetup.so.*.*.* | |
133 | %{_mandir}/man8/* | |
134 | ||
135 | %files devel | |
136 | %defattr(644,root,root,755) | |
137 | %attr(755,root,root) %{_libdir}/libcryptsetup.so | |
138 | %{_libdir}/libcryptsetup.la | |
139 | %{_includedir}/*.h | |
140 | ||
24fff120 | 141 | %files static |
142 | %defattr(644,root,root,755) | |
143 | %{_libdir}/libcryptsetup.a |