]>
Commit | Line | Data |
---|---|---|
ee8aac86 JB |
1 | # |
2 | # Conditional build: | |
ba33c1f8 | 3 | %bcond_with gui # GTK+ GUI components (non-existing as of 111) |
105bfdf9 | 4 | %bcond_without static_libs # static library |
ee8aac86 | 5 | # |
020418a4 | 6 | Summary: The eCryptfs mount helper and support libraries |
648833c8 | 7 | Summary(pl.UTF-8): Narzędzie pomocnicze i biblioteki do montowania eCryptfs |
020418a4 | 8 | Name: ecryptfs-utils |
ba33c1f8 | 9 | Version: 111 |
0e77a5b7 | 10 | Release: 4 |
648833c8 | 11 | License: GPL v2+ |
020418a4 | 12 | Group: Base |
ee8aac86 JB |
13 | #Source0Download: https://launchpad.net/ecryptfs/+download |
14 | Source0: https://launchpad.net/ecryptfs/trunk/%{version}/+download/%{name}_%{version}.orig.tar.gz | |
ba33c1f8 | 15 | # Source0-md5: 83513228984f671930752c3518cac6fd |
f4eb7533 | 16 | Patch0: %{name}-sh.patch |
bc1c8867 AM |
17 | Patch1: %{name}-83-fixsalt.patch |
18 | Patch2: %{name}-83-splitnss.patch | |
ee8aac86 | 19 | Patch3: %{name}-84-fixsigness.patch |
286f246b | 20 | Patch4: openssl.patch |
ee8aac86 | 21 | URL: http://ecryptfs.org/ |
f4eb7533 JB |
22 | BuildRequires: autoconf >= 2.59 |
23 | BuildRequires: automake | |
27abda19 | 24 | BuildRequires: gettext-tools |
ee8aac86 | 25 | BuildRequires: glib2-devel >= 2.0 |
020418a4 | 26 | BuildRequires: gpgme-devel |
ee8aac86 | 27 | %{?with_gui:BuildRequires: gtk+2-devel >= 2.0} |
fa31bca6 | 28 | BuildRequires: intltool >= 0.41.0 |
648833c8 | 29 | BuildRequires: keyutils-devel >= 1.0 |
f4eb7533 | 30 | BuildRequires: libtool |
7ea30a1a | 31 | BuildRequires: nss-devel >= 3 |
68287c3e | 32 | BuildRequires: openssl-devel >= 0.9.7 |
020418a4 | 33 | BuildRequires: pam-devel |
648833c8 | 34 | BuildRequires: perl-tools-pod |
8ecb7617 | 35 | BuildRequires: pkcs11-helper-devel >= 1.04 |
68287c3e | 36 | BuildRequires: pkgconfig |
7ea30a1a | 37 | BuildRequires: python-devel >= 1:2.5 |
506bfdc8 | 38 | BuildRequires: python-modules >= 1:2.5 |
eb9a764a | 39 | BuildRequires: rpm-pythonprov |
7ea30a1a JB |
40 | BuildRequires: rpmbuild(macros) >= 1.219 |
41 | BuildRequires: swig >= 1.3.31 | |
ee8aac86 | 42 | BuildRequires: swig-python >= 1.3.31 |
86085d49 | 43 | BuildRequires: trousers-devel |
f3d24465 | 44 | Requires: uname(release) >= 2.6.19 |
020418a4 AM |
45 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
46 | ||
c5fb99ba AM |
47 | # python module |
48 | %define skip_post_check_so _libecryptfs.so.0.0.0 | |
49 | ||
020418a4 AM |
50 | %description |
51 | eCryptfs is a stacked cryptographic filesystem that ships in Linux | |
52 | kernel versions 2.6.19 and above. This package provides the mount | |
53 | helper and supporting libraries to perform key management and mount | |
54 | functions. | |
55 | ||
56 | Install ecryptfs-utils if you would like to mount eCryptfs. | |
57 | ||
648833c8 JB |
58 | %description -l pl.UTF-8 |
59 | eCryptfs to stakowalny kryptograficzny system plików dostępny w jądrze | |
60 | Linuksa od wersji 2.6.19. Ten pakiet udostępnia narzędzie pomocnicze | |
61 | dla programu mount oraz wspierające je biblioteki wykonujące | |
62 | zarządzanie kluczami i funkcje związane z montowaniem. | |
63 | ||
64 | Pakiet ecryptfs-utils należy zainstalować, aby montować eCryptfs. | |
65 | ||
020418a4 AM |
66 | %package devel |
67 | Summary: The eCryptfs userspace development package | |
648833c8 JB |
68 | Summary(pl.UTF-8): Pakiet programistyczny przestrzeni użytkownika dla eCryptfs |
69 | Group: Development/Libraries | |
020418a4 | 70 | Requires: %{name} = %{version}-%{release} |
68287c3e | 71 | Requires: keyutils-devel >= 1.0 |
7ea30a1a | 72 | Requires: nss-devel >= 3 |
020418a4 AM |
73 | |
74 | %description devel | |
75 | Userspace development files for eCryptfs. | |
76 | ||
648833c8 JB |
77 | %description devel -l pl.UTF-8 |
78 | Pliki programistyczne przestrzeni użytkownika dla eCryptfs. | |
79 | ||
80 | %package static | |
81 | Summary: Static eCryptfs library | |
82 | Summary(pl.UTF-8): Statyczna biblioteka eCryptfs | |
83 | Group: Development/Libraries | |
84 | Requires: %{name}-devel = %{version}-%{release} | |
85 | ||
86 | %description static | |
87 | Static eCryptfs library. | |
88 | ||
89 | %description static -l pl.UTF-8 | |
90 | Statyczna biblioteka eCryptfs. | |
91 | ||
020418a4 | 92 | %package -n pam-pam_ecryptfs |
7ea30a1a JB |
93 | Summary: eCryptfs PAM module |
94 | Summary(pl.UTF-8): Moduł PAM eCryptfs | |
020418a4 AM |
95 | Group: Base |
96 | Requires: %{name} = %{version}-%{release} | |
97 | ||
98 | %description -n pam-pam_ecryptfs | |
7ea30a1a | 99 | eCryptfs PAM module. |
020418a4 AM |
100 | |
101 | %description -n pam-pam_ecryptfs -l pl.UTF-8 | |
7ea30a1a | 102 | Moduł PAM eCryptfs. |
020418a4 | 103 | |
7ea30a1a | 104 | %package -n python-ecryptfs |
c5fb99ba | 105 | Summary: Python bindings for the eCryptfs utils |
7ea30a1a JB |
106 | Summary(pl.UTF-8): Wiązania Pythona do narzędzi eCryptfs |
107 | Group: Libraries/Python | |
c5fb99ba | 108 | Requires: %{name} = %{version}-%{release} |
7ea30a1a JB |
109 | Obsoletes: ecryptfs-utils-python |
110 | ||
111 | %description -n python-ecryptfs | |
112 | This package contains a module that permits applications written in | |
113 | the Python programming language to use the interface supplied by the | |
114 | ecryptfs-utils library. | |
c5fb99ba | 115 | |
7ea30a1a JB |
116 | %description -n python-ecryptfs -l pl.UTF-8 |
117 | Ten pakiet zawiera moduł pozwalający aplikacjom napisanym w Pythonie | |
118 | na korzystanie z interfejsu dostarczanego przez bibliotekę | |
119 | ecryptfs-utils. | |
c5fb99ba | 120 | |
020418a4 AM |
121 | %prep |
122 | %setup -q | |
f4eb7533 | 123 | %patch0 -p1 |
bc1c8867 AM |
124 | %patch1 -p1 |
125 | %patch2 -p1 | |
126 | %patch3 -p1 | |
286f246b | 127 | %patch4 -p1 |
020418a4 AM |
128 | |
129 | %build | |
f4eb7533 | 130 | %{__libtoolize} |
f891a956 | 131 | %{__aclocal} -I m4 |
f4eb7533 JB |
132 | %{__autoconf} |
133 | %{__autoheader} | |
134 | %{__automake} | |
020418a4 | 135 | %configure \ |
a6ab4d5e | 136 | --enable-gpg \ |
ee8aac86 | 137 | %{?with_gui:--enable-gui} \ |
ae7fc6eb | 138 | --enable-nss \ |
8ecb7617 | 139 | --enable-openssl \ |
a6ab4d5e | 140 | --enable-pam \ |
8ecb7617 | 141 | --enable-pkcs11-helper \ |
cf940cc5 | 142 | --enable-tspi \ |
105bfdf9 | 143 | %{?with_static_libs:--enable-static} |
020418a4 AM |
144 | |
145 | %{__make} | |
146 | ||
147 | %install | |
148 | rm -rf $RPM_BUILD_ROOT | |
149 | ||
150 | %{__make} -j1 install \ | |
151 | DESTDIR=$RPM_BUILD_ROOT | |
152 | ||
105bfdf9 JB |
153 | # obsoleted by pkg-config |
154 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libecryptfs.la | |
155 | ||
156 | %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/%{name}/_libecryptfs.la \ | |
157 | %{?with_static_libs:$RPM_BUILD_ROOT%{py_sitedir}/%{name}/_libecryptfs.a} | |
7ea30a1a JB |
158 | %py_postclean |
159 | ||
c5fb99ba AM |
160 | %find_lang %{name} |
161 | ||
020418a4 AM |
162 | %clean |
163 | rm -rf $RPM_BUILD_ROOT | |
164 | ||
3d03ec64 AM |
165 | %pre |
166 | %groupadd -g 260 ecryptfs | |
167 | ||
168 | %postun | |
42434661 | 169 | /sbin/ldconfig |
3d03ec64 AM |
170 | if [ "$1" = "0" ]; then |
171 | %groupremove ecryptfs | |
172 | fi | |
173 | ||
648833c8 | 174 | %post -p /sbin/ldconfig |
648833c8 | 175 | |
c5fb99ba | 176 | %files -f %{name}.lang |
020418a4 | 177 | %defattr(644,root,root,755) |
7ea30a1a | 178 | %doc AUTHORS ChangeLog NEWS README THANKS doc/{ecryptfs-faq.html,ecryptfs-pkcs11-helper-doc.txt} |
020418a4 | 179 | %attr(755,root,root) /sbin/mount.ecryptfs |
8620bf01 | 180 | %attr(4754,root,ecryptfs) /sbin/mount.ecryptfs_private |
d8d8a2cb | 181 | %attr(755,root,root) /sbin/umount.ecryptfs_private |
1a853d98 | 182 | %attr(755,root,root) /sbin/umount.ecryptfs |
648833c8 JB |
183 | %attr(755,root,root) %{_bindir}/ecryptfs-* |
184 | %attr(755,root,root) %{_bindir}/ecryptfsd | |
185 | %attr(755,root,root) %{_libdir}/libecryptfs.so.*.*.* | |
ee8aac86 | 186 | %attr(755,root,root) %ghost %{_libdir}/libecryptfs.so.1 |
648833c8 | 187 | %dir %{_libdir}/ecryptfs |
4aaab0b8 | 188 | %attr(755,root,root) %{_libdir}/ecryptfs/libecryptfs_key_mod_gpg.so |
86085d49 JB |
189 | %attr(755,root,root) %{_libdir}/ecryptfs/libecryptfs_key_mod_openssl.so |
190 | %attr(755,root,root) %{_libdir}/ecryptfs/libecryptfs_key_mod_passphrase.so | |
8ecb7617 | 191 | %attr(755,root,root) %{_libdir}/ecryptfs/libecryptfs_key_mod_pkcs11_helper.so |
86085d49 | 192 | %attr(755,root,root) %{_libdir}/ecryptfs/libecryptfs_key_mod_tspi.so |
c5fb99ba | 193 | %{_datadir}/%{name} |
2ec150f5 JB |
194 | %{_mandir}/man1/ecryptfs-*.1* |
195 | %{_mandir}/man1/mount.ecryptfs_private.1* | |
196 | %{_mandir}/man1/umount.ecryptfs_private.1* | |
020418a4 | 197 | %{_mandir}/man7/ecryptfs.7* |
648833c8 JB |
198 | %{_mandir}/man8/ecryptfs-*.8* |
199 | %{_mandir}/man8/ecryptfsd.8* | |
200 | %{_mandir}/man8/mount.ecryptfs.8* | |
1a853d98 | 201 | %{_mandir}/man8/umount.ecryptfs.8* |
020418a4 AM |
202 | |
203 | %files devel | |
204 | %defattr(644,root,root,755) | |
020418a4 AM |
205 | %attr(755,root,root) %{_libdir}/libecryptfs.so |
206 | %{_includedir}/ecryptfs.h | |
68287c3e | 207 | %{_pkgconfigdir}/libecryptfs.pc |
020418a4 | 208 | |
105bfdf9 | 209 | %if %{with static_libs} |
4aaab0b8 AM |
210 | %files static |
211 | %defattr(644,root,root,755) | |
212 | %{_libdir}/libecryptfs.a | |
105bfdf9 | 213 | %endif |
648833c8 | 214 | |
020418a4 AM |
215 | %files -n pam-pam_ecryptfs |
216 | %defattr(644,root,root,755) | |
217 | %attr(755,root,root) /%{_lib}/security/pam_ecryptfs.so | |
2ec150f5 | 218 | %{_mandir}/man8/pam_ecryptfs.8* |
c5fb99ba | 219 | |
7ea30a1a | 220 | %files -n python-ecryptfs |
c5fb99ba | 221 | %defattr(644,root,root,755) |
7ea30a1a | 222 | %dir %{py_sitedir}/%{name} |
c5fb99ba AM |
223 | %attr(755,root,root) %{py_sitedir}/%{name}/_libecryptfs.so* |
224 | %dir %{py_sitescriptdir}/%{name} | |
225 | %{py_sitescriptdir}/%{name}/*.py[co] |