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