]> git.pld-linux.org Git - packages/cryptsetup-luks.git/blob - cryptsetup-luks.spec
- typo
[packages/cryptsetup-luks.git] / cryptsetup-luks.spec
1 #
2 # todo:
3 # - static library
4 #
5 Summary:        LUKS for dm-crypt implemented in cryptsetup
6 Name:           cryptsetup-luks
7 Version:        1.0
8 Release:        0.2
9 License:        GPL
10 Group:          Base
11 Source0:        http://luks.endorphin.org/source/%{name}-%{version}.tar.bz2
12 # Source0-md5:  62c4bff081e470fb2c9a0f2cb890e613
13 URL:            http://luks.endorphin.org/about
14 BuildRequires:  device-mapper-devel
15 BuildRequires:  libgcrypt-devel >= 1.1.42
16 BuildRequires:  libuuid-devel
17 BuildRequires:  popt-devel
18 Obsoletes:      cryptsetup
19 Provides:       cryptsetup
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %define         _sbindir        /sbin
23
24 %description
25 LUKS is the upcoming standard for Linux hard disk encryption. By providing
26 a standard on-disk-format, it does not only facilitate compatibility among
27 distributions, but also provide secure management of multiple user
28 passwords. In contrast to existing solution, LUKS stores all setup
29 necessary setup information in the partition header, enabling the user to
30 transport or migrate his data seamlessly.
31
32 This package contains implementation of LUKS for dm-crypt implemented in
33 cryptsetup.
34
35 %package devel
36 Summary:        Header files for cryptsetup library
37 Summary(pl):    Pliki nag³ówkowe biblioteki cryptsetup
38 Group:          Development/Libraries
39 Requires:       %{name} = %{version}-%{release}
40 Requires:       device-mapper-devel
41 Requires:       libgcrypt-devel >= 1.1.42
42 Obsoletes:      cryptsetup-devel
43 Provides:       cryptsetup-devel
44
45 %description devel
46 Header files for cryptsetup library.
47
48 %description devel -l pl
49 Pliki nag³ówkowe biblioteki cryptsetup.
50
51 %package static
52 Summary:        Static cryptsetup library
53 Summary(pl):    Statyczna biblioteka cryptsetup
54 Group:          Development/Libraries
55 Requires:       %{name}-devel = %{version}-%{release}
56
57 %description static
58 Static version of cryptsetup library.
59
60 %description static -l pl
61 Statyczna wersja biblioteki cryptsetup.
62
63 %prep
64 %setup -q
65
66 %build
67 %configure
68 #       --enable-static
69 %{__make}
70
71 %install
72 rm -rf $RPM_BUILD_ROOT
73
74 %{__make} install \
75         DESTDIR=$RPM_BUILD_ROOT
76
77 install -d $RPM_BUILD_ROOT/%{_lib}
78 mv -f $RPM_BUILD_ROOT%{_libdir}/libcryptsetup.so.*.*.* $RPM_BUILD_ROOT/%{_lib}
79 ln -sf /%{_lib}/$(cd $RPM_BUILD_ROOT/%{_lib}; echo libcryptsetup.so.*.*.*) \
80         $RPM_BUILD_ROOT%{_libdir}/libcryptsetup.so
81
82 %find_lang %{name}
83
84 %clean
85 rm -rf $RPM_BUILD_ROOT
86
87 %post   -p /sbin/ldconfig
88 %postun -p /sbin/ldconfig
89
90 %files -f %{name}.lang
91 %defattr(644,root,root,755)
92 %doc ChangeLog
93 %attr(755,root,root) %{_sbindir}/cryptsetup
94 %attr(755,root,root) /%{_lib}/libcryptsetup.so.*.*.*
95 %{_mandir}/man8/*
96
97 %files devel
98 %defattr(644,root,root,755)
99 %attr(755,root,root) %{_libdir}/libcryptsetup.so
100 %{_libdir}/libcryptsetup.la
101 %{_includedir}/*.h
102
103 %files static
104 %defattr(644,root,root,755)
105 #%{_libdir}/libcryptsetup.a
This page took 0.136129 seconds and 3 git commands to generate.