File libreiserfs.spec of Package libreiserfs
#
# spec file for package libreiserfs (Version 0.3.0.5)
#
# Copyright (c) 2010 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: 145
License: GPLv2+
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
Source2: baselibs.conf
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: GPLv2+
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: GPLv2+
Summary: ReiserFS Filesystem Access Tools
Group: Development/Libraries/C and C++
Requires: %name = %version glibc-devel
%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 --disable-static --enable-shared
make %{?jobs:-j %jobs}
#make check
%install
%makeinstall
%{__rm} -f %{buildroot}%{_libdir}/*.la
%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.so
%{_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