File cromfs.spec of Package cromfs

#
# spec file for package cromfs (Version 1.5.4)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           cromfs
License:        GPL v3 only
Group:          System/Filesystems
Supplements:    filesystem(cromfs)
BuildRequires:  fuse-devel gcc-c++ pkg-config
Version:        1.5.4
Release:        2
Source0:        %{name}-%{version}.tar.bz2
Patch0:         rpm-opt-flags.diff
Patch1:         gcc-4.3.diff
Patch2:         no-static.diff
Patch3:         s390-support.diff
Url:            http://bisqwit.iki.fi/source/cromfs.html
Summary:        LZMA based compressed read only filesystem in userspace
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
CromFs is a compressed read-only filesystem for Linux. It uses the LZMA
compression algorithm from 7-zip, and a powerful block merging
mechanism, that is especially efficient with gigabytes of large files
having lots of redundancy.

The primary design goal of cromfs is compression power. It is  much
slower than its peers, and uses more RAM. If all you care about is
powerful compression and random file access, then you will be happy
with cromfs.



Authors:
--------
    Joel Yliluoma

%prep
%setup
%patch0
%patch1
%patch2
%patch3

%build
export CPPFLAGS="$RPM_OPT_FLAGS"
./configure
#make %{?jobs:-j %jobs}
make

%install
%makeinstall
for p in cromfs-driver cvcromfs mkcromfs unmkcromfs; do
  install -m 755 -D install/progs/$p $RPM_BUILD_ROOT/%_bindir/$p
done

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc install/docs/*
%_bindir/*

%changelog
* Tue Mar 18 2008 dmueller@suse.de
- Initial package (1.5.4)
openSUSE Build Service is sponsored by