]> git.pld-linux.org Git - packages/cryptsetup-luks.git/blob - cryptsetup-luks.spec
- added provides cryptsetup = ver for easy cryptsetup replacement
[packages/cryptsetup-luks.git] / cryptsetup-luks.spec
1 Summary:        LUKS for dm-crypt implemented in cryptsetup
2 Summary(pl):    LUKS dla dm-crypta zaimplementowany w cryptsetup
3 Name:           cryptsetup-luks
4 Version:        1.0.1
5 Release:        1
6 License:        GPL
7 Group:          Base
8 Source0:        http://luks.endorphin.org/source/%{name}-%{version}.tar.bz2
9 # Source0-md5:  b2415f67ceed3ad2c7dd2e878cf7787d
10 Patch0:         %{name}-sepol.patch
11 URL:            http://luks.endorphin.org/about
12 BuildRequires:  device-mapper-static
13 BuildRequires:  libgcrypt-static >= 1.1.42
14 BuildRequires:  libgpg-error-static
15 BuildRequires:  libselinux-static
16 BuildRequires:  libsepol-static
17 BuildRequires:  libuuid-static
18 BuildRequires:  popt-static
19 Provides:       cryptsetup = 0.2-1.pre1.8
20 Obsoletes:      cryptsetup
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %define         _sbindir        /sbin
24
25 %description
26 LUKS is the upcoming standard for Linux hard disk encryption. By
27 providing a standard on-disk-format, it does not only facilitate
28 compatibility among distributions, but also provide secure management
29 of multiple user passwords. In contrast to existing solution, LUKS
30 stores all setup necessary setup information in the partition header,
31 enabling the user to transport or migrate his data seamlessly.
32
33 This package contains implementation of LUKS for dm-crypt implemented
34 in cryptsetup.
35
36 %description -l pl
37 LUKS to nadchodz±cy standard linuksowego szyfrowania twardego dysku.
38 Dostarczaj±c standardowy format danych na dysku nie tylko u³atwia
39 utrzymanie kompatybilno¶ci miêdzy dystrybucjami, ale tak¿e dostarcza
40 bezpieczne zarz±dzanie wieloma has³ami u¿ytkowników. W przeciwieñstwie
41 do istniej±cego rozwi±zania LUKS przechowuje wszystkie potrzebne
42 informacje o konfiguracji w nag³ówku partycji, pozwalaj±c
43 u¿ytkownikowi przenosiæ lub migrowaæ dane w sposób przezroczysty.
44
45 Ten pakiet zawiera implementacjê LUKS dla dm-crytpa zaimplementowan± w
46 cryptsetup.
47
48 %package devel
49 Summary:        Header files for cryptsetup library
50 Summary(pl):    Pliki nag³ówkowe biblioteki cryptsetup
51 Group:          Development/Libraries
52 Requires:       %{name} = %{version}-%{release}
53 Requires:       device-mapper-devel
54 Requires:       libgcrypt-devel >= 1.1.42
55 Provides:       cryptsetup-devel
56 Obsoletes:      cryptsetup-devel
57
58 %description devel
59 Header files for cryptsetup library.
60
61 %description devel -l pl
62 Pliki nag³ówkowe biblioteki cryptsetup.
63
64 %package static
65 Summary:        Static cryptsetup library
66 Summary(pl):    Statyczna biblioteka cryptsetup
67 Group:          Development/Libraries
68 Requires:       %{name}-devel = %{version}-%{release}
69 Provides:       cryptsetup-static
70 Obsoletes:      cryptsetup-static
71
72 %description static
73 Static version of cryptsetup library.
74
75 %description static -l pl
76 Statyczna wersja biblioteki cryptsetup.
77
78 %prep
79 %setup -q
80 %patch0 -p1
81
82 %build
83 %{__autoheader}
84 %{__gettextize}
85 %{__aclocal} -I m4
86 %{__autoconf}
87 %{__automake}
88 %configure \
89         --enable-static
90 %{__make}
91
92 %install
93 rm -rf $RPM_BUILD_ROOT
94
95 %{__make} install \
96         DESTDIR=$RPM_BUILD_ROOT
97
98 install -d $RPM_BUILD_ROOT/%{_lib}
99 mv -f $RPM_BUILD_ROOT%{_libdir}/libcryptsetup.so.*.*.* $RPM_BUILD_ROOT/%{_lib}
100 ln -sf /%{_lib}/$(cd $RPM_BUILD_ROOT/%{_lib}; echo libcryptsetup.so.*.*.*) \
101         $RPM_BUILD_ROOT%{_libdir}/libcryptsetup.so
102
103 %find_lang %{name}
104
105 %clean
106 rm -rf $RPM_BUILD_ROOT
107
108 %post   -p /sbin/ldconfig
109 %postun -p /sbin/ldconfig
110
111 %files -f %{name}.lang
112 %defattr(644,root,root,755)
113 %doc ChangeLog
114 %attr(755,root,root) %{_sbindir}/cryptsetup
115 %attr(755,root,root) /%{_lib}/libcryptsetup.so.*.*.*
116 %{_mandir}/man8/*
117
118 %files devel
119 %defattr(644,root,root,755)
120 %attr(755,root,root) %{_libdir}/libcryptsetup.so
121 %{_libdir}/libcryptsetup.la
122 %{_includedir}/*.h
123
124 %files static
125 %defattr(644,root,root,755)
126 %{_libdir}/libcryptsetup.a
This page took 0.074222 seconds and 4 git commands to generate.