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