File libreiserfs.spec of Package libreiserfs

#
# spec file for package libreiserfs (Version 0.3.0.5)
#
# Copyright (c) 2009 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:           libreiserfs
Url:            http://reiserfs.linux.kiev.ua
Version:        0.3.0.5
Release:        142
License:        GPL v2 or later
Group:          System/Libraries
PreReq:         %install_info_prereq
AutoReqProv:    on
Summary:        ReiserFS File System Access Library
Source:         http://ftp.roedu.net/pub/mirrors/ftp.namesys.com/pub/libreiserfs/progsreiserfs-%{version}.tar.bz2
Source1:        series
Patch1:         reiserfs-strict-aliasing.diff
Patch2:         reiserfs-fix-warn.diff
Patch3:         reiserfs-dal-64bit.diff
Patch4:         libreiserfs-autoconf-fixups
Patch5:         libreiserfs-devel-fix
Prefix:         /usr
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This is a library for reiserfs file system access and manipulation. The
primary goal is to develop the nice, full functionality library that
can be linked to any projects that needed reiserfs file system access.
These include GNU Parted, GNU GRUB, Yaboot, Partimage, and EVMS.

The second goal is high maintainability source code.

The third goal is to develop an alternative set of the reiserfs
programs as small and nice front-ends to this library.

libreiserfs has a number of high level APIs for accessing reiserfs file
systems. There are main file system code (reiserfs_fs_open,
reiserfs_fs_close, reiserfs_fs_create, reiserfs_fs_resize,
reiserfs_fs_journal_tune, etc), journal code, bitmap code, directories
and files access code, and device abstraction layer.

progsreiserfs supports versions 3.5 and 3.6 with standard and relocated
journal. It also supports all possible block sizes supported by the
kernel (2.4.18 with patches or 2.4.19).

The project home page is http://reiserfs.linux.kiev.ua/.



Authors:
--------
    Yury Umanets <torque@ukrpost.net>
    Andrew Clausen <clausen@gnu.org>

%package progs
License:        GPL v2 or later
Summary:        ReiserFS Filesystem Access Tools
Group:          System/Filesystems
Conflicts:      reiserfs

%description progs
This is a library for reiserfs filesystem access and manipulation. The
primary goal is to develop the nice, full functionality library wich
might be linked against any projects which needed reiserfs filesystem
access. There are GNU Parted, GNU GRUB, Yaboot, Partimage, EVMS, etc.

The second goal is high maintainability source code.

The third goal is to develop an alternative set of the reiserfsprogs as
small and nice frontends to this library.

This package contains four programs that are simple frontends to
libreiserfs. There are: mkfs.reiserfs, resizefs.reiserfs,
cpfs.reiserfs, tunefs.reiserfs

progsreiserfs supports versions 3.5, 3.6 with standard and relocated
journal. Also all possible blocksizes which supported by kernel (2.4.18
with patches or 2.4.19)

The project homepage is http://reiserfs.linux.kiev.ua



Authors:
--------
    Yury Umanets <torque@ukrpost.net>
    Andrew Clausen <clausen@gnu.org>

%package devel
License:        GPL v2 or later
Summary:        ReiserFS Filesystem Access Tools
Group:          Development/Libraries/C and C++
Requires:       %name = %version

%description devel
This is a library for reiserfs filesystem access and manipulation. The
primary goal is to develop the nice, full functionality library wich
might be linked against any projects which needed reiserfs filesystem
access. There are GNU Parted, GNU GRUB, Yaboot, Partimage, EVMS, etc.

The second goal is high maintainability source code.

The third goal is to develop an alternative set of the reiserfsprogs as
small and nice frontends to this library.

This package contains four programs that are simple frontends to
libreiserfs. There are: mkfs.reiserfs, resizefs.reiserfs,
cpfs.reiserfs, tunefs.reiserfs

progsreiserfs supports versions 3.5, 3.6 with standard and relocated
journal. Also all possible blocksizes which supported by kernel (2.4.18
with patches or 2.4.19)

The project homepage is http://reiserfs.linux.kiev.ua



Authors:
--------
    Yury Umanets <torque@ukrpost.net>
    Andrew Clausen <clausen@gnu.org>

%prep
%setup -n progsreiserfs-%{version}
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
cp /usr/share/gettext/config.rpath .
libtoolize --force
autoreconf

%build
export CFLAGS="$RPM_OPT_FLAGS"
#CFLAGS+=--with-capabilities
%configure --enable-shared
make %{?jobs:-j %jobs}
#make check

%install
%makeinstall

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%{_libdir}/libdal-*.so.*
%{_libdir}/libreiserfs-*.so.*
%{_mandir}/man8/reiserfs.8.gz

%files devel
%defattr(-,root,root)
%dir /usr/include/dal
%dir /usr/include/reiserfs
/usr/include/dal/*.h
/usr/include/reiserfs/*.h
%{_libdir}/libdal.a
%{_libdir}/libdal.la
%{_libdir}/libdal.so
%{_libdir}/libreiserfs.a
%{_libdir}/libreiserfs.la
%{_libdir}/libreiserfs.so
/usr/share/aclocal/progsreiserfs.m4

%files progs
%defattr(-,root,root)
/usr/sbin/cpfs.reiserfs
/usr/sbin/mkfs.reiserfs
/usr/sbin/resizefs.reiserfs
/usr/sbin/tunefs.reiserfs
%{_mandir}/man8/cpfs.reiserfs.8.gz
%{_mandir}/man8/mkfs.reiserfs.8.gz
%{_mandir}/man8/resizefs.reiserfs.8.gz
%{_mandir}/man8/tunefs.reiserfs.8.gz

%clean
test ! -z "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != "/" && rm -rf $RPM_BUILD_ROOT
rm -rf $RPM_BUILD_DIR/progsreiserfs-%{pversion}

%changelog
* Wed Feb 11 2009 jeffm@suse.de
- Fixed underquoted AC_CHECK_LIBREISERFS (bnc#458369)
* Thu Apr 10 2008 ro@suse.de
- added baselibs.conf file to build xxbit packages
  for multilib support
* Fri Feb 29 2008 dmueller@suse.de
- various rpmlint fixes
* Sun Oct 15 2006 schwab@suse.de
- Make sure config.rpath is present.
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Jan 12 2006 kukuk@suse.de
- Correct last fix for Bug [#140302]
- Create -devel subpackage
* Wed Dec 21 2005 mmj@suse.de
- This package conflicts with reiserfs
* Mon Dec 19 2005 garloff@suse.de
- Fix strict-aliasing issues.
- Fix some more compiler warnings.
* Mon Sep 05 2005 garloff@suse.de
- Initial creation of package (0.3.0.5).
- Use .so as extension for shared libs.
openSUSE Build Service is sponsored by