]> git.pld-linux.org Git - packages/fusecompress.git/blobdiff - fusecompress.spec
- up to 2.6+git fixes
[packages/fusecompress.git] / fusecompress.spec
index 30b01fa5b36e9e65449cbb8da0ada15a29f00b0d..d228df0fcf1e5a46dc61bbf3225776372551213b 100644 (file)
@@ -1,21 +1,23 @@
-%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
@@ -34,14 +36,29 @@ są kompresowane w locie, a Fuse pozwala utworzyć przezroczysty
 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
@@ -50,12 +67,17 @@ rm -rf $RPM_BUILD_ROOT
 %{__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*
This page took 0.274567 seconds and 4 git commands to generate.