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