]> git.pld-linux.org Git - packages/encfs.git/blobdiff - encfs.spec
- basic test
[packages/encfs.git] / encfs.spec
index 5e72e6c4327ce68f2a0e2659ed90a17e5b194076..efb4e764da3b502448e111e653bf35a6adcdf093 100644 (file)
@@ -1,24 +1,25 @@
 # TODO: duplicated locales (es vs es_ES, fr vs fr_FR)
 # TODO: duplicated locales (es vs es_ES, fr vs fr_FR)
+%bcond_without tests
 Summary:       Encrypted pass-thru filesystem for Linux
 Summary:       Encrypted pass-thru filesystem for Linux
-Summary(pl):   Zaszyfrowany system plików dla Linuksa
+Summary(pl.UTF-8):     Zaszyfrowany system plików dla Linuksa
 Name:          encfs
 Name:          encfs
-Version:       1.3.0
-Release:       0.1
+Version:       1.9.4
+Release:       1
 License:       GPL v2
 Group:         Applications/System
 License:       GPL v2
 Group:         Applications/System
-Source0:       http://arg0.net/users/vgough/download/%{name}-%{version}-1.tgz
-# Source0-md5: 6e2547a1d667cbbee12e8a8d75dc7917
-URL:           http://arg0.net/users/vgough/encfs.html
-BuildRequires: autoconf
-BuildRequires: automake
+Source0:       https://github.com/vgough/encfs/archive/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: 28e6c0a9dbfb26b1e53f491bff4e707b
+URL:           http://www.arg0.net/encfs
+BuildRequires: boost-devel >= 1.34.0
+BuildRequires: gettext-tools >= 0.17
 BuildRequires: libfuse-devel >= 2.5
 BuildRequires: libstdc++-devel
 BuildRequires: libfuse-devel >= 2.5
 BuildRequires: libstdc++-devel
-BuildRequires: libtool
 BuildRequires: openssl-devel >= 0.9.7d
 BuildRequires: openssl-devel >= 0.9.7d
+BuildRequires: perl-tools-pod
 BuildRequires: pkgconfig
 BuildRequires: pkgconfig
-BuildRequires: rlog-devel
+BuildRequires: rlog-devel >= 1.3
 Requires:      rlog >= 1.3
 Requires:      rlog >= 1.3
-Buildroot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 EncFS implements an encrypted filesystem in userspace using FUSE. FUSE
 
 %description
 EncFS implements an encrypted filesystem in userspace using FUSE. FUSE
@@ -27,47 +28,50 @@ written in userspace. EncFS encrypts all data and filenames in the
 filesystem and passes access through to the underlying filesystem.
 Similar to CFS except that it does not use NFS.
 
 filesystem and passes access through to the underlying filesystem.
 Similar to CFS except that it does not use NFS.
 
-%description -l pl
-EncFS jest implementacj± zaszyfrowanego systemu plików w przestrzeni
-u¿ytkownika przy u¿yciu FUSE. FUSE dostarcza modu³ j±dra Linuksa
-pozwalaj±cy na obs³ugê wirtualnych systemów plików w przestrzeni
-u¿ytkownika. EncFS szyfruje wszystkie dane oraz nazwy plików w
-systemie plików i przekazuje kontrolê do le¿±cego ni¿ej systemu
-plików. Jest podobny do CFS-a, ale nie u¿ywa NFS-a.
+%description -l pl.UTF-8
+EncFS jest implementacją zaszyfrowanego systemu plików w przestrzeni
+użytkownika przy użyciu FUSE. FUSE dostarcza moduł jądra Linuksa
+pozwalający na obsługę wirtualnych systemów plików w przestrzeni
+użytkownika. EncFS szyfruje wszystkie dane oraz nazwy plików w
+systemie plików i przekazuje kontrolę do leżącego niżej systemu
+plików. Jest podobny do CFS-a, ale nie używa NFS-a.
 
 %prep
 %setup -q
 
 %build
 
 %prep
 %setup -q
 
 %build
-%{__libtoolize}
-%{__aclocal}
-%{__autoconf}
-%{__autoheader}
-%{__automake}
-%configure \
-       --enable-debug=no
+install -d build
+cd build
+%cmake .. \
+       -DBUILD_SHARED_LIBS:BOOL=OFF
+
 %{__make}
 
 %{__make}
 
+%if %{with tests}
+%{__make} unittests
+%{__make} test
+%endif
+
 %install
 rm -rf $RPM_BUILD_ROOT
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__make} install \
+%{__make} -C build install \
        DESTDIR=$RPM_BUILD_ROOT
 
        DESTDIR=$RPM_BUILD_ROOT
 
-# No public headers => no need for devel files
-rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
+# duplicate of de,es,fr,hu,pt
+%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{de_DE,es_ES,fr_FR,pt_PT}
 
 %find_lang %{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 
 %find_lang %{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post  -p /sbin/ldconfig
-%postun        -p /sbin/ldconfig
-
 %files -f %{name}.lang
 %defattr(644,root,root,755)
 %files -f %{name}.lang
 %defattr(644,root,root,755)
-%doc AUTHORS ChangeLog README
-%attr(755,root,root) %{_bindir}/encfs*
-%attr(755,root,root) %{_libdir}/lib*.so.*.*.*
-%{_mandir}/man1/*.1*
+%doc AUTHORS ChangeLog README.md
+%attr(755,root,root) %{_bindir}/encfs
+%attr(755,root,root) %{_bindir}/encfsctl
+%attr(755,root,root) %{_bindir}/encfssh
+%{_mandir}/man1/encfs.1*
+%{_mandir}/man1/encfsctl.1*
+%{_mandir}/man1/encfssh.1*
This page took 0.080531 seconds and 4 git commands to generate.