File encfs.spec of Package encfs

#
# spec file for package encfs
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#



Name:           encfs
BuildRequires:  boost-devel fuse-devel gcc-c++ openssl-devel pkgconfig rlog-devel zlib-devel
BuildRequires:  libtool
Requires:       fuse
Summary:        Userspace Encrypted File System
Version:        1.7.4
Release:        10
License:        GPL-2.0+ ; GPL-3.0+
Group:          System/Filesystems
Source:         %{name}-%{version}.tar.bz2
Patch:          configure-fix.patch
Url:            http://www.arg0.net/encfs
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
EncFS provides an encrypted file system, layered on top of a normal
directory tree and encrypts individual files which are stored in the
hosting directory tree.

This has several advantages over the loopback encryption which
   provided by the Linux kernel: - No space is and has to be
   reserved, encrypted files only take the space that they really
   occupy

- Backups: encrypted files can be individually backed-up on the host
   filesystem

- Layering: Since it's hosted on a normal filesystem, encfs can be
   used on filesystems which normally have no support encryption,
   like NFS or other userspace filesystems.

EncFS is implemented as a userspace filesystem in an unprivileged
application using fuse (FUSE (Filesystem in USErspace)).

%prep
%setup
%patch -p1

%build
autoreconf -fiv

%configure --with-boost-libdir=%{_libdir}
%{__make} %{?_smp_flags}

%install
make DESTDIR="$RPM_BUILD_ROOT" install
rm -f $RPM_BUILD_ROOT%{_libdir}/*.{la,so}
#
# remove unsupported locales - should revive once after we add
# these in the core system...
#
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/de_CH
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/es_PE
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/hu_HU
%{find_lang} %{name}

%post
%{run_ldconfig}

%postun
%{run_ldconfig}

%files -f %{name}.lang
%defattr(-,root,root)
%doc AUTHORS COPYING* ChangeLog README*
%doc %{_mandir}/man?/*
%{_bindir}/encfs*
%{_libdir}/libencfs.so.*

%changelog