fusecompress-2.5-2kkr2009.0.spec

%define name          fusecompress
%define version       2.5
%define release       %mkrel 2

%define librlog       %mklibname    rlog  1
%define libmagic      %mklibname    magic 1
%define libfuse       %mklibname    fuse  2
%define liblzma       %mklibname    lzma  0
%define liblzma_devel %mklibname -d lzma
%define liblzo        %mklibname    lzo   2 2


Summary:        Compressed filesystem
Summary(ja):    圧縮ファイルシステム
Name:           %{name}
Version:        %{version}
Release:        %{release}
Source:         tex-fusecompress-ae67acae857c3948568505c362facc3c9c81edd4.tar.gz
  # Size  : 161,828
  # MD5   : c2af09526804cdb5f2518119fb17886d
  # SHA-1 : df4729750eeafe899bf575e19da08cf05ed4d514
URL:            http://www.miio.net/fusecompress/
License:        GPLv2
Group:          Archiving/Compression
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-buildroot
Requires:       libboost >= 1.33.1 %{librlog} %{libmagic} %{libfuse} %{liblzo} zlib1
BuildRequires:  boost-devel >= 1.33.1 rlog-devel magic-devel fuse-devel bzip2-devel liblzo-devel zlib-devel
%if 0
Requires:       %{liblzma}
BuildRequires:  %{liblzma_devel}
  # not "lzma-devel"
%endif


%description
FuseCompress provides a mountable Linux filesystem which transparently compress its content.

%description -l ja
FuseCompressはデータを透過的に圧縮するマウント可能なLinuxファイルシステムを提供します。


%prep
%setup -q -n tex-fusecompress-ae67acae857c3948568505c362facc3c9c81edd4
%{__sed} -i 's:\(block_offset - offset\):(\1):' src/Memory.cpp


%build
%configure2_5x \
%if 1
	--without-lzma \
%endif
	--with-boost-libdir=%{_libdir}
%make


%install
%{__rm} %{buildroot} -fr
%makeinstall
%{__lzma} AUTHORS README


%clean
%{__rm} %{buildroot} -fr


%files
%defattr(-, root, root)
%{_bindir}/fusecompress
%{_bindir}/fusecompress_offline
%{_bindir}/print_compress
%{_mandir}/man1/fusecompress.1*
%{_mandir}/man1/fusecompress_offline.1*
%doc AUTHORS* README*


%changelog
* Thu Jul 02 2009 kakurasan <kakurasan AT gmail DOT com> 2.5-2kkr2009.0
- build for 2009.0
- Requires: libboost

* Thu May 14 2009 kakurasan <kakurasan AT gmail DOT com> 2.5-1kkr2009.1
- initial build