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