Blame SPECS/lockdev.spec

766433
# Where lock files are stored
766433
%global _lockdir /run/lock/lockdev
766433
766433
%global checkout 20111007git
766433
%global co_date  2011-10-07
766433
766433
#http://lists.fedoraproject.org/pipermail/devel/2011-August/155358.html
766433
%global _hardened_build 1
766433
766433
Summary: A library for locking devices
766433
Name: lockdev
766433
Version: 1.0.4
766433
Release: 0.28.%{checkout}%{?dist}
766433
License: LGPLv2
766433
Group: System Environment/Libraries
766433
URL: https://alioth.debian.org/projects/lockdev/
766433
766433
# This is a nightly snapshot downloaded via
766433
# https://alioth.debian.org/snapshots.php?group_id=100443
766433
Source0: lockdev-%{version}.%{checkout}.tar.gz
766433
766433
Patch1: lockdev-euidaccess.patch
766433
Patch2: 0001-major-and-minor-functions-moved-to-sysmacros.h.patch
766433
Patch3: 0001-Fix-manpages-NAME-section.patch
766433
766433
Requires(pre): shadow-utils
766433
Requires(post): glibc
766433
Requires(postun): glibc
766433
Requires: systemd
766433
766433
BuildRequires: autoconf
766433
BuildRequires: automake
766433
BuildRequires: libtool
766433
BuildRequires: perl-interpreter
766433
BuildRequires: perl(ExtUtils::MakeMaker)
766433
BuildRequires: systemd
766433
766433
%description
766433
Lockdev provides a reliable way to put an exclusive lock to devices
766433
using both FSSTND and SVr4 methods.
766433
766433
%package devel
766433
Summary: The header files for the lockdev library
766433
Group: System Environment/Libraries
766433
Requires: lockdev = %{version}-%{release}
766433
766433
%description devel
766433
The lockdev library provides a reliable way to put an exclusive lock
766433
on devices using both FSSTND and SVr4 methods. The lockdev-devel
766433
package contains the development headers.
766433
766433
766433
%prep
766433
%setup -q -n lockdev-scm-%{co_date}
766433
766433
# Replace access() calls with euidaccess() (600636#c33)
766433
%patch1 -p1 -b .access
766433
%patch2 -p1
766433
%patch3 -p1
766433
766433
%build
766433
# Generate version information from git release tag
766433
./scripts/git-version > VERSION
766433
766433
# To satisfy automake
766433
touch ChangeLog
766433
766433
# Bootstrap autotools
766433
autoreconf --verbose --force --install
766433
766433
CFLAGS="%{optflags} -D_PATH_LOCK=\\\"%{_lockdir}\\\"" \
766433
%configure --disable-static --enable-helper --disable-silent-rules
766433
766433
make %{?_smp_mflags}
766433
766433
%install
766433
make install DESTDIR=%{buildroot}
766433
766433
rm -f %{buildroot}%{_libdir}/*.la
766433
766433
# %%ghosted, but needs to be in buildroot
766433
# on reboot re-created by %%{_prefix}/lib/tmpfiles.d/legacy.conf
766433
mkdir -p %{buildroot}%{_lockdir}
766433
766433
# install /usr/lib/tmpfiles.d/lockdev.conf (#1324184)
766433
mkdir -p ${RPM_BUILD_ROOT}%{_tmpfilesdir}
766433
cat > ${RPM_BUILD_ROOT}%{_tmpfilesdir}/lockdev.conf <
766433
# See tmpfiles.d(5) for details
766433
766433
d %{_lockdir} 0775 root lock -
766433
EOF
766433
766433
%pre
766433
getent group lock >/dev/null 2>&1 || groupadd -g 54 -r -f lock >/dev/null 2>&1 || :
766433
766433
%post
766433
/sbin/ldconfig
766433
if [ $1 -eq 1 ] ; then
766433
# for the time until first reboot
766433
%tmpfiles_create
766433
fi
766433
766433
%postun -p /sbin/ldconfig
766433
766433
766433
%files
766433
%{license} COPYING
766433
%doc AUTHORS
766433
%ghost %dir %attr(0775,root,lock) %{_lockdir}
766433
%attr(2711,root,lock)  %{_sbindir}/lockdev
766433
%{_tmpfilesdir}/lockdev.conf
766433
%{_libdir}/*.so.*
766433
%{_mandir}/man8/*
766433
766433
%files devel
766433
%{_libdir}/*.so
766433
%{_libdir}/pkgconfig/lockdev.pc
766433
%{_mandir}/man3/*
766433
%{_includedir}/*
766433
766433
%changelog
766433
* Mon Aug 06 2018 Sebastian Kisela <skisela@redhat.com> - 1.0.4-0.28.
766433
- Fix man page wording to pass errors detected by lexgrog.
766433
Fixes: 1612764
766433
766433
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-0.27.20111007git
766433
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
766433
- Explicitly include <sys/sysmacros.h> due to glibc-headers changes.
766433
Definition of major and minor macros is no longer transitively included
766433
through <sys/types.h>, hence make it explicit.
766433
Ref:
766433
https://sourceware.org/git/?p=glibc.git;a=blob_plain;f=NEWS;hb=HEAD
766433
766433
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-0.26.20111007git
766433
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
766433
766433
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-0.25.20111007git
766433
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
766433
766433
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-0.24.20111007git
766433
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
766433
766433
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-0.23.20111007git
766433
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
766433
766433
* Wed Apr 06 2016 Jiri Popelka <jpopelka@redhat.com> - 1.0.4-0.22.20111007git
766433
- /run/lock/lockdev no longer created by systemd (#1324184)
766433
766433
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-0.21.20111007git
766433
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
766433
766433
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.4-0.20.20111007git
766433
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
766433
766433
* Mon Nov 03 2014 Jiri Popelka <jpopelka@redhat.com> - 1.0.4-0.19.20111007git
766433
- change _lockdir from /var/lock/lockdev to /run/lock/lockdev
766433
766433
* Thu Sep 18 2014 Jiri Popelka <jpopelka@redhat.com> - 1.0.4-0.18.20111007git
766433
- better euidaccess.patch from Paolo Bonzini (#600636#c33)
766433
766433
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.4-0.17.20111007git
766433
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
766433
766433
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.4-0.16.20111007git
766433
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
766433
766433
* Sat Dec 21 2013 Ville Skyttä <ville.skytta@iki.fi> - 1.0.4-0.15.20111007git
766433
- BuildRequire systemd for %%tmpfiles_create.
766433
766433
* Thu Dec 05 2013 Jiri Popelka <jpopelka@redhat.com> - 1.0.4-0.14.20111007git
766433
- Define _GNU_SOURCE in lockdev.c
766433
766433
* Thu Nov 28 2013 Jiri Popelka <jpopelka@redhat.com> - 1.0.4-0.13.20111007git
766433
- revert previous change and use %%tmpfiles_create in %%post
766433
766433
* Wed Nov 27 2013 Jiri Popelka <jpopelka@redhat.com> - 1.0.4-0.12.20111007git
766433
- do not %%ghost /var/lock/lockdev (https://fedorahosted.org/fesco/ticket/525)
766433
766433
* Mon Aug 26 2013 Jiri Popelka <jpopelka@redhat.com> - 1.0.4-0.11.20111007git
766433
- Remove the %%post scriptlet completely (#983772)
766433
766433
* Mon Aug 26 2013 Jiri Popelka <jpopelka@redhat.com> - 1.0.4-0.10.20111007git
766433
- Silence possible %%post scriptlet errors (#983772)
766433
766433
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.4-0.9.20111007git
766433
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
766433
766433
* Fri Jul 12 2013 Jiri Popelka <jpopelka@redhat.com> - 1.0.4-0.8.20111007git
766433
- %%{_lockdir} is %%ghost-ed (#983772)
766433
766433
* Mon Jun 03 2013 Jiri Popelka <jpopelka@redhat.com> - 1.0.4-0.7.20111007git
766433
- Replace access() calls with euidaccess(), build with -D_GNU_SOURCE (600636#c9)
766433
766433
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.4-0.6.20111007git
766433
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
766433
766433
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.4-0.5.20111007git
766433
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
766433
766433
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.4-0.4.20111007git
766433
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
766433
766433
* Thu Oct 20 2011 Jiri Popelka <jpopelka@redhat.com> - 1.0.4-0.3.20111007git
766433
- Define _hardened_build
766433
766433
* Wed Oct 19 2011 Jiri Popelka <jpopelka@redhat.com> - 1.0.4-0.2.20111007git
766433
- Fixed URL
766433
- Removed unused patches
766433
766433
* Fri Oct 07 2011 Jiri Popelka <jpopelka@redhat.com> - 1.0.4-0.1.20111007git
766433
- pre 1.0.4 nightly snapshot
766433
766433
* Mon Apr 04 2011 Jiri Popelka <jpopelka@redhat.com> - 1.0.3-10
766433
- Revert previous change (#681898)
766433
- /etc/tmpfiles.d/lockdev.conf moved into systemd upstream (#692714)
766433
766433
* Thu Mar 03 2011 Jan Görig <jgorig@redhat.com> - 1.0.3-9
766433
- Change /var/lock/lockdev permissions to 1777 (#681898)
766433
766433
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-8
766433
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
766433
766433
* Thu Nov 25 2010 Jiri Popelka <jpopelka@redhat.com> - 1.0.3-7
766433
- Fixed some rpmlint warnings
766433
766433
* Thu Nov 25 2010 Jiri Popelka <jpopelka@redhat.com> - 1.0.3-6
766433
- Added /etc/tmpfiles.d/lockdev.conf to enable lock directory on tmpfs (#656614)
766433
- Don't ship static library at all
766433
766433
* Mon Apr 19 2010 Jiri Popelka <jpopelka@redhat.com> - 1.0.3-5
766433
- Changed directory for lock files from /var/lock to /var/lock/lockdev (#581884)
766433
766433
* Thu Jan 21 2010 Jiri Popelka <jpopelka@redhat.com> - 1.0.3-4
766433
- Created -static subpackage to ship static library separately
766433
- Updated lockdev.8 manpage
766433
766433
* Thu Dec 10 2009 Jiri Popelka <jpopelka@redhat.com> - 1.0.3-3
766433
- Correct rh.patch
766433
766433
* Thu Dec 10 2009 Jiri Popelka <jpopelka@redhat.com> - 1.0.3-2
766433
- Correct rh.patch
766433
766433
* Mon Dec 07 2009 Jiri Popelka <jpopelka@redhat.com> - 1.0.3-1
766433
- 1.0.3.  No longer need 1.0.0-signal, 1.0.1-subdir, 1.0.1-fcntl, 1.0.1-32bit patches.
766433
- Renumbered patches and sources.
766433
766433
* Thu Dec 03 2009 Jiri Popelka <jpopelka@redhat.com> - 1.0.1-20
766433
- Fixed pre section (http://fedoraproject.org/wiki/Packaging/UsersAndGroups)
766433
- Added back Buildroot to silence rpmlint's false positive
766433
766433
* Tue Dec 01 2009 Jiri Popelka <jpopelka@redhat.com> - 1.0.1-19
766433
- Added license text to package
766433
766433
* Fri Oct 02 2009 Jiri Popelka <jpopelka@redhat.com> - 1.0.1-18
766433
- Fixed mixed-use-of-spaces-and-tabs
766433
766433
* Fri Oct 02 2009 Jiri Popelka <jpopelka@redhat.com> - 1.0.1-17
766433
- Removed PreReq tag
766433
766433
* Fri Sep 25 2009 Jiri Popelka <jpopelka@redhat.com> - 1.0.1-16
766433
- Manual page for /usr/sbin/lockdev
766433
766433
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-15
766433
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
766433
766433
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-14
766433
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
766433
766433
* Mon Oct  6 2008 Karel Zak <kzak@redhat.com> - 1.0.1-13
766433
- refresh patches (due --fuzz=0)
766433
- fix compiler warnings
766433
766433
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.0.1-12.1
766433
- Autorebuild for GCC 4.3
766433
766433
* Mon Oct 15 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 1.0.1-11.1
766433
- correct license tag
766433
- add BR: perl(ExtUtils::MakeMaker)
766433
766433
* Thu Apr 12 2007 Karel Zak <kzak@redhat.com> - 1.0.1-11
766433
- fix rpmlint issues
766433
- change lockdev permissions from 2755 to 2711
766433
766433
* Wed Jul 19 2006 Karel Zak <kzak@redhat.com> - 1.0.1-10
766433
- rebuild
766433
766433
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.0.1-9.2.2
766433
- rebuild
766433
766433
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.0.1-9.2.1
766433
- bump again for double-long bug on ppc(64)
766433
766433
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.0.1-9.2
766433
- rebuilt for new gcc4.1 snapshot and glibc changes
766433
766433
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
766433
- rebuilt
766433
766433
* Wed Sep 21 2005 Karel Zak <kzak@redhat.com> 1.0.1-9
766433
- fix #165189 - The naming of the lock file by the lockdev command is abnormal.
766433
766433
* Thu Sep  1 2005 Karel Zak <kzak@redhat.com> 1.0.1-8
766433
- fix #163276 - baudboy.h should include fcntl.h
766433
766433
* Sat Mar  5 2005 Karel Zak <kzak@redhat.com> 1.0.1-6
766433
- rebuilt
766433
766433
* Wed Feb 23 2005 Karel Zak <kzak@redhat.com> 1.0.1-5
766433
- lockdev errs on /dev/input/ttyACM0 (3-component pathname) (#126082, #98160, #74454)
766433
766433
* Fri Oct 22 2004 Adrian Havill <havill@redhat.com> 1.0.1-4
766433
- don't unlock files if pid still exists (#128104)
766433
766433
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
766433
- rebuilt
766433
766433
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
766433
- rebuilt
766433
766433
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
766433
- rebuilt
766433
766433
* Tue Sep  9 2003 Nalin Dahyabhai <nalin@redhat.com> 1.0.1-1.3
766433
- rebuild
766433
766433
* Mon Sep  8 2003 Nalin Dahyabhai <nalin@redhat.com> 1.0.1-1.2
766433
- rebuild
766433
766433
* Wed Aug 20 2003 Adrian Havill <havill@redhat.com> 1.0.1-1.1
766433
- bump n-v-r for 3.0E
766433
766433
* Fri Aug 15 2003 Adrian Havill <havill@redhat.com> 1.0.1-1
766433
- bumped version
766433
- make the dev rewrite work with ttys in the /dev/input subdir, not just
766433
  the base level dir (#98160)
766433
766433
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
766433
- rebuilt
766433
766433
* Tue Feb 04 2003 Florian La Roche <Florian.LaRoche@redhat.de>
766433
- add symlink to shared lib
766433
766433
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
766433
- rebuilt
766433
766433
* Fri Nov 29 2002 Jeff Johnson <jbj@redhat.com>
766433
- don't segfault if device arg is missing.
766433
766433
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
766433
- automated rebuild
766433
766433
* Wed Jun  5 2002 Jeff Johnson <jbj@redhat.com> 1.0.0-19
766433
- fix: don't ignore signals, use default behavior instead (#63468).
766433
766433
* Thu May 23 2002 Tim Powers <timp@redhat.com>
766433
- automated rebuild
766433
766433
* Mon Feb 25 2002 Nalin Dahyabhai <nalin@redhat.com> 1.0.0-16
766433
- include liblockdev.so so that programs can link to a shared liblockdev
766433
- fix shared library version numbers
766433
766433
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
766433
- automated rebuild
766433
766433
* Thu Nov 29 2001 Trond Eivind Glomsrod <teg@redhat.com> 1.0.0-16
766433
- Rebuilt
766433
766433
* Fri Oct 26 2001 Trond Eivind Glomsrod <teg@redhat.com> 1.0.0-15
766433
- Add copyright/license info to baudboy.h (#54321)
766433
766433
* Tue Sep  4 2001 Jeff Johnson <jbj@redhat.com>
766433
- swap egid and gid for lockdev's access(2) device check (#52029).
766433
766433
* Tue Aug 28 2001 Jeff Johnson <jbj@redhat.com>
766433
- typo in include file (#52704).
766433
- map specific errno's into status for return from helper.
766433
766433
* Tue Aug 14 2001 Jeff Johnson <jbj@redhat.com>
766433
- set exit status correctly.
766433
766433
* Thu Aug  9 2001 Bill Nottingham <notting@redhat.com>
766433
- check that we can open the device r/w before locking
766433
- fix calling lockdev without any arguments
766433
- fix waitpid() call in baudboy.h
766433
- use umask(002), not umask(0)
766433
766433
* Wed Aug  8 2001 Bill Nottingham <notting@redhat.com>
766433
- add lock group here, own /var/lock as well
766433
766433
* Sun Aug  5 2001 Jeff Johnson <jbj@redhat.com>
766433
- include setgid helper binary and baudboy.h.
766433
766433
* Mon Jun 18 2001 Trond Eivind Glomsrod <teg@redhat.com>
766433
- Make the -devel depend on the main package
766433
766433
* Sun Aug 06 2000 Trond Eivind Glomsrod <teg@redhat.com>
766433
- rebuild
766433
766433
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
766433
- automatic rebuild
766433
766433
* Sat Jun 17 2000 Bill Nottingham <notting@redhat.com>
766433
- add %%defattr for -devel
766433
766433
* Sat Jun 10 2000 Trond Eivind Glomsrod <teg@redhat.com>
766433
- use %%{_mandir}
766433
766433
* Thu May 04 2000 Trond Eivind Glomsrod <teg@redhat.com>
766433
- first build