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