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