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