]>
Commit | Line | Data |
---|---|---|
5eb10616 JB |
1 | # |
2 | # Conditonal build: | |
3 | %bcond_with static # link cryptsetup statically | |
4 | # | |
a9d5852e | 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 |
a9d5852e | 9 | Version: 1.0.5 |
d172f920 | 10 | Release: 2 |
6351d6a5 | 11 | License: GPL |
12 | Group: Base | |
a9d5852e MŁ |
13 | Source0: http://luks.endorphin.org/source/%{_realname}-%{version}.tar.bz2 |
14 | # Source0-md5: 0aa2f94c39123f1a0352983e5366179c | |
5eb10616 | 15 | Patch1: %{name}-nostatic.patch |
5616104c | 16 | URL: http://luks.endorphin.org/ |
5fe93676 JB |
17 | BuildRequires: autoconf |
18 | BuildRequires: automake | |
0b90291e | 19 | BuildRequires: device-mapper-devel |
5fe93676 | 20 | BuildRequires: gettext-devel |
0b90291e JB |
21 | BuildRequires: libgcrypt-devel >= 1.1.42 |
22 | BuildRequires: libselinux-devel | |
23 | BuildRequires: libsepol-devel | |
d172f920 | 24 | BuildRequires: libtool |
0b90291e JB |
25 | BuildRequires: libuuid-devel |
26 | BuildRequires: popt-devel | |
5eb10616 JB |
27 | %if %{with static} |
28 | BuildRequires: device-mapper-static >= 1.02.07 | |
a6fd3218 | 29 | BuildRequires: libgcrypt-static >= 1.1.42 |
30 | BuildRequires: libgpg-error-static | |
31 | BuildRequires: libselinux-static | |
8d9e50de | 32 | BuildRequires: libsepol-static |
a6fd3218 | 33 | BuildRequires: libuuid-static |
34 | BuildRequires: popt-static | |
5eb10616 | 35 | %endif |
d172f920 | 36 | Provides: cryptsetup = 1.0.5 |
12cca230 | 37 | Obsoletes: cryptsetup |
6351d6a5 | 38 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
39 | ||
40 | %define _sbindir /sbin | |
8bf4e8eb | 41 | %define _noautoreqdep libcryptsetup.so.0 |
6351d6a5 | 42 | |
43 | %description | |
6e98e6fb | 44 | LUKS is the upcoming standard for Linux hard disk encryption. By |
45 | providing a standard on-disk-format, it does not only facilitate | |
46 | compatibility among distributions, but also provide secure management | |
47 | of multiple user passwords. In contrast to existing solution, LUKS | |
48 | stores all setup necessary setup information in the partition header, | |
49 | enabling the user to transport or migrate his data seamlessly. | |
6351d6a5 | 50 | |
6e98e6fb | 51 | This package contains implementation of LUKS for dm-crypt implemented |
52 | in cryptsetup. | |
6351d6a5 | 53 | |
77f30028 JR |
54 | %description -l pl.UTF-8 |
55 | LUKS to nadchodzący standard linuksowego szyfrowania twardego dysku. | |
56 | Dostarczając standardowy format danych na dysku nie tylko ułatwia | |
57 | utrzymanie kompatybilności między dystrybucjami, ale także dostarcza | |
58 | bezpieczne zarządzanie wieloma hasłami użytkowników. W przeciwieństwie | |
59 | do istniejącego rozwiązania LUKS przechowuje wszystkie potrzebne | |
60 | informacje o konfiguracji w nagłówku partycji, pozwalając | |
61 | użytkownikowi przenosić lub migrować dane w sposób przezroczysty. | |
12cca230 | 62 | |
77f30028 | 63 | Ten pakiet zawiera implementację LUKS dla dm-crytpa zaimplementowaną w |
12cca230 JB |
64 | cryptsetup. |
65 | ||
6351d6a5 | 66 | %package devel |
67 | Summary: Header files for cryptsetup library | |
29f5822a | 68 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki cryptsetup |
6351d6a5 | 69 | Group: Development/Libraries |
70 | Requires: %{name} = %{version}-%{release} | |
71 | Requires: device-mapper-devel | |
72 | Requires: libgcrypt-devel >= 1.1.42 | |
12cca230 | 73 | Obsoletes: cryptsetup-devel |
6351d6a5 | 74 | |
75 | %description devel | |
76 | Header files for cryptsetup library. | |
77 | ||
77f30028 JR |
78 | %description devel -l pl.UTF-8 |
79 | Pliki nagłówkowe biblioteki cryptsetup. | |
6351d6a5 | 80 | |
81 | %package static | |
82 | Summary: Static cryptsetup library | |
29f5822a | 83 | Summary(pl.UTF-8): Statyczna biblioteka cryptsetup |
6351d6a5 | 84 | Group: Development/Libraries |
85 | Requires: %{name}-devel = %{version}-%{release} | |
fca9458b | 86 | Obsoletes: cryptsetup-static |
6351d6a5 | 87 | |
88 | %description static | |
89 | Static version of cryptsetup library. | |
90 | ||
77f30028 | 91 | %description static -l pl.UTF-8 |
6351d6a5 | 92 | Statyczna wersja biblioteki cryptsetup. |
93 | ||
94 | %prep | |
a9d5852e | 95 | %setup -q -n %{_realname}-%{version} |
5eb10616 | 96 | %patch1 -p1 |
6351d6a5 | 97 | |
98 | %build | |
8d9e50de | 99 | %{__gettextize} |
5fe93676 | 100 | %{__autoheader} |
8d9e50de | 101 | %{__aclocal} -I m4 |
102 | %{__autoconf} | |
103 | %{__automake} | |
a6fd3218 | 104 | %configure \ |
5eb10616 JB |
105 | --enable-static \ |
106 | %{?with_static:--enable-static-cryptsetup} | |
6351d6a5 | 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 | ||
a9d5852e | 120 | %find_lang %{_realname} |
6351d6a5 | 121 | |
122 | %clean | |
123 | rm -rf $RPM_BUILD_ROOT | |
124 | ||
125 | %post -p /sbin/ldconfig | |
126 | %postun -p /sbin/ldconfig | |
127 | ||
a9d5852e | 128 | %files -f %{_realname}.lang |
6351d6a5 | 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 | ||
a6fd3218 | 141 | %files static |
142 | %defattr(644,root,root,755) | |
143 | %{_libdir}/libcryptsetup.a |