2007-01-15 23:24:17 +00:00
|
|
|
#
|
2011-01-14 01:52:19 +00:00
|
|
|
# spec file for package lsof
|
2007-01-15 23:24:17 +00:00
|
|
|
#
|
2024-05-17 07:37:37 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2007-01-15 23:24:17 +00:00
|
|
|
#
|
2008-08-21 22:42:41 +00:00
|
|
|
# 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.
|
|
|
|
|
|
2019-04-15 12:16:20 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-15 23:24:17 +00:00
|
|
|
#
|
|
|
|
|
|
2008-04-22 23:42:07 +00:00
|
|
|
|
2023-11-14 02:59:17 +00:00
|
|
|
%define sover 0
|
2007-01-15 23:24:17 +00:00
|
|
|
Name: lsof
|
2023-12-21 13:39:08 +00:00
|
|
|
Version: 4.99.3
|
2015-03-02 09:32:08 +00:00
|
|
|
Release: 0
|
2016-05-03 06:30:39 +00:00
|
|
|
Summary: A Program That Lists Information about Files Opened by Processes
|
2012-03-27 04:38:52 +00:00
|
|
|
License: Zlib
|
2016-05-03 06:30:39 +00:00
|
|
|
Group: System/Monitoring
|
2020-10-19 08:02:12 +00:00
|
|
|
URL: https://github.com/lsof-org/lsof
|
2023-12-21 13:39:08 +00:00
|
|
|
Source: https://github.com/lsof-org/lsof/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
|
|
|
Patch0: lsof-4.99.3-fix-version-in-configure-ac.patch
|
2024-05-17 07:37:37 +00:00
|
|
|
Patch1: 0001-tests-eliminate-use-of-fgrep.patch
|
2024-05-17 15:18:39 +00:00
|
|
|
Patch2: 0002-linux-Maintain-original-output-for-pidfd-in-linux-6..patch
|
2023-12-21 13:39:08 +00:00
|
|
|
BuildRequires: autoconf
|
|
|
|
|
BuildRequires: automake
|
2022-10-31 13:46:07 +00:00
|
|
|
BuildRequires: groff
|
2023-12-21 13:39:08 +00:00
|
|
|
BuildRequires: libtool
|
2022-10-31 13:46:07 +00:00
|
|
|
BuildRequires: pkgconfig
|
|
|
|
|
BuildRequires: pkgconfig(libselinux)
|
2023-11-14 02:59:17 +00:00
|
|
|
BuildRequires: pkgconfig(libtirpc)
|
2007-01-15 23:24:17 +00:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Lsof lists information about files opened by processes. An open file
|
|
|
|
|
may be a regular file, a directory, a block special file, a character
|
|
|
|
|
special file, an executing text reference, a library, a stream, or a
|
|
|
|
|
network file (Internet socket, NFS file, or UNIX domain socket.) A
|
|
|
|
|
specific file or all the files in a file system may be selected by
|
|
|
|
|
path.
|
|
|
|
|
|
2023-11-14 02:59:17 +00:00
|
|
|
%package -n liblsof%{sover}
|
|
|
|
|
Summary: Library for listing information about files opened by process
|
|
|
|
|
|
|
|
|
|
%description -n liblsof%{sover}
|
|
|
|
|
This package contains a library for listing information about files opened by process.
|
|
|
|
|
It allows accessing the functionality of the lsof command from C functions without
|
|
|
|
|
spawning a subprocess.
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Library for listing information about files opened by process
|
|
|
|
|
Requires: liblsof%{sover} = %{version}
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
This package contains a library for listing information about files opened by process.
|
|
|
|
|
It allows accessing the functionality of the lsof command from C functions without
|
|
|
|
|
spawning a subprocess.
|
|
|
|
|
|
|
|
|
|
This package contains the files required to build with liblsof.
|
|
|
|
|
|
2007-01-15 23:24:17 +00:00
|
|
|
%prep
|
2022-10-31 13:46:07 +00:00
|
|
|
%autosetup -p1
|
2007-01-15 23:24:17 +00:00
|
|
|
|
|
|
|
|
%build
|
2023-12-21 13:39:08 +00:00
|
|
|
autoreconf -fiv
|
2023-11-14 02:59:17 +00:00
|
|
|
%configure
|
|
|
|
|
%make_build
|
2007-01-15 23:24:17 +00:00
|
|
|
|
|
|
|
|
%install
|
2023-11-14 02:59:17 +00:00
|
|
|
%make_install
|
|
|
|
|
find %{buildroot}%{_libdir} -type f -name "*.a" -print -delete
|
|
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2007-01-15 23:24:17 +00:00
|
|
|
|
2020-10-19 08:02:12 +00:00
|
|
|
%check
|
2023-12-11 12:54:18 +00:00
|
|
|
%if 0%{?qemu_user_space_build}
|
|
|
|
|
# Some tests are difficult to emulate by QEmu
|
|
|
|
|
echo exit 77 > lib/dialects/linux/tests/case-20-pty-endpoint.bash
|
|
|
|
|
echo exit 77 > lib/dialects/linux/tests/case-20-ux-socket-endpoint-unaccepted.bash
|
|
|
|
|
echo 'int main () { return 77; }' > tests/LTbasic2.c
|
|
|
|
|
%endif
|
2023-11-14 02:59:17 +00:00
|
|
|
%make_build check
|
|
|
|
|
|
|
|
|
|
%ldconfig_scriptlets -n liblsof%{sover}
|
2020-10-19 08:02:12 +00:00
|
|
|
|
2007-01-15 23:24:17 +00:00
|
|
|
%files
|
2023-11-14 02:59:17 +00:00
|
|
|
%license COPYING
|
2023-12-21 13:39:08 +00:00
|
|
|
%doc ChangeLog README 00*
|
2011-01-14 01:52:12 +00:00
|
|
|
%{_bindir}/lsof
|
2023-11-14 02:59:17 +00:00
|
|
|
%{_mandir}/man8/lsof.8%{?ext_man}
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%license COPYING
|
|
|
|
|
%{_includedir}/*.h
|
|
|
|
|
%{_libdir}/liblsof.so
|
|
|
|
|
|
|
|
|
|
%files -n liblsof%{sover}
|
|
|
|
|
%license COPYING
|
|
|
|
|
%{_libdir}/liblsof.so.%{sover}
|
|
|
|
|
%{_libdir}/liblsof.so.%{sover}.*
|
2011-07-12 11:55:32 +00:00
|
|
|
|
2011-01-14 01:52:19 +00:00
|
|
|
%changelog
|