File libreiserfs.spec of Package libreiserfs
#
# spec file for package libreiserfs (Version 0.3.0.5)
#
# 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: libreiserfs
Url: http://reiserfs.linux.kiev.ua
Version: 0.3.0.5
Release: 107
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
Patch1: reiserfs-strict-aliasing.diff
Patch2: reiserfs-fix-warn.diff
Patch3: reiserfs-dal-64bit.diff
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
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
* Thu Apr 10 2008 ro@suse.de
- added baselibs.conf file to build xxbit packages
for multilib support
* Sat Mar 01 2008 dmueller@suse.de
- various rpmlint fixes
* Mon Oct 16 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.