fusecompress-2.5-1kkr2009.1.spec

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

%define libboost         %mklibname boost 1.38.0
%define librlog          %mklibname rlog  1
%define libmagic         %mklibname magic 1
%define libfuse          %mklibname fuse  2
%define liblzma          %mklibname lzma  2
%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} %{librlog} %{libmagic} %{libfuse} %{liblzo} zlib1
#%{liblzma}
BuildRequires:  boost-devel >= 1.33.1 rlog-devel magic-devel fuse-devel bzip2-devel liblzo-devel zlib-devel
#lzma-devel


%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 \
	--with-boost-libdir=%{_libdir} \
	--without-lzma
%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 May 14 2009 kakurasan <kakurasan AT gmail DOT com> 2.5-1kkr2009.1
- initial build