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