]> git.pld-linux.org Git - packages/cryptsetup.git/blame - cryptsetup.spec
- up to 1.0.5
[packages/cryptsetup.git] / cryptsetup.spec
CommitLineData
5eb10616
JB
1#
2# Conditonal build:
3%bcond_with static # link cryptsetup statically
4#
a9d5852e 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
a9d5852e 9Version: 1.0.5
516a2b2d 10Release: 1
6351d6a5 11License: GPL
12Group: Base
a9d5852e
13Source0: http://luks.endorphin.org/source/%{_realname}-%{version}.tar.bz2
14# Source0-md5: 0aa2f94c39123f1a0352983e5366179c
5eb10616 15Patch1: %{name}-nostatic.patch
6351d6a5 16URL: http://luks.endorphin.org/about
5fe93676
JB
17BuildRequires: autoconf
18BuildRequires: automake
0b90291e 19BuildRequires: device-mapper-devel
5fe93676 20BuildRequires: gettext-devel
0b90291e
JB
21BuildRequires: libgcrypt-devel >= 1.1.42
22BuildRequires: libselinux-devel
23BuildRequires: libsepol-devel
24BuildRequires: libuuid-devel
25BuildRequires: popt-devel
e8d84c7d 26BuildRequires: libtool
5eb10616
JB
27%if %{with static}
28BuildRequires: device-mapper-static >= 1.02.07
a6fd3218 29BuildRequires: libgcrypt-static >= 1.1.42
30BuildRequires: libgpg-error-static
31BuildRequires: libselinux-static
8d9e50de 32BuildRequires: libsepol-static
a6fd3218 33BuildRequires: libuuid-static
34BuildRequires: popt-static
5eb10616 35%endif
12cca230 36Obsoletes: cryptsetup
6351d6a5 37BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38
39%define _sbindir /sbin
8bf4e8eb 40%define _noautoreqdep libcryptsetup.so.0
6351d6a5 41
42%description
6e98e6fb 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.
6351d6a5 49
6e98e6fb 50This package contains implementation of LUKS for dm-crypt implemented
51in cryptsetup.
6351d6a5 52
77f30028
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.
12cca230 61
77f30028 62Ten pakiet zawiera implementację LUKS dla dm-crytpa zaimplementowaną w
12cca230
JB
63cryptsetup.
64
6351d6a5 65%package devel
66Summary: Header files for cryptsetup library
29f5822a 67Summary(pl.UTF-8): Pliki nagłówkowe biblioteki cryptsetup
6351d6a5 68Group: Development/Libraries
69Requires: %{name} = %{version}-%{release}
70Requires: device-mapper-devel
71Requires: libgcrypt-devel >= 1.1.42
12cca230 72Obsoletes: cryptsetup-devel
6351d6a5 73
74%description devel
75Header files for cryptsetup library.
76
77f30028
JR
77%description devel -l pl.UTF-8
78Pliki nagłówkowe biblioteki cryptsetup.
6351d6a5 79
80%package static
81Summary: Static cryptsetup library
29f5822a 82Summary(pl.UTF-8): Statyczna biblioteka cryptsetup
6351d6a5 83Group: Development/Libraries
84Requires: %{name}-devel = %{version}-%{release}
fca9458b 85Obsoletes: cryptsetup-static
6351d6a5 86
87%description static
88Static version of cryptsetup library.
89
77f30028 90%description static -l pl.UTF-8
6351d6a5 91Statyczna wersja biblioteki cryptsetup.
92
93%prep
a9d5852e 94%setup -q -n %{_realname}-%{version}
5eb10616 95%patch1 -p1
6351d6a5 96
97%build
8d9e50de 98%{__gettextize}
5fe93676 99%{__autoheader}
8d9e50de 100%{__aclocal} -I m4
101%{__autoconf}
102%{__automake}
a6fd3218 103%configure \
5eb10616
JB
104 --enable-static \
105 %{?with_static:--enable-static-cryptsetup}
6351d6a5 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
a9d5852e 119%find_lang %{_realname}
6351d6a5 120
121%clean
122rm -rf $RPM_BUILD_ROOT
123
124%post -p /sbin/ldconfig
125%postun -p /sbin/ldconfig
126
a9d5852e 127%files -f %{_realname}.lang
6351d6a5 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
a6fd3218 140%files static
141%defattr(644,root,root,755)
142%{_libdir}/libcryptsetup.a
This page took 0.118454 seconds and 4 git commands to generate.