lockdev/lockdev.spec

105 lines
2.7 KiB
RPMSpec
Raw Normal View History

Summary: A library for locking devices.
Name: lockdev
Version: 1.0.0
Release: 14
Copyright: LGPL
Group: System Environment/Libraries
Source: ftp://ftp.debian.org/debian/dists/woody/main/source/libs/lockdev_1.0.0.tar.gz
Patch0: lockdev-1.0.0-rh.patch
Prereq: shadow-utils, filesystem >= 2.1.4-1
BuildRoot: %{_tmppath}/%{name}-root
%description
Lockdev provides a reliable way to put an exclusive lock to devices
using both FSSTND and SVr4 methods.
%package -n lockdev-devel
Summary: The header files and a static library for the lockdev library.
Group: System Environment/Libraries
Requires: lockdev = %{version}
%description -n lockdev-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.
%prep
%setup -q
%patch0 -p1 -b .rh
%build
make "CFLAGS=${RPM_OPT_FLAGS}"
%install
rm -fr $RPM_BUILD_ROOT
make \
sbindir=${RPM_BUILD_ROOT}%{_sbindir} \
libdir=${RPM_BUILD_ROOT}%{_libdir} \
incdir=${RPM_BUILD_ROOT}%{_includedir} \
mandir=${RPM_BUILD_ROOT}%{_mandir} \
install
mkdir -p $RPM_BUILD_ROOT/var/lock
%pre
groupadd -g 54 -r -f lock
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
rm -fr $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%attr(2755,root,lock) %{_sbindir}/lockdev
%dir %attr(775,root,lock) /var/lock
%{_libdir}/*so*
%files devel
%defattr(-,root,root)
%{_libdir}/*.a
%{_mandir}/man*/*
%{_includedir}/*
%changelog
* 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.
* Tue Aug 14 2001 Jeff Johnson <jbj@redhat.com>
- set exit status correctly.
* 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
* 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