- create -static subpackage to ship static library separately
- update lockdev.8 manpage
This commit is contained in:
parent
8a5413f167
commit
1e5d1a43e0
@ -4,7 +4,12 @@
|
|||||||
.\" Man page written by Jiri Popelka <jpopelka AT redhat DOT com>
|
.\" Man page written by Jiri Popelka <jpopelka AT redhat DOT com>
|
||||||
.\"
|
.\"
|
||||||
.SH NAME
|
.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
|
.SH SYNOPSIS
|
||||||
.B /usr/sbin/lockdev
|
.B /usr/sbin/lockdev
|
||||||
@ -12,7 +17,7 @@
|
|||||||
.RB < device >
|
.RB < device >
|
||||||
|
|
||||||
.SH DESCRIPTION
|
.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
|
\fB-l\fR - lock device with \fBdev_lock()\fR function
|
||||||
|
|
||||||
|
23
lockdev.spec
23
lockdev.spec
@ -1,7 +1,7 @@
|
|||||||
Summary: A library for locking devices
|
Summary: A library for locking devices
|
||||||
Name: lockdev
|
Name: lockdev
|
||||||
Version: 1.0.3
|
Version: 1.0.3
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
License: LGPLv2
|
License: LGPLv2
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
URL: http://packages.debian.org/unstable/source/lockdev
|
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.
|
using both FSSTND and SVr4 methods.
|
||||||
|
|
||||||
%package devel
|
%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
|
Group: System Environment/Libraries
|
||||||
Requires: lockdev = %{version}-%{release}
|
Requires: lockdev = %{version}-%{release}
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
The lockdev library provides a reliable way to put an exclusive lock
|
The lockdev library provides a reliable way to put an exclusive lock
|
||||||
on devices using both FSSTND and SVr4 methods. The lockdev-devel
|
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
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
@ -84,12 +92,19 @@ rm -fr $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_libdir}/*.a
|
|
||||||
%{_libdir}/*.so
|
%{_libdir}/*.so
|
||||||
%{_mandir}/man3/*
|
%{_mandir}/man3/*
|
||||||
%{_includedir}/*
|
%{_includedir}/*
|
||||||
|
|
||||||
|
%files static
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%{_libdir}/*.a
|
||||||
|
|
||||||
%changelog
|
%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
|
* Thu Dec 10 2009 Jiri Popelka <jpopelka@redhat.com> - 1.0.3-3
|
||||||
- Correct rh.patch
|
- Correct rh.patch
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user