summaryrefslogtreecommitdiff
path: root/packaging/ecryptfs-utils.spec
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/ecryptfs-utils.spec')
-rw-r--r--packaging/ecryptfs-utils.spec119
1 files changed, 119 insertions, 0 deletions
diff --git a/packaging/ecryptfs-utils.spec b/packaging/ecryptfs-utils.spec
new file mode 100644
index 0000000..dbcabcb
--- /dev/null
+++ b/packaging/ecryptfs-utils.spec
@@ -0,0 +1,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/*