-%define tag 2a6dff0dc32c4c93cc08b2ba224bf9ef8e2485b4
+%define tag c5e5eb58e48a6ad08298f178a9d91b9539abf883
Summary: Transparent read-write compression filesystem
Summary(pl.UTF-8): System plików z przezroczystą kompresją danych
Name: fusecompress
-Version: 2.0
-Release: 0.1
+Version: 2.6
+Release: 1
License: GPL
Group: Applications/System
-# http://github.com/tex/fusecompress/tree/master
-Source0: tex-fusecompress-%{tag}.tar.gz
-# Source0-md5: a0b2d0b3266e604fb4684a658aa0d87e
-URL: http://miio.net/fusecompress/
+Source0: https://github.com/tex/fusecompress/archive/2.6.tar.gz
+# Source0-md5: 923688bd13b9d87fb74a0449bdf86724
+Patch0: fusecompress-git.patch
+URL: https://code.google.com/p/fusecompress/
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: boost-devel
BuildRequires: bzip2-devel
BuildRequires: libfuse-devel
+BuildRequires: libmagic-devel
BuildRequires: lzma-devel
+BuildRequires: lzo-devel
BuildRequires: libstdc++-devel
BuildRequires: rlog-devel >= 1.3
BuildRequires: zlib-devel
interfejs między skompresowanymi plikami a aplikacjami użytkownika
%prep
-%setup -q -n tex-%{name}-%{tag}
+%setup -q -n %{name}-%{version}
+%patch0 -p1
+
+# gold causes really weird issues with fuse apps
+install -d ld-dir
+[ ! -x /usr/bin/ld.bfd ] || ln -sf /usr/bin/ld.bfd ld-dir/ld
%build
-%{__aclocal}
+PATH=$(pwd)/ld-dir:$PATH
+%{__aclocal} -I m4
%{__autoconf}
-%{__autoheader}
-%{__automake}
-%configure
+%configure \
+ --bindir=%{_sbindir} \
+ --with-boost-libdir=%{_libdir} \
+ --with-boost-serialization=boost_serialization \
+ --with-boost-iostreams=boost_iostreams \
+ --with-boost-program-options=boost_program_options \
+ --with-boost-filesystem=boost_filesystem \
+ --with-boost-system=boost_system \
+ --with-lzma \
+ --with-z \
+ --with-bz2 \
+ --with-lzo2
%{__make}
%install
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
+mv $RPM_BUILD_ROOT%{_sbindir}/{print_compress,fusecompress_print_compress}
+rm $RPM_BUILD_ROOT%{_sbindir}/xattrs
+
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc AUTHORS ChangeLog NEWS README TODO
-%attr(755,root,root) %{_bindir}/%{name}
-%attr(755,root,root) %{_bindir}/%{name}_offline
+%doc AUTHORS NEWS README TODO
+%attr(755,root,root) %{_sbindir}/mount.fusecompress
+%attr(755,root,root) %{_sbindir}/%{name}
+%attr(755,root,root) %{_sbindir}/%{name}_offline
+%attr(755,root,root) %{_sbindir}/%{name}_print_compress
%{_mandir}/man1/*.1*