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