summaryrefslogtreecommitdiff
path: root/packaging/ecryptfs-utils.spec
blob: dbcabcb7998a9461cb8cab9b008c6dce5d25fdc4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
Name:           ecryptfs-utils
Summary:        Userspace Utilities for ecryptfs
Version:        111
Release:        0
Group:          System/Libraries
License:        GPL-2.0+
Source:         %{name}_%{version}.orig.tar.gz
Source1:        %{name}.manifest
URL:            http://ecryptfs.org

Requires:       keyutils
Requires:       cryptsetup
Requires:       libecryptfs = %{version}-%{release}

BuildRequires:  intltool
BuildRequires:  python-devel
BuildRequires:  keyutils-devel
BuildRequires:  nss-devel
BuildRequires:  pam-devel
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  fdupes

%description
A stacked cryptographic filesystem for Linux.
eCryptfs user space utilities


%package -n libecryptfs
Summary:    ECryptfs library
Group:      System/Libraries

%description -n libecryptfs
eCryptfs runtime library.


%package -n libecryptfs-devel
Summary:    Devel files for libecryptfs
Group:      Development/Libraries
Requires:   libecryptfs = %{version}-%{release}
Requires:   keyutils-devel

%description -n libecryptfs-devel
Development files for eCryptfs library.


%package -n libecryptfs-python
Summary:    Python bindings for libecryptfs
Group:      Development/Libraries
Requires:   libecryptfs = %{version}-%{release}

%description -n libecryptfs-python
Python bindings for eCryptfs library.


%prep
%setup -q -n %{name}-%{version}
cp %{SOURCE1} .


%build
export CFLAGS+=" -fPIC"
export LDFLAGS+=" -pie"
%define nss_library_list %(pkg-config --libs nss | cut -d " " -f -4)
%reconfigure --disable-openssl NSS_LIBS="%{nss_library_list}"
%__make %{?_smp_mflags}


%install
rm -rf %{buildroot}
%make_install

%find_lang %{name}

%fdupes %{buildroot}


%post -n libecryptfs -p /sbin/ldconfig

%postun -n libecryptfs -p /sbin/ldconfig


%lang_package -f %{name}


%files
%manifest %{name}.manifest
%license COPYING
%doc AUTHORS NEWS
%{_bindir}/ecryptfs*
/sbin/mount.ecryptfs*
/sbin/umount.ecryptfs*
/%{_lib}/security/pam_ecryptfs.so
%{_mandir}/man1/*ecryptfs*
%{_mandir}/man7/*ecryptfs*
%{_mandir}/man8/*ecryptfs*
%{_datadir}/doc/%{name}/*
%{_datadir}/ecryptfs-utils/*


%files -n libecryptfs
%manifest %{name}.manifest
%license COPYING
%{_libdir}/libecryptfs.so.*
%{_libdir}/ecryptfs/*


%files -n libecryptfs-devel
%manifest %{name}.manifest
%license COPYING
%{_includedir}/ecryptfs.h
%{_libdir}/libecryptfs.so
%{_libdir}/pkgconfig/libecryptfs.pc


%files -n libecryptfs-python
%manifest %{name}.manifest
%license COPYING
%{python_sitelib}/ecryptfs-utils/*
%{python_sitearch}/ecryptfs-utils/*