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