File fusecompress.spec of Package fusecompress

#
# spec file for package fusecompress
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           fusecompress
License:        GPL v2 only
Group:          System/Filesystems
AutoReqProv:    on
Version:        0.9.2svn20090226
Release:        11
Summary:        FUSE-based filesystem with transparent compression
Source:         %name-%version.tar.gz
Url:            http://code.google.com/p/fusecompress/
BuildRequires:  cmake fuse-devel gcc-c++ libbz2-devel lzo-devel xz-devel zlib-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Obsoletes:      FuseCompress < %version
Provides:       FuseCompress = %version-%release
Patch1:         fusecompress-linking.patch

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

Files stored in this filesystem are compressed on the fly and FUSE
allows to create a transparent interface between compressed files and
user applications.

This is the legacy C implementation of FuseCompress. It performs
slightly less well than the current one implemented in C++, but does
not exhibit flaws such as data corruption or files growing larger and
larger that make the current code (as of July 17 2008) unusable in a
production environment.



Authors:
--------
    Milan Svoboda <milan.svoboda@centrum.cz>
    Anders Aagaard <aagaande@gmail.com>
    Ulrich Hecht <uli@suse.de>

%prep
%setup -q -n %name
%patch1

%build
export CFLAGS="$RPM_OPT_FLAGS"
cmake -DCMAKE_BUILD_TYPE=debug .
make %{?jobs:-j%jobs} VERBOSE=1
mv fusecompress fusecompress.debug
make clean
cmake -DCMAKE_BUILD_TYPE=release .
make %{?jobs:-j%jobs} VERBOSE=1
mv fusecompress fusecompress.release

%install
install -D -m 755 fusecompress.release $RPM_BUILD_ROOT/bin/fusecompress
install -d -m 755 $RPM_BUILD_ROOT%_bindir
install -m 755 fusecompress.debug $RPM_BUILD_ROOT%_bindir/
install -m 755 fusecompress_offline $RPM_BUILD_ROOT%_bindir/
install -m 755 fsck.fusecompress $RPM_BUILD_ROOT/bin/

%files
%defattr(-,root,root)
%doc README BUGS
/bin/*
%_bindir/*

%changelog
openSUSE Build Service is sponsored by