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