- create -static subpackage to ship static library separately

- update lockdev.8 manpage
This commit is contained in:
Jiří Popelka 2010-01-21 11:53:07 +00:00
parent 8a5413f167
commit 1e5d1a43e0
2 changed files with 26 additions and 6 deletions

View File

@ -4,7 +4,12 @@
.\" Man page written by Jiri Popelka <jpopelka AT redhat DOT com>
.\"
.SH NAME
\fBlockdev\fR demonstrates functionality of liblockdev library.
\fBLockdev\fR is a setgid binary,
which provides a reliable way to put an exclusive lock
in /var/lock to devices (e.g. ttyS0) using both FSSTND and SVr4 methods,
so regular users don't need write access there.
This task is achieved through calls to the liblockdev(3) API.
.SH SYNOPSIS
.B /usr/sbin/lockdev
@ -12,7 +17,7 @@
.RB < device >
.SH DESCRIPTION
The \fBlockdev\fR command can perform one of the following operations:
The \fBlockdev\fR command can perform one of the following operations (calls to liblockdev(3) API):
\fB-l\fR - lock device with \fBdev_lock()\fR function

View File

@ -1,7 +1,7 @@
Summary: A library for locking devices
Name: lockdev
Version: 1.0.3
Release: 3%{?dist}
Release: 4%{?dist}
License: LGPLv2
Group: System Environment/Libraries
URL: http://packages.debian.org/unstable/source/lockdev
@ -29,14 +29,22 @@ Lockdev provides a reliable way to put an exclusive lock to devices
using both FSSTND and SVr4 methods.
%package devel
Summary: The header files and a static library for the lockdev library.
Summary: The header files for the lockdev library.
Group: System Environment/Libraries
Requires: lockdev = %{version}-%{release}
%description devel
The lockdev library provides a reliable way to put an exclusive lock
on devices using both FSSTND and SVr4 methods. The lockdev-devel
package contains the development headers and a static library.
package contains the development headers.
%package static
Summary: Static library for lockdev
Group: Development/Libraries
Requires: %{name}-devel = %{version}-%{release}
%description static
This package contains the static version of the lockdev library.
%prep
%setup -q
@ -84,12 +92,19 @@ rm -fr $RPM_BUILD_ROOT
%files devel
%defattr(-,root,root)
%{_libdir}/*.a
%{_libdir}/*.so
%{_mandir}/man3/*
%{_includedir}/*
%files static
%defattr(-,root,root,-)
%{_libdir}/*.a
%changelog
* Thu Jan 21 2010 Jiri Popelka <jpopelka@redhat.com> - 1.0.3-4
- create -static subpackage to ship static library separately
- update lockdev.8 manpage
* Thu Dec 10 2009 Jiri Popelka <jpopelka@redhat.com> - 1.0.3-3
- Correct rh.patch