Blame ecryptfs-utils.spec

Michal Hlavinka 0f50b0
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
Michal Hlavinka 0f50b0
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
Michal Hlavinka 0f50b0
Michael Halcrow fc3966
Name: ecryptfs-utils
Michal Hlavinka e12eec
Version: 73
Michal Hlavinka 3b73d0
Release: 1%{?dist}
Michael Halcrow fc3966
Summary: The eCryptfs mount helper and support libraries
Michael Halcrow fc3966
Group: System Environment/Base
Tom Callaway d2d5d1
License: GPLv2+
Michal Hlavinka 0f50b0
URL: https://launchpad.net/ecryptfs
Michal Hlavinka 3099b4
Source0: http://launchpad.net/ecryptfs/trunk/%{version}/+download/ecryptfs-utils_%{version}.orig.tar.gz
Michal Hlavinka e12eec
Source1: http://bazaar.launchpad.net/%7Eecryptfs/ecryptfs/ecryptfs-utils/annotate/head%3A/src/desktop/ecryptfs-mount-private.desktop
Michal Hlavinka e12eec
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
Michal Hlavinka 3d86b1
Requires: keyutils
Michael Halcrow fc3966
BuildRequires: libgcrypt-devel keyutils-libs-devel openssl-devel pam-devel
Michal Hlavinka e12eec
BuildRequires: trousers-devel python python-devel nss-devel desktop-file-utils
Michael Halcrow fc3966
Conflicts: kernel < 2.6.19
Michael Halcrow fc3966
Michael Halcrow fc3966
%description
Michael Halcrow fc3966
eCryptfs is a stacked cryptographic filesystem that ships in Linux
Michael Halcrow fc3966
kernel versions 2.6.19 and above. This package provides the mount
Michael Halcrow fc3966
helper and supporting libraries to perform key management and mount
Michael Halcrow fc3966
functions.
Michael Halcrow fc3966
Michael Halcrow fc3966
Install ecryptfs-utils if you would like to mount eCryptfs.
Michael Halcrow fc3966
Michael Halcrow fc3966
%package devel
Michael Halcrow fc3966
Summary: The eCryptfs userspace development package
Michael Halcrow fc3966
Group: System Environment/Base
Michael Halcrow fc3966
Requires: keyutils-libs-devel %{name} = %{version}-%{release}
Michael Halcrow fc3966
Michael Halcrow fc3966
%description devel
Michael Halcrow fc3966
Userspace development files for eCryptfs.
Michael Halcrow fc3966
Michal Hlavinka 0f50b0
%package python
Michal Hlavinka 0f50b0
Summary: Python bindings for the eCryptfs utils
Michal Hlavinka 0f50b0
Group: System Environment/Base
Michal Hlavinka 0f50b0
Requires: ecryptfs-utils %{name} = %{version}-%{release}
Michal Hlavinka 0f50b0
Michal Hlavinka 0f50b0
%description python
Michal Hlavinka 0f50b0
The ecryptfs-utils-python package contains a module that permits 
Michal Hlavinka 0f50b0
applications written in the Python programming language to use 
Michal Hlavinka 0f50b0
the interface supplied by the ecryptfs-utils library.
Michal Hlavinka 0f50b0
Michael Halcrow fc3966
%prep
Michael Halcrow fc3966
%setup -q
Michael Halcrow fc3966
Michael Halcrow fc3966
%build
Michal Hlavinka 56ac97
%configure --disable-rpath --enable-tspi --enable-nss
Michal Hlavinka 0f50b0
#disable rpath
Michal Hlavinka 0f50b0
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
Michal Hlavinka 0f50b0
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
Michael Halcrow fc3966
make %{?_smp_mflags}
Michael Halcrow fc3966
Michael Halcrow fc3966
%install
Michael Halcrow fc3966
rm -rf $RPM_BUILD_ROOT
Michael Halcrow fc3966
make install DESTDIR=$RPM_BUILD_ROOT
Michal Hlavinka e12eec
rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
Michal Hlavinka 609177
find $RPM_BUILD_ROOT%{_libdir}/ -name '*.la' | xargs rm -f
Michal Hlavinka e12eec
mv $RPM_BUILD_ROOT/%{_libdir}/libecryptfs.so* $RPM_BUILD_ROOT/%{_lib}
Michal Hlavinka 609177
rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
Michal Hlavinka e12eec
install -D -m 644 doc/ecryptfs-mount-private.txt $RPM_BUILD_ROOT%{_datadir}/%{name}/ecryptfs-mount-private.txt
Michal Hlavinka e12eec
desktop-file-install --dir=${RPM_BUILD_ROOT}%{_datadir}/%{name} %{SOURCE1}
Michael Halcrow 2fbd99
Michael Halcrow fc3966
%post -p /sbin/ldconfig
Michael Halcrow fc3966
Michael Halcrow fc3966
%postun -p /sbin/ldconfig
Michael Halcrow fc3966
Michael Halcrow fc3966
%clean
Michael Halcrow fc3966
rm -rf $RPM_BUILD_ROOT
Michael Halcrow fc3966
Michael Halcrow fc3966
%files
Michael Halcrow fc3966
%defattr(-,root,root,-)
Michael Halcrow fc3966
%doc README COPYING AUTHORS NEWS THANKS
Michael Halcrow 2fbd99
%doc doc/ecryptfs-faq.html doc/ecryptfs-pam-doc.txt
Eric Sandeen f74772
%doc doc/ecryptfs-pkcs11-helper-doc.txt
Michal Hlavinka 0f50b0
%attr(4755,root,root) /sbin/mount.ecryptfs
Michal Hlavinka 3b73d0
%attr(4755,root,root) /sbin/umount.ecryptfs
Michal Hlavinka 0f50b0
%attr(4755,root,root) /sbin/mount.ecryptfs_private
Michal Hlavinka 0f50b0
%attr(4755,root,root) /sbin/umount.ecryptfs_private
Michael Halcrow fc3966
%{_bindir}/ecryptfs-manager
Michael Halcrow fc3966
%{_bindir}/ecryptfs-insert-wrapped-passphrase-into-keyring
Michael Halcrow fc3966
%{_bindir}/ecryptfs-rewrap-passphrase
Michal Hlavinka e12eec
%{_bindir}/ecryptfs-rewrite-file
Michael Halcrow fc3966
%{_bindir}/ecryptfs-unwrap-passphrase
Michael Halcrow fc3966
%{_bindir}/ecryptfs-wrap-passphrase
Michael Halcrow cf6427
%{_bindir}/ecryptfs-add-passphrase
Eric Sandeen 3e7fc5
%{_bindir}/ecryptfs-generate-tpm-key
Eric Sandeen bf23fd
%{_bindir}/ecryptfs-mount-private
Eric Sandeen bf23fd
%{_bindir}/ecryptfs-setup-private
Michal Hlavinka 609177
%{_bindir}/ecryptfs-setup-swap
Eric Sandeen bf23fd
%{_bindir}/ecryptfs-umount-private
Eric Sandeen bf23fd
%{_bindir}/ecryptfs-stat
Michael Halcrow fc3966
%{_bindir}/ecryptfsd
Michal Hlavinka e12eec
/%{_lib}/libecryptfs.so.0.0.0
Michal Hlavinka e12eec
/%{_lib}/libecryptfs.so.0
Michael Halcrow fc3966
%{_libdir}/ecryptfs
Michael Halcrow fc3966
/%{_lib}/security/pam_ecryptfs.so
Michal Hlavinka e12eec
%dir %{_datadir}/%{name}
Michal Hlavinka e12eec
%{_datadir}/%{name}/ecryptfs-mount-private.txt
Michal Hlavinka e12eec
%{_datadir}/%{name}/ecryptfs-mount-private.desktop
Eric Sandeen bf23fd
%{_mandir}/man1/ecryptfs-add-passphrase.1.gz
Eric Sandeen bf23fd
%{_mandir}/man1/ecryptfs-generate-tpm-key.1.gz
Eric Sandeen bf23fd
%{_mandir}/man1/ecryptfs-insert-wrapped-passphrase-into-keyring.1.gz
Eric Sandeen bf23fd
%{_mandir}/man1/ecryptfs-mount-private.1.gz
Eric Sandeen bf23fd
%{_mandir}/man1/ecryptfs-rewrap-passphrase.1.gz
Michal Hlavinka e12eec
%{_mandir}/man1/ecryptfs-rewrite-file.1.gz
Eric Sandeen bf23fd
%{_mandir}/man1/ecryptfs-setup-private.1.gz
Eric Sandeen bf23fd
%{_mandir}/man1/ecryptfs-umount-private.1.gz
Eric Sandeen bf23fd
%{_mandir}/man1/ecryptfs-unwrap-passphrase.1.gz
Eric Sandeen bf23fd
%{_mandir}/man1/ecryptfs-wrap-passphrase.1.gz
Eric Sandeen bf23fd
%{_mandir}/man1/mount.ecryptfs_private.1.gz
Eric Sandeen bf23fd
%{_mandir}/man1/umount.ecryptfs_private.1.gz
Michael Halcrow fc3966
%{_mandir}/man7/ecryptfs.7.gz
Michael Halcrow cf6427
%{_mandir}/man8/ecryptfs-manager.8.gz
Michael Halcrow cf6427
%{_mandir}/man8/ecryptfsd.8.gz
Michael Halcrow cf6427
%{_mandir}/man8/mount.ecryptfs.8.gz
Eric Sandeen bf23fd
%{_mandir}/man8/pam_ecryptfs.8.gz
Michael Halcrow fc3966
Michael Halcrow fc3966
%files devel
Michael Halcrow fc3966
%defattr(-,root,root,-)
Michal Hlavinka e12eec
/%{_lib}/libecryptfs.so
Michael Halcrow c4a46e
%{_libdir}/pkgconfig/libecryptfs.pc
Michael Halcrow fc3966
%{_includedir}/ecryptfs.h
Michael Halcrow fc3966
Michal Hlavinka 0f50b0
%files python
Michal Hlavinka 0f50b0
%defattr(-,root,root,-)
Michal Hlavinka 585602
%dir %{python_sitelib}/ecryptfs-utils
Michal Hlavinka 0f50b0
%{python_sitelib}/ecryptfs-utils/libecryptfs.py
Michal Hlavinka 0f50b0
%{python_sitelib}/ecryptfs-utils/libecryptfs.pyc
Michal Hlavinka 0f50b0
%{python_sitelib}/ecryptfs-utils/libecryptfs.pyo
Michal Hlavinka 585602
%dir %{python_sitearch}/ecryptfs-utils
Michal Hlavinka 0f50b0
%{python_sitearch}/ecryptfs-utils/_libecryptfs.so.0
Michal Hlavinka 0f50b0
%{python_sitearch}/ecryptfs-utils/_libecryptfs.so.0.0.0
Michal Hlavinka 0f50b0
%{python_sitearch}/ecryptfs-utils/_libecryptfs.so
Michal Hlavinka 0f50b0
Michael Halcrow fc3966
%changelog
Michal Hlavinka e12eec
* Sat Mar 21 2009 Michal Hlavinka <mhlavink@redhat.com> 73-1
Michal Hlavinka e12eec
- updated to 73
Michal Hlavinka e12eec
- move libs from /usr/lib to /lib (#486139)
Michal Hlavinka e12eec
- fix symlinks created by ecryptfs-setup-private (#486146)
Michal Hlavinka e12eec
Michal Hlavinka 609177
* Mon Feb 24 2009 Michal Hlavinka <mhlavink@redhat.com> 71-1
Michal Hlavinka 609177
- updated to 71
Michal Hlavinka 609177
- remove .la files
Michal Hlavinka 609177
Michal Hlavinka 3b73d0
* Mon Feb 16 2009 Michal Hlavinka <mhlavink@redhat.com> 70-1
Michal Hlavinka 3b73d0
- updated to 70
Michal Hlavinka 3b73d0
- fix: #479762 - ecryptfsecryptfs-setup-private broken
Michal Hlavinka 3b73d0
- added umount option to clear per-user keyring
Michal Hlavinka 3b73d0
Michal Hlavinka 585602
* Mon Feb 02 2009 Michal Hlavinka <mhlavink@redhat.com> 69-4
Michal Hlavinka 585602
- fix list of onwed directories
Michal Hlavinka 585602
Michal Hlavinka 3d86b1
* Tue Jan 27 2009 Michal Hlavinka <mhlavink@redhat.com> 69-3
Michal Hlavinka 3d86b1
- add missing requires: keyutils
Michal Hlavinka 3d86b1
Michal Hlavinka 2ee3b7
* Tue Jan 27 2009 Michal Hlavinka <mhlavink@redhat.com> 69-2
Michal Hlavinka 2ee3b7
- bump release for rebuild
Michal Hlavinka 2ee3b7
Michal Hlavinka 3099b4
* Tue Jan 27 2009 Michal Hlavinka <mhlavink@redhat.com> 69-1
Michal Hlavinka 686bb7
- updated to 69
Tomáš Mráz bbebf8
Michal Hlavinka aefcf6
* Mon Jan 12 2009 Michal Hlavinka <mhlavink@redhat.com> 68-0
Michal Hlavinka aefcf6
- updated to 68
Michal Hlavinka aefcf6
- fix #478464 - /usr/bin/ecryptfs-setup-private errors out
Michal Hlavinka aefcf6
Michal Hlavinka 56ac97
* Mon Dec 29 2008 Michal Hlavinka <mhlavink@redhat.com> 67-1
Michal Hlavinka 56ac97
- bump release for rebuild
Michal Hlavinka 56ac97
Michal Hlavinka 0f50b0
* Mon Dec 29 2008 Michal Hlavinka <mhlavink@redhat.com> 67-0
Michal Hlavinka 0f50b0
- updated to 67
Michal Hlavinka 0f50b0
Michael Halcrow 94b9e4
* Wed Oct 22 2008 Mike Halcrow <mhalcrow@us.ibm.com> 61-0
Michael Halcrow 94b9e4
- Add support for filename encryption enablement (future kernel feature)
Michael Halcrow 94b9e4
- Replace uint32_t with size_t for x86_64 compatibility (patch by Eric Sandeen)
Michael Halcrow 94b9e4
Eric Sandeen e6f8a9
* Fri Oct 17 2008 Eric Sandeen <sandeen@redhat.com> 59-2
Eric Sandeen e6f8a9
- Remove duplicate doc files from rpm
Eric Sandeen e6f8a9
Michael Halcrow edef76
* Tue Oct 07 2008 Mike Halcrow <mhalcrow@us.ibm.com> 59-1
Michael Halcrow edef76
- Put attr declaration in the right spot
Michael Halcrow edef76
Michael Halcrow 543e83
* Tue Oct 07 2008 Mike Halcrow <mhalcrow@us.ibm.com> 59-0
Michael Halcrow 543e83
- Make /sbin/*ecryptfs* files setuid
Michael Halcrow 543e83
- Add /sbin path to ecryptfs-setup-private
Michael Halcrow 543e83
Michael Halcrow 564f4d
* Mon Oct 06 2008 Mike Halcrow <mhalcrow@us.ibm.com> 58-0
Michael Halcrow 564f4d
- TSPI key module update to avoid flooding TrouSerS library with requests
Michael Halcrow 564f4d
- OpenSSL key module parameter fixes
Michael Halcrow 564f4d
- Updates to mount-on-login utilities
Michael Halcrow 564f4d
Michael Halcrow 46cf03
* Wed Aug 13 2008 Mike Halcrow <mhalcrow@us.ibm.com> 56-0
Michael Halcrow 46cf03
- Namespace fixes for the key module parameter aliases
Michael Halcrow 46cf03
- Updates to the man page and the README
Michael Halcrow 46cf03
Eric Sandeen bf23fd
* Wed Jul 30 2008 Eric Sandeen <sandeen@redhat.com> 53-0
Eric Sandeen bf23fd
- New upstream version
Eric Sandeen bf23fd
- Many new manpages, new ecryptfs-stat util
Eric Sandeen bf23fd
Tom Callaway d2d5d1
* Thu Jul 17 2008 Tom "spot" Callaway <tcallawa@redhat.com> 50-1
Tom Callaway d2d5d1
- fix license tag
Tom Callaway d2d5d1
Michael Halcrow 4e3694
* Fri Jun 27 2008 Mike Halcrow <mhalcrow@us.ibm.com> 50-0
Michael Halcrow 4e3694
- Add umount.ecryptfs_private symlink
Michael Halcrow 4e3694
- Add pam_mount session hooks for mount and unmount
Michael Halcrow 4e3694
Michael Halcrow 4e3694
* Fri Jun 27 2008 Eric Sandeen <sandeen@redhat.com> 49-1
Eric Sandeen 35849e
- build with TrouSerS key module
Eric Sandeen 35849e
Michael Halcrow 4e3694
* Fri Jun 27 2008 Eric Sandeen <sandeen@redhat.com> 49-0
Eric Sandeen f74772
- New upstream version
Eric Sandeen f74772
Eric Sandeen 081353
* Tue Jun 03 2008 Eric Sandeen <sandeen@redhat.com> 46-0
Eric Sandeen 071d03
- New upstream version
Eric Sandeen 071d03
Michael Halcrow d33da1
* Mon Feb 18 2008 Mike Halcrow <mhalcrow@us.ibm.com> 40-0
Michael Halcrow d33da1
- Enable passwd_file option in openssl key module
Michael Halcrow d33da1
Michael Halcrow 40f1de
* Wed Feb 13 2008 Mike Halcrow <mhalcrow@us.ibm.com> 39-0
Michael Halcrow 40f1de
- Fix include upstream
Michael Halcrow 40f1de
Karsten Hopp a3da3d
* Wed Feb 13 2008 Karsten Hopp <karsten@redhat.com> 38-1
Karsten Hopp a3da3d
- fix includes
Karsten Hopp a3da3d
Michael Halcrow 61692c
* Tue Jan 8 2008 Mike Halcrow <mhalcrow@us.ibm.com> 38-0
Michael Halcrow 61692c
 - Fix passthrough mount option prompt
Michael Halcrow 61692c
 - Clarify man page
Michael Halcrow 61692c
 - Add HMAC option (for future kernel versions)
Michael Halcrow 61692c
 - Bump to version 38
Michael Halcrow 61692c
Michael Halcrow cc0778
* Wed Dec 19 2007 Mike Halcrow <mhalcrow@us.ibm.com> 37-0
Michael Halcrow cc0778
- Remove unsupported ciphers; bump to version 37
Michael Halcrow cc0778
Michael Halcrow 02c342
* Tue Dec 18 2007 Mike Halcrow <mhalcrow@us.ibm.com> 36-0
Michael Halcrow 02c342
- Cipher selection detects .gz ko files; bump to version 36
Michael Halcrow 02c342
Michael Halcrow 43e590
* Mon Dec 17 2007 Mike Halcrow <mhalcrow@us.ibm.com> 35-0
Michael Halcrow 43e590
- Cleanups to cipher selection; bump to version 35
Michael Halcrow 43e590
Michael Halcrow 8bc134
* Mon Dec 17 2007 Mike Halcrow <mhalcrow@us.ibm.com> 34-0
Michael Halcrow 8bc134
- Fix OpenSSL key module; bump to version 34
Michael Halcrow 8bc134
Michael Halcrow 916d76
* Fri Dec 14 2007 Mike Halcrow <mhalcrow@us.ibm.com> 33-1
Michael Halcrow 916d76
- Add files to package
Michael Halcrow 916d76
Michael Halcrow d95d2d
* Fri Dec 14 2007 Mike Halcrow <mhalcrow@us.ibm.com> 33-0
Michael Halcrow 2fbd99
- update to version 33
Michael Halcrow 2fbd99
Michael Halcrow 2fbd99
* Thu Dec 13 2007 Karsten Hopp <karsten@redhat.com> 32-1
Michael Halcrow 2fbd99
- update to version 32
Michael Halcrow d95d2d
Michael Halcrow 2fbd99
* Thu Nov 29 2007 Karsten Hopp <karsten@redhat.com> 30-2
Michael Halcrow 2fbd99
- fix ia64 libdir
Michael Halcrow 2fbd99
- build initial RHEL-5 version
Karsten Hopp eff64e
Karsten Hopp 039625
* Thu Nov 29 2007 Karsten Hopp <karsten@redhat.com> 30-1
Karsten Hopp 039625
- build version 30
Karsten Hopp 039625
Michael Halcrow cf6427
* Fri Oct 05 2007 Mike Halcrow <mhalcrow@us.ibm.com> - 30-0
Michael Halcrow cf6427
- Bump to version 30. Several bugfixes. Key modules are overhauled
Michael Halcrow cf6427
  with a more sane API.
Jesse Keating 0bb6f9
* Wed Aug 29 2007 Fedora Release Engineering <rel-eng at fedoraproject dot org> - 18-1
Jesse Keating 0bb6f9
- Rebuild for selinux ppc32 issue.
Jesse Keating 0bb6f9
Michael Halcrow fc3966
* Thu Jun 28 2007 Mike Halcrow <mhalcrow@us.ibm.com> - 18-0
Michael Halcrow fc3966
- Bump to version 18 with an OpenSSL key module fix
Michael Halcrow fc3966
* Thu Jun 21 2007 Kevin Fenzi <kevin@tummy.com> - 17-1
Michael Halcrow fc3966
- Change kernel Requires to Conflicts
Michael Halcrow fc3966
- Remove un-needed devel buildrequires
Michael Halcrow fc3966
* Wed Jun 20 2007 Mike Halcrow <mhalcrow@us.ibm.com>  - 17-0
Michael Halcrow fc3966
- Provide built-in fallback passphrase key module. Remove keyutils,
Michael Halcrow fc3966
  openssl, and pam requirements (library dependencies take care of
Michael Halcrow fc3966
  this). Include wrapped passphrase executables in file set.
Michael Halcrow fc3966
* Fri Apr 20 2007 Mike Halcrow <mhalcrow@us.ibm.com>  - 15-1
Michael Halcrow fc3966
- Change permission of pam_ecryptfs.so from 644 to 755.
Michael Halcrow fc3966
* Thu Apr 19 2007 Mike Halcrow <mhalcrow@us.ibm.com>  - 15-0
Michael Halcrow fc3966
- Fix mount option parse segfault. Fix pam_ecryptfs.so semaphore
Michael Halcrow fc3966
  issue when logging in via ssh.
Michael Halcrow fc3966
* Thu Mar 01 2007 Mike Halcrow <mhalcrow@us.ibm.com>  - 10-0
Michael Halcrow fc3966
- Remove verbose syslog() calls; change key module build to allow
Michael Halcrow fc3966
  OpenSSL module to be disabled from build; add AUTHORS, NEWS, and
Michael Halcrow fc3966
  THANKS to docs; update Requires with variables instead of hardcoded
Michael Halcrow fc3966
  name and version.
Michael Halcrow fc3966
* Tue Feb 06 2007 Mike Halcrow <mhalcrow@us.ibm.com>  - 9-1
Michael Halcrow fc3966
- Minor update in README, add dist tag to Release, add --disable-rpath
Michael Halcrow fc3966
  to configure step, and remove keyutils-libs from Requires.
Michael Halcrow fc3966
* Tue Jan 09 2007 Mike Halcrow <mhalcrow@us.ibm.com>  - 9-0
Michael Halcrow fc3966
- Correct install directories for 64-bit; add support for xattr and
Michael Halcrow fc3966
  encrypted_view mount options
Michael Halcrow fc3966
* Tue Jan 02 2007 Mike Halcrow <mhalcrow@us.ibm.com>  - 8-0
Michael Halcrow fc3966
- Introduce build support for openCryptoki key module.  Fix -dev build
Michael Halcrow fc3966
  dependencies for devel package
Michael Halcrow fc3966
* Mon Dec 11 2006 Mike Halcrow <mhalcrow@us.ibm.com>  - 7-0
Michael Halcrow fc3966
- Initial package creation