]> git.pld-linux.org Git - packages/encfs.git/blobdiff - encfs.spec
- basic test
[packages/encfs.git] / encfs.spec
index d4d767d1e2ba6808ae502ff8992c921d24f7ce39..efb4e764da3b502448e111e653bf35a6adcdf093 100644 (file)
@@ -1,24 +1,23 @@
 # TODO: duplicated locales (es vs es_ES, fr vs fr_FR)
+%bcond_without tests
 Summary:       Encrypted pass-thru filesystem for Linux
 Summary(pl.UTF-8):     Zaszyfrowany system plików dla Linuksa
 Name:          encfs
-Version:       1.5
-Release:       9
+Version:       1.9.4
+Release:       1
 License:       GPL v2
 Group:         Applications/System
-Source0:       http://encfs.googlecode.com/files/encfs-1.5-2.tgz
-# Source0-md5: b07008545545b4a57cf2bf65f08a14ad
-Patch0:                %{name}-const-char.patch
+Source0:       https://github.com/vgough/encfs/archive/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: 28e6c0a9dbfb26b1e53f491bff4e707b
 URL:           http://www.arg0.net/encfs
-BuildRequires: autoconf
-BuildRequires: automake
 BuildRequires: boost-devel >= 1.34.0
+BuildRequires: gettext-tools >= 0.17
 BuildRequires: libfuse-devel >= 2.5
 BuildRequires: libstdc++-devel
-BuildRequires: libtool
 BuildRequires: openssl-devel >= 0.9.7d
+BuildRequires: perl-tools-pod
 BuildRequires: pkgconfig
-BuildRequires: rlog-devel
+BuildRequires: rlog-devel >= 1.3
 Requires:      rlog >= 1.3
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -39,43 +38,40 @@ plików. Jest podobny do CFS-a, ale nie używa NFS-a.
 
 %prep
 %setup -q
-%patch0 -p1
 
 %build
-# %{__libtoolize}
-# %{__aclocal}
-# %{__autoconf}
-# %{__autoheader}
-# %{__automake}
-%configure \
-  --with-boost-system=boost_system \
-  --with-boost-serialization=boost_serialization \
-  --with-boost-filesystem=boost_filesystem \
-       --enable-debug=no
-%{__make} -j1 LDFLAGS=-lboost_system
+install -d build
+cd build
+%cmake .. \
+       -DBUILD_SHARED_LIBS:BOOL=OFF
+
+%{__make}
+
+%if %{with tests}
+%{__make} unittests
+%{__make} test
+%endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__make} install \
+%{__make} -C build install \
        DESTDIR=$RPM_BUILD_ROOT
 
-# No public headers => no need for devel files
-rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
-
-rm -rf $RPM_BUILD_ROOT/usr/share/locale/{fr_FR,pt_PT,de_DE,es_ES}
+# 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
 
-%post  -p /sbin/ldconfig
-%postun        -p /sbin/ldconfig
-
 %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.077952 seconds and 4 git commands to generate.