- Change directory for lock files from /var/lock to /var/lock/lockdev
(#581884)
This commit is contained in:
parent
1e5d1a43e0
commit
2fd65348ba
10
lockdev.spec
10
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: 4%{?dist}
|
Release: 5%{?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
|
||||||
@ -59,7 +59,7 @@ This package contains the static version of the lockdev library.
|
|||||||
cp %SOURCE1 ./docs
|
cp %SOURCE1 ./docs
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make "CFLAGS=${RPM_OPT_FLAGS} -fPIC"
|
make "CFLAGS=${RPM_OPT_FLAGS} -fPIC -D_PATH_LOCK=\\\"/var/lock/lockdev\\\""
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -fr $RPM_BUILD_ROOT
|
rm -fr $RPM_BUILD_ROOT
|
||||||
@ -71,7 +71,7 @@ make \
|
|||||||
install
|
install
|
||||||
/sbin/ldconfig -n $RPM_BUILD_ROOT/%{_libdir}
|
/sbin/ldconfig -n $RPM_BUILD_ROOT/%{_libdir}
|
||||||
|
|
||||||
mkdir -p $RPM_BUILD_ROOT/var/lock
|
mkdir -p $RPM_BUILD_ROOT/var/lock/lockdev
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
getent group lock >/dev/null || groupadd -g 54 -r -f lock
|
getent group lock >/dev/null || groupadd -g 54 -r -f lock
|
||||||
@ -86,6 +86,7 @@ rm -fr $RPM_BUILD_ROOT
|
|||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc LICENSE AUTHORS ChangeLog ChangeLog.old
|
%doc LICENSE AUTHORS ChangeLog ChangeLog.old
|
||||||
|
%dir %attr(0775,root,lock) /var/lock/lockdev
|
||||||
%attr(2711,root,lock) %{_sbindir}/lockdev
|
%attr(2711,root,lock) %{_sbindir}/lockdev
|
||||||
%{_libdir}/*.so.*
|
%{_libdir}/*.so.*
|
||||||
%{_mandir}/man8/*
|
%{_mandir}/man8/*
|
||||||
@ -101,6 +102,9 @@ rm -fr $RPM_BUILD_ROOT
|
|||||||
%{_libdir}/*.a
|
%{_libdir}/*.a
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Apr 19 2010 Jiri Popelka <jpopelka@redhat.com> - 1.0.3-5
|
||||||
|
- Change directory for lock files from /var/lock to /var/lock/lockdev (#581884)
|
||||||
|
|
||||||
* Thu Jan 21 2010 Jiri Popelka <jpopelka@redhat.com> - 1.0.3-4
|
* Thu Jan 21 2010 Jiri Popelka <jpopelka@redhat.com> - 1.0.3-4
|
||||||
- create -static subpackage to ship static library separately
|
- create -static subpackage to ship static library separately
|
||||||
- update lockdev.8 manpage
|
- update lockdev.8 manpage
|
||||||
|
Loading…
Reference in New Issue
Block a user