diff --git a/lockdev.8 b/lockdev.8 index 1522c27..f2cd8d2 100644 --- a/lockdev.8 +++ b/lockdev.8 @@ -4,7 +4,12 @@ .\" Man page written by Jiri Popelka .\" .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 diff --git a/lockdev.spec b/lockdev.spec index 77a363c..46af9ed 100644 --- a/lockdev.spec +++ b/lockdev.spec @@ -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 - 1.0.3-4 +- create -static subpackage to ship static library separately +- update lockdev.8 manpage + * Thu Dec 10 2009 Jiri Popelka - 1.0.3-3 - Correct rh.patch