]> git.pld-linux.org Git - packages/volume_key.git/blob - volume_key.spec
Initial release (with upstream patches)
[packages/volume_key.git] / volume_key.spec
1 Summary:        An utility for manipulating storage encryption keys and passphrases
2 Name:           volume_key
3 Version:        0.3.9
4 Release:        1
5 License:        GPL v2
6 Group:          Applications/System
7 Source0:        https://releases.pagure.org/volume_key/%{name}-%{version}.tar.xz
8 # Source0-md5:  a2d14931177c660e1f3ebbcf5f47d8e2
9 Patch0:         %{name}-config.h.patch
10 Patch1:         %{name}-fips-crash.patch
11 URL:            https://pagure.io/volume_key/
12 BuildRequires:  autoconf >= 2.64
13 BuildRequires:  automake
14 BuildRequires:  cryptsetup-devel
15 BuildRequires:  gettext-tools >= 0.17
16 BuildRequires:  glib2-devel
17 BuildRequires:  gnupg
18 BuildRequires:  libblkid-devel
19 BuildRequires:  libtool
20 BuildRequires:  nss-devel
21 BuildRequires:  pkgconfig
22 BuildRequires:  xz
23 Requires:       %{name}-libs = %{version}-%{release}
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
27 This package provides a command-line tool for manipulating storage
28 volume encryption keys and storing them separately from volumes.
29
30 The main goal of the software is to allow restoring access to an
31 encrypted hard drive if the primary user forgets the passphrase. The
32 encryption key back up can also be useful for extracting data after a
33 hardware or software failure that corrupts the header of the encrypted
34 volume, or to access the company data after an employee leaves
35 abruptly.
36
37 %package libs
38 Summary:        A library for manipulating storage encryption keys and passphrases
39 Group:          Libraries
40
41 %description libs
42 This package provides libvolume_key, a library for manipulating
43 storage volume encryption keys and storing them separately from
44 volumes.
45
46 %package devel
47 Summary:        Header files for volume_key library
48 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki volume_key
49 Group:          Development/Libraries
50 Requires:       %{name}-libs = %{version}-%{release}
51
52 %description devel
53 Header files for volume_key library.
54
55 %description devel -l pl.UTF-8
56 Pliki nagłówkowe biblioteki volume_key.
57
58 %package -n python-%{name}
59 Summary:        Python bindings for volume_key library
60 Group:          Libraries
61 Requires:       %{name}-libs = %{version}-%{release}
62
63 %description -n python-%{name}
64 This package provides Python bindings for libvolume_key, a library for
65 manipulating storage volume encryption keys and storing them
66 separately from volumes.
67
68 %prep
69 %setup -q
70 %patch0 -p1
71 %patch1 -p1
72
73 %build
74 %{__libtoolize}
75 %{__aclocal} -I m4
76 %{__autoconf}
77 %{__autoheader}
78 %{__automake}
79 %configure
80 %{__make}
81
82 %install
83 rm -rf $RPM_BUILD_ROOT
84
85 %{__make} install \
86         DESTDIR=$RPM_BUILD_ROOT
87
88 %{__rm} -f $RPM_BUILD_ROOT%{py_sitedir}/*.la
89
90 %py_postclean
91
92 %find_lang %{name}
93
94 %clean
95 rm -rf $RPM_BUILD_ROOT
96
97 %post libs -p /sbin/ldconfig
98 %postun libs -p /sbin/ldconfig
99
100 %files -f %{name}.lang
101 %defattr(644,root,root,755)
102 %doc AUTHORS ChangeLog NEWS README
103 %attr(755,root,root) %{_bindir}/volume_key
104 %{_mandir}/man8/volume_key.8*
105
106 %files libs
107 %defattr(644,root,root,755)
108 %attr(755,root,root) %{_libdir}/libvolume_key.so.*.*.*
109 %attr(755,root,root) %ghost %{_libdir}/libvolume_key.so.1
110
111 %files devel
112 %defattr(644,root,root,755)
113 %attr(755,root,root) %{_libdir}/libvolume_key.so
114 %{_libdir}/libvolume_key.la
115 %{_includedir}/volume_key
116
117 %files -n python-%{name}
118 %defattr(644,root,root,755)
119 %attr(755,root,root) %{py_sitedir}/_volume_key.so
120 %{py_sitedir}/*.py[co]
This page took 0.0649 seconds and 3 git commands to generate.