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