]> 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:
3%bcond_with gui # GTK+ GUI components (non-existing as of 104)
4#
020418a4 5Summary: The eCryptfs mount helper and support libraries
648833c8 6Summary(pl.UTF-8): Narzędzie pomocnicze i biblioteki do montowania eCryptfs
020418a4 7Name: ecryptfs-utils
506bfdc8 8Version: 106
67c6e5ff 9Release: 2
648833c8 10License: GPL v2+
020418a4 11Group: Base
ee8aac86
JB
12#Source0Download: https://launchpad.net/ecryptfs/+download
13Source0: https://launchpad.net/ecryptfs/trunk/%{version}/+download/%{name}_%{version}.orig.tar.gz
506bfdc8 14# Source0-md5: bff8052636f6be642f15c6be45a14ea3
f4eb7533 15Patch0: %{name}-sh.patch
bc1c8867
AM
16Patch1: %{name}-83-fixsalt.patch
17Patch2: %{name}-83-splitnss.patch
ee8aac86
JB
18Patch3: %{name}-84-fixsigness.patch
19URL: http://ecryptfs.org/
f4eb7533
JB
20BuildRequires: autoconf >= 2.59
21BuildRequires: automake
27abda19 22BuildRequires: gettext-tools
ee8aac86 23BuildRequires: glib2-devel >= 2.0
020418a4 24BuildRequires: gpgme-devel
ee8aac86 25%{?with_gui:BuildRequires: gtk+2-devel >= 2.0}
fa31bca6 26BuildRequires: intltool >= 0.41.0
648833c8 27BuildRequires: keyutils-devel >= 1.0
f4eb7533 28BuildRequires: libtool
7ea30a1a 29BuildRequires: nss-devel >= 3
68287c3e 30BuildRequires: openssl-devel >= 0.9.7
020418a4 31BuildRequires: pam-devel
648833c8 32BuildRequires: perl-tools-pod
8ecb7617 33BuildRequires: pkcs11-helper-devel >= 1.04
68287c3e 34BuildRequires: pkgconfig
7ea30a1a 35BuildRequires: python-devel >= 1:2.5
506bfdc8 36BuildRequires: python-modules >= 1:2.5
eb9a764a 37BuildRequires: rpm-pythonprov
7ea30a1a
JB
38BuildRequires: rpmbuild(macros) >= 1.219
39BuildRequires: swig >= 1.3.31
ee8aac86 40BuildRequires: swig-python >= 1.3.31
86085d49 41BuildRequires: trousers-devel
f3d24465 42Requires: uname(release) >= 2.6.19
020418a4
AM
43BuildRoot: %{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
49eCryptfs is a stacked cryptographic filesystem that ships in Linux
50kernel versions 2.6.19 and above. This package provides the mount
51helper and supporting libraries to perform key management and mount
52functions.
53
54Install ecryptfs-utils if you would like to mount eCryptfs.
55
648833c8
JB
56%description -l pl.UTF-8
57eCryptfs to stakowalny kryptograficzny system plików dostępny w jądrze
58Linuksa od wersji 2.6.19. Ten pakiet udostępnia narzędzie pomocnicze
59dla programu mount oraz wspierające je biblioteki wykonujące
60zarządzanie kluczami i funkcje związane z montowaniem.
61
62Pakiet ecryptfs-utils należy zainstalować, aby montować eCryptfs.
63
020418a4
AM
64%package devel
65Summary: The eCryptfs userspace development package
648833c8
JB
66Summary(pl.UTF-8): Pakiet programistyczny przestrzeni użytkownika dla eCryptfs
67Group: Development/Libraries
020418a4 68Requires: %{name} = %{version}-%{release}
68287c3e 69Requires: keyutils-devel >= 1.0
7ea30a1a 70Requires: nss-devel >= 3
020418a4
AM
71
72%description devel
73Userspace development files for eCryptfs.
74
648833c8
JB
75%description devel -l pl.UTF-8
76Pliki programistyczne przestrzeni użytkownika dla eCryptfs.
77
78%package static
79Summary: Static eCryptfs library
80Summary(pl.UTF-8): Statyczna biblioteka eCryptfs
81Group: Development/Libraries
82Requires: %{name}-devel = %{version}-%{release}
83
84%description static
85Static eCryptfs library.
86
87%description static -l pl.UTF-8
88Statyczna biblioteka eCryptfs.
89
020418a4 90%package -n pam-pam_ecryptfs
7ea30a1a
JB
91Summary: eCryptfs PAM module
92Summary(pl.UTF-8): Moduł PAM eCryptfs
020418a4
AM
93Group: Base
94Requires: %{name} = %{version}-%{release}
95
96%description -n pam-pam_ecryptfs
7ea30a1a 97eCryptfs PAM module.
020418a4
AM
98
99%description -n pam-pam_ecryptfs -l pl.UTF-8
7ea30a1a 100Moduł PAM eCryptfs.
020418a4 101
7ea30a1a 102%package -n python-ecryptfs
c5fb99ba 103Summary: Python bindings for the eCryptfs utils
7ea30a1a
JB
104Summary(pl.UTF-8): Wiązania Pythona do narzędzi eCryptfs
105Group: Libraries/Python
c5fb99ba 106Requires: %{name} = %{version}-%{release}
7ea30a1a
JB
107Obsoletes: ecryptfs-utils-python
108
109%description -n python-ecryptfs
110This package contains a module that permits applications written in
111the Python programming language to use the interface supplied by the
112ecryptfs-utils library.
c5fb99ba 113
7ea30a1a
JB
114%description -n python-ecryptfs -l pl.UTF-8
115Ten pakiet zawiera moduł pozwalający aplikacjom napisanym w Pythonie
116na korzystanie z interfejsu dostarczanego przez bibliotekę
117ecryptfs-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
145rm -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
156rm -rf $RPM_BUILD_ROOT
157
3d03ec64
AM
158%pre
159%groupadd -g 260 ecryptfs
160
161%postun
42434661 162/sbin/ldconfig
3d03ec64
AM
163if [ "$1" = "0" ]; then
164 %groupremove ecryptfs
165fi
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]
This page took 0.178401 seconds and 4 git commands to generate.