# # spec file for package lockdev # # Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %bcond_with lockdev_debug Name: lockdev Version: 1.0.3_git201003141408 Release: 32.1 Summary: A library for locking devices License: LGPL-2.0-only Group: System/Base URL: https://packages.debian.org/unstable/source/lockdev #Source0: http://ftp.debian.org/debian/pool/main/l/lockdev/%{name}_%{version}.orig.tar.gz Source0: http://ftp.debian.org/debian/pool/main/l/lockdev/%{name}-%{version}.tar.bz2 Source21: tmpfiles-lockdev.conf Source90: baselibs.conf Patch0: lockdev-drop-baudboy.h.diff Patch1: lockdev-fix-implicit-declarations.diff Patch2: lockdev-reserve-some-space-to-avoid-buffer-overflow.diff Patch3: lockdev-pie.diff Patch4: sysmacros.patch Patch5: lockdev-debug.diff # BuildRequires: libtool BuildRequires: perl BuildRequires: pkgconfig BuildRequires: systemd-rpm-macros BuildRequires: perl(ExtUtils::MakeMaker) Requires(pre): permissions Requires(pre): group(lock) %description Lockdev provides a reliable way to put an exclusive lock to devices using both FSSTND and SVr4 methods. %package -n liblockdev1 Summary: The header files for the lockdev library Group: System/Base Requires: %{_sbindir}/lockdev Requires(post): glibc Requires(postun):glibc %description -n liblockdev1 Lockdev provides a reliable way to put an exclusive lock to devices using both FSSTND and SVr4 methods. %package devel Summary: A library for locking devices Group: Development/Libraries/C and C++ Requires: lockdev = %{version} Recommends: pkgconfig %description 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. %prep %autosetup -p1 %build cat > VERSION < - lock group is created by system-group-hardware * Mon Apr 27 2020 Ludwig Nussel - use sysusers mechanism to create lock group and tmpfiles for /{var/,}run (boo#1078466) - add lockdev-debug.diff * Wed Aug 1 2018 schwab@suse.de - sysmacros.patch: Include for major/minor * Tue Apr 4 2017 lnussel@suse.de - add bcond lockdev_debug to be able to build a package with debugging output * Thu Sep 25 2014 lnussel@suse.de - add baselibs.conf as source * Wed Sep 10 2014 lnussel@suse.de - pass --enable-helper to force use of setgid helper in order to be able to write /var/lock (bnc#896010) * Thu May 2 2013 crrodriguez@opensuse.org - Fix build with new automake * Mon Jan 23 2012 lnussel@suse.de - compile lockdev with -fPIE/-pie * Sun Nov 20 2011 coolo@suse.com - add libtool as buildrequire to avoid implicit dependency * Wed Jun 29 2011 lnussel@suse.de - make sure lockdev is linked against it's shared lib so the automatic deps are set correctly. * Tue Jun 28 2011 aj@suse.de - Fix require of devel package to require the library. * Wed Nov 24 2010 lnussel@suse.de - update permissions handling * Fri Apr 23 2010 lnussel@suse.de - remove baudboy.h - fix potential buffer overflow (bnc#588325) * Mon Mar 15 2010 lnussel@suse.de - update to 1.0.3_git201003141408 * Tue Mar 9 2010 lnussel@suse.de - enable permissions handling * Tue Mar 2 2010 lnussel@suse.de - update to 1.0.3_git201002271547 * Wed Feb 24 2010 lnussel@suse.de - more patches * Mon Feb 15 2010 lnussel@suse.de - initial package version 1.0.3 with patches