File reiser4progs.spec of Package reiser4progs

#
# spec file for package reiser4progs
#
# Copyright (c) 2015 SUSE LINUX 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/
#


Name:           reiser4progs
Version:        1.1.0
Release:        0
%define lsuf	-1_1-0
Summary:        Utilities for Managing the Reiser4 File System
License:        GPL-2.0
Group:          System/Filesystems
Url:            http://sf.net/projects/reiser4/

Source:         http://downloads.sf.net/reiser4/%name-%version.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  libaal-devel
BuildRequires:  libuuid-devel
BuildRequires:  readline-devel
BuildRequires:  xz
# There is a dull test which involes gcc -static
BuildRequires:  glibc-devel-static
BuildRequires:  libaal-devel-static

%description
A set of commands for using the Reiser4 file system, including
mkfs.reiser4.

%package -n libreiser4%lsuf
Summary:        Reiser4 filesystem library
Group:          System/Libraries

%description -n libreiser4%lsuf

%package -n libreiser4-minimal%lsuf
Summary:        Minimal version of the Reiser4 filesystem library
Group:          System/Libraries

%description -n libreiser4-minimal%lsuf
libreiser4-minimal is a variant of the Reiser4 filesystem library
that uses a reduced footprint and which has certain features disabled
(plugin check, FNV1 hash, Rupasov hash, TEA hash and DEG hash). The
maximum supported path length in -minimal is 256 instead of 1024.

In openSUSE, all tunable features remain of libreiser4-minimal enabled.

%package -n librepair%lsuf
Summary:        Repair library for the Reiser4 filesystem
Group:          System/Libraries

%description -n librepair%lsuf

%package devel
Summary:        Header C files and static libs for the Reiser4 File System tools
Group:          Development/Libraries/C and C++
Requires:       libreiser4%lsuf = %version
Requires:       libreiser4-minimal%lsuf = %version
Requires:       librepair%lsuf = %version

%description devel
A set of header C files and static libraries for the Reiser4 file
system tools.

%prep
%setup -q

%build
#
# Disabling hashes only affects minimal library. The options are
# a recommendation from reiser4progs's shipped .spec file.
#
%configure --disable-static --enable-libminimal --disable-fnv1-hash \
	--disable-rupasov-hash --disable-tea-hash --disable-deg-hash
make %{?_smp_mflags}

%install
# paralel install cause missing file
make install DESTDIR="%buildroot"
rm -f "%buildroot/%_libdir"/*.la

%post   -n libreiser4%lsuf -p /sbin/ldconfig
%postun -n libreiser4%lsuf -p /sbin/ldconfig
%post   -n libreiser4-minimal%lsuf -p /sbin/ldconfig
%postun -n libreiser4-minimal%lsuf -p /sbin/ldconfig
%post   -n librepair%lsuf -p /sbin/ldconfig
%postun -n librepair%lsuf -p /sbin/ldconfig

%files
%defattr(-,root,root)
%doc BUGS COPYING ChangeLog NEWS README TODO
%_mandir/man8/*
%_sbindir/*reiser4

%files -n libreiser4%lsuf
%defattr(-,root,root)
%_libdir/libreiser4-1.1.so.0*

%files -n libreiser4-minimal%lsuf
%defattr(-,root,root)
%_libdir/libreiser4-minimal-1.1.so.0*

%files -n librepair%lsuf
%defattr(-,root,root)
%_libdir/librepair-1.1.so.0*

%files devel
%defattr(-,root,root)
%_includedir/reiser4/
%_includedir/repair/
%_libdir/lib*.so
%_datadir/aclocal/

%changelog
openSUSE Build Service is sponsored by