2004-09-09 07:58:29 +00:00
|
|
|
|
Summary: A library for locking devices.
|
2004-09-09 07:58:08 +00:00
|
|
|
|
Name: lockdev
|
|
|
|
|
Version: 1.0.0
|
2004-09-09 07:59:46 +00:00
|
|
|
|
Release: 20
|
2004-09-09 07:58:46 +00:00
|
|
|
|
License: LGPL
|
2004-09-09 07:58:29 +00:00
|
|
|
|
Group: System Environment/Libraries
|
2004-09-09 07:58:08 +00:00
|
|
|
|
Source: ftp://ftp.debian.org/debian/dists/woody/main/source/libs/lockdev_1.0.0.tar.gz
|
2004-09-09 07:58:29 +00:00
|
|
|
|
Patch0: lockdev-1.0.0-rh.patch
|
2004-09-09 07:59:07 +00:00
|
|
|
|
Patch1: lockdev-1.0.0-shared.patch
|
2004-09-09 07:59:43 +00:00
|
|
|
|
Patch2: lockdev-1.0.0-signal.patch
|
2004-09-09 07:58:29 +00:00
|
|
|
|
Prereq: shadow-utils, filesystem >= 2.1.4-1
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-root
|
2004-09-09 07:58:08 +00:00
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Lockdev provides a reliable way to put an exclusive lock to devices
|
2004-09-09 07:58:29 +00:00
|
|
|
|
using both FSSTND and SVr4 methods.
|
2004-09-09 07:58:20 +00:00
|
|
|
|
|
2004-09-09 07:59:07 +00:00
|
|
|
|
%package devel
|
2004-09-09 07:58:29 +00:00
|
|
|
|
Summary: The header files and a static library for the lockdev library.
|
|
|
|
|
Group: System Environment/Libraries
|
2004-09-09 07:59:07 +00:00
|
|
|
|
Requires: lockdev = %{version}-%{release}
|
2004-09-09 07:58:08 +00:00
|
|
|
|
|
2004-09-09 07:59:43 +00:00
|
|
|
|
%description devel
|
2004-09-09 07:58:29 +00:00
|
|
|
|
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.
|
2004-09-09 07:58:08 +00:00
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
2004-09-09 07:59:07 +00:00
|
|
|
|
%patch0 -p1 -b .redhat
|
|
|
|
|
%patch1 -p1 -b .shared
|
2004-09-09 07:59:43 +00:00
|
|
|
|
%patch2 -p1 -b .signal
|
2004-09-09 07:58:08 +00:00
|
|
|
|
|
|
|
|
|
%build
|
2004-09-09 07:58:46 +00:00
|
|
|
|
make "CFLAGS=${RPM_OPT_FLAGS} -fPIC"
|
2004-09-09 07:58:08 +00:00
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
rm -fr $RPM_BUILD_ROOT
|
2004-09-09 07:58:29 +00:00
|
|
|
|
make \
|
|
|
|
|
sbindir=${RPM_BUILD_ROOT}%{_sbindir} \
|
|
|
|
|
libdir=${RPM_BUILD_ROOT}%{_libdir} \
|
|
|
|
|
incdir=${RPM_BUILD_ROOT}%{_includedir} \
|
|
|
|
|
mandir=${RPM_BUILD_ROOT}%{_mandir} \
|
|
|
|
|
install
|
2004-09-09 07:58:08 +00:00
|
|
|
|
|
2004-09-09 07:58:29 +00:00
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/var/lock
|
|
|
|
|
|
|
|
|
|
%pre
|
|
|
|
|
groupadd -g 54 -r -f lock
|
2004-09-09 07:58:08 +00:00
|
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -fr $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root)
|
2004-09-09 07:58:29 +00:00
|
|
|
|
%attr(2755,root,lock) %{_sbindir}/lockdev
|
|
|
|
|
%dir %attr(775,root,lock) /var/lock
|
2004-09-09 07:59:07 +00:00
|
|
|
|
%{_libdir}/*.so.*
|
2004-09-09 07:58:08 +00:00
|
|
|
|
|
2004-09-09 07:58:29 +00:00
|
|
|
|
%files devel
|
2004-09-09 07:58:08 +00:00
|
|
|
|
%defattr(-,root,root)
|
2004-09-09 07:58:29 +00:00
|
|
|
|
%{_libdir}/*.a
|
2004-09-09 07:59:07 +00:00
|
|
|
|
%{_libdir}/*.so
|
2004-09-09 07:58:29 +00:00
|
|
|
|
%{_mandir}/man*/*
|
|
|
|
|
%{_includedir}/*
|
2004-09-09 07:58:08 +00:00
|
|
|
|
|
|
|
|
|
%changelog
|
2004-09-09 07:59:46 +00:00
|
|
|
|
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
|
|
|
|
|
- automated rebuild
|
|
|
|
|
|
2004-09-09 07:59:43 +00:00
|
|
|
|
* Wed Jun 5 2002 Jeff Johnson <jbj@redhat.com> 1.0.0-19
|
|
|
|
|
- fix: don't ignore signals, use default behavior instead (#63468).
|
|
|
|
|
|
|
|
|
|
* Thu May 23 2002 Tim Powers <timp@redhat.com>
|
|
|
|
|
- automated rebuild
|
|
|
|
|
|
2004-09-09 07:59:07 +00:00
|
|
|
|
* Mon Feb 25 2002 Nalin Dahyabhai <nalin@redhat.com> 1.0.0-16
|
|
|
|
|
- include liblockdev.so so that programs can link to a shared liblockdev
|
|
|
|
|
- fix shared library version numbers
|
|
|
|
|
|
2004-09-09 07:59:43 +00:00
|
|
|
|
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
|
|
|
|
|
- automated rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Nov 29 2001 Trond Eivind Glomsr<EFBFBD>d <teg@redhat.com> 1.0.0-16
|
|
|
|
|
- Rebuilt
|
|
|
|
|
|
2004-09-09 07:58:46 +00:00
|
|
|
|
* Fri Oct 26 2001 Trond Eivind Glomsr<EFBFBD>d <teg@redhat.com> 1.0.0-15
|
|
|
|
|
- Add copyright/license info to baudboy.h (#54321)
|
|
|
|
|
|
2004-09-09 07:58:35 +00:00
|
|
|
|
* Tue Sep 4 2001 Jeff Johnson <jbj@redhat.com>
|
|
|
|
|
- swap egid and gid for lockdev's access(2) device check (#52029).
|
|
|
|
|
|
|
|
|
|
* Tue Aug 28 2001 Jeff Johnson <jbj@redhat.com>
|
|
|
|
|
- typo in include file (#52704).
|
|
|
|
|
- map specific errno's into status for return from helper.
|
|
|
|
|
|
2004-09-09 07:58:33 +00:00
|
|
|
|
* Tue Aug 14 2001 Jeff Johnson <jbj@redhat.com>
|
|
|
|
|
- set exit status correctly.
|
|
|
|
|
|
2004-09-09 07:58:29 +00:00
|
|
|
|
* Thu Aug 9 2001 Bill Nottingham <notting@redhat.com>
|
|
|
|
|
- check that we can open the device r/w before locking
|
|
|
|
|
- fix calling lockdev without any arguments
|
|
|
|
|
- fix waitpid() call in baudboy.h
|
|
|
|
|
- use umask(002), not umask(0)
|
|
|
|
|
|
|
|
|
|
* Wed Aug 8 2001 Bill Nottingham <notting@redhat.com>
|
|
|
|
|
- add lock group here, own /var/lock as well
|
|
|
|
|
|
|
|
|
|
* Sun Aug 5 2001 Jeff Johnson <jbj@redhat.com>
|
|
|
|
|
- include setgid helper binary and baudboy.h.
|
|
|
|
|
|
|
|
|
|
* Mon Jun 18 2001 Trond Eivind Glomsr<EFBFBD>d <teg@redhat.com>
|
|
|
|
|
- Make the -devel depend on the main package
|
|
|
|
|
|
2004-09-09 07:58:08 +00:00
|
|
|
|
* Sun Aug 06 2000 Trond Eivind Glomsr<EFBFBD>d <teg@redhat.com>
|
|
|
|
|
- rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
|
|
|
|
|
- automatic rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Jun 17 2000 Bill Nottingham <notting@redhat.com>
|
|
|
|
|
- add %%defattr for -devel
|
|
|
|
|
|
|
|
|
|
* Sat Jun 10 2000 Trond Eivind Glomsr<EFBFBD>d <teg@redhat.com>
|
|
|
|
|
- use %%{_mandir}
|
|
|
|
|
|
|
|
|
|
* Thu May 04 2000 Trond Eivind Glomsr<EFBFBD>d <teg@redhat.com>
|
|
|
|
|
- first build
|