%define name fusecompress %define version 0.6 %define release %mkrel 1.0.git.20091024.1 %define downloadcode 039657e %define build_bzip2 1 %define build_lzma 1 %define build_lzo 1 %define build_zlib 1 %{?_with_bzip2: %{expand: %%global build_bzip2 1}} %{?_without_bzip2: %{expand: %%global build_bzip2 0}} %{?_with_lzma: %{expand: %%global build_lzma 1}} %{?_without_lzma: %{expand: %%global build_lzma 0}} %{?_with_lzo: %{expand: %%global build_lzo 1}} %{?_without_lzo: %{expand: %%global build_lzo 0}} %{?_with_zlib: %{expand: %%global build_zlib 1}} %{?_without_zlib: %{expand: %%global build_zlib 0}} Summary: Provides a mountable Linux filesystem which transparently compress its content Name: %{name} Version: %{version} Release: %{release} License: GPL Group: System/Kernel and hardware URL: http://miio.net/wordpress/projects/fusecompress/ # Please add comment with the right url/downloadpage. Source0: http://download.github.com/tex-%{name}-%{downloadcode}.tar.gz BuildRoot: %{_tmppath}/%{name}-buildroot Requires: fuse, libmagic1 %if %{mdkversion} >= 201000 Requires: libboost5 %elseif %{mdkversion} <= 200910 Requires: libboost1.38.0 %endif %if %{build_bzip2} Requires: libbzip2_1 BuildRequires: libbzip2-devel %endif %if %{build_lzma} Requires: xz BuildRequires: liblzma-devel %endif %if %{build_lzo} Requires: liblzo2_2 BuildRequires: liblzo-devel %endif %if %{build_zlib} Requires: zlib1 BuildRequires: zlib1-devel %endif BuildRequires: libboost-devel, fuse-devel, libmagic-devel %description FuseCompress provides a mountable Linux file system which transparently compress its content. Files stored in this file system are compressed on the fly and Fuse allows to create a transparent interface between compressed files and user applications. FuseCompress currently supports these compression methods: %if %{build_bzip2} - bzip2 compression %endif %if %{build_lzma} - lzma compression %endif %if %{build_lzo} - lzo2 compression %endif %if %{build_zlib} - zlib compression %endif %prep %setup -q -n tex-%{name}-%{downloadcode} %build %configure2_5x \ %if %{build_bzip2} --with-bz2 \ %endif %if %{build_lzma} --with-lzma \ %endif %if %{build_lzo} --with-lzo2 \ %endif %if %{build_zlib} --with-z \ %endif --with-boost=%{_prefix} \ --with-boost-libdir=%{_libdir} %make %install rm -rf %{buildroot} %makeinstall_std %find_lang %{name} %clean rm -rf %{buildroot} %files -f %{name}.lang %defattr(0644,root,root,0755) %doc AUTHORS COPYING README ChangeLog %{_mandir}/man1/%{name}* %defattr(0755,root,root,0755) %{_bindir}/* %changelog * Fri Dec 18 2009 Lonyai Gergely <aleph@mandriva.org> 0.6-1.0.git.20091024.1mdv2009.1 + Revision: 479945 - Fix requires section to the older distributions * Sat Dec 05 2009 Funda Wang <fwang@mandriva.org> 0.6-1.0.git.20091024.2mdv2010.1 + Revision: 473888 - drop invalid lib request (already there through file dep) * Mon Nov 30 2009 Lonyai Gergely <aleph@mandriva.org> 0.6-1.0.git.20091024.1mdv2010.1 + Revision: 471744 - Fix x86_64 libs problem - rebuild - initial release - import fusecompress