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