File liblockmap1.spec of Package liblockmap1
#
# spec file for package liblockmap1 (Version 1.0)
#
# 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: liblockmap1
BuildRequires: automake gcc glibc-devel
Summary: Library for mapping POSIX locks to BSD locks on OCFS2
Version: 1.1
Release: 0.8
License: GPL v2 or later
AutoReqprov: on
Group: System/Filesystems
Source: %{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Library for mapping POSIX locks to BSD locks on OCFS2
OCFS2 v1.4 supports BSD (flock) locks, but not POSIX (fcntl/lockf) locks.
On applications developed to lock over NFS, the latter type is expected.
This package contains a utility and a library for translating POSIX locking
calls to BSD locking calls. Since the BSD locking API is a subset of the POSIX
locking API, some features are unavailable. Most notably, callers are
unable to query the status of existing locks.
Authors:
--------
SUSE Linux Products GmbH
%package devel
Summary: Development files for liblockmap
Group: Development/System/Filesystems
AutoReqprov: on
Requires: liblockmap1 = %{version} glibc-devel
%description devel
Development files for liblockmap. You probably don't need this.
%package -n lockmap
Summary: Utility wrapper for using liblockmap automatically
Group: System/Filesystems
AutoReqprov: on
Requires: liblockmap1 = %{version}
%description -n lockmap
Utility wrapper for using liblockmap automatically.
You can use this wrapper in front of any program to map its POSIX locking
calls to BSD locking calls.
%debug_package
%prep
%setup
%build
autoreconf -fi
%configure
make
%install
make install DESTDIR=${RPM_BUILD_ROOT}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc README
%_libdir/liblockmap.so.*
%files devel
%defattr(-,root,root)
%_libdir/liblockmap.la
%_libdir/liblockmap.a
%_libdir/liblockmap.so
%files -n lockmap
%defattr(-,root,root)
%_sbindir/lockmap
%_mandir/man8/lockmap.*
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%changelog