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