input/lsof.spec
raw · 3.7 KiB
Name: lsof
Version: 4.99.7
Release: 1%{?dist}
Summary: List of open files
Summary(ru): Список открытых файлов
License: BSD
URL: https://people.freebsd.org/~abe
Source0: https://github.com/lsof-org/lsof/releases/download/%{version}/lsof-%{version}.tar.gz
Packager: NICE SOFT GROUP LLC (ООО "НАЙС СОФТ ГРУПП") 5024245440 <niceos@ncsgp.ru>
Vendor: NiceSOFT
Distribution: NiceOS.Core
BugURL: https://bugs.niceos.ru/
VCS: https://specs.niceos.ru/rmps/%{name}
BuildRequires: libtirpc-devel
BuildRequires: groff
Requires: libtirpc
%description
lsof is a utility for listing information about files opened by processes in the
operating system. It helps administrators and users identify which processes are
using specific files or devices, and it can also report network connections and
sockets, which is useful for diagnostics and system resource management.
%description -l ru
lsof — утилита для вывода информации о файлах, открытых процессами в операционной
системе. Она позволяет определить, какие процессы используют указанные файлы или
устройства, а также отображает сетевые соединения и сокеты, что полезно для
диагностики и управления системными ресурсами.
%package devel
Summary: Development files for lsof: header files and libraries
Summary(ru): Разработка для lsof: заголовочные файлы и библиотеки
Requires: %{name} = %{version}-%{release}
%description -n %{name}-devel
This subpackage contains development files needed to compile software that
integrates with lsof-provided headers/libraries (where available).
%description -l ru -n %{name}-devel
Подпакет содержит файлы для разработки, необходимые для компиляции программ,
использующих заголовочные файлы и библиотеки lsof (если они предоставляются).
%prep
%autosetup -p1 -n %{name}-%{version}
%build
%configure
%make_build CFGL="-L./lib -ltirpc" %{?_smp_mflags}
%install
%make_install LN_S='ln -sfn'
mkdir -p %{buildroot}%{_sbindir} \
%{buildroot}%{_mandir}/man8
install -v -m 0755 lsof %{buildroot}%{_sbindir}
install -v -m 0644 Lsof.8 %{buildroot}%{_mandir}/man8
# RU: Секция %clean устарела; но удаление buildroot сохраняем без изменения смысла.
# EN: The %clean section is obsolete; keep buildroot cleanup without changing semantics.
%clean
rm -rf %{buildroot}/*
%files
%{_bindir}/*
%{_sbindir}/lsof
%{_libdir}/liblsof.so.0
%{_libdir}/liblsof.so.0.0.0
%{_mandir}/man8/*
%files devel
%{_includedir}/lsof.h
%{_includedir}/lsof_fields.h
%{_libdir}/liblsof.a
%{_libdir}/liblsof.so
%changelog
* Tue Jul 07 2026 NiceOS Team <support@niceos.ru> - 4.99.7-1
- EN: Update to upstream version 4.99.7.
- RU: Обновление до upstream-версии 4.99.7.
* Tue Apr 28 2026 ООО "НАЙС СОФТ ГРУПП" <niceos@ncsgp.ru> - 4.99.6-1
- EN: - Update to version 4.99.6 with FreeBSD 15 compatibility, AIX dialect fixes, and Solaris NFS header updates
- RU: - Обновление до версии 4.99.6 с поддержкой FreeBSD 15, исправлениями для AIX и обновлениями заголовков Solaris NFS
* Sat Jan 10 2026 NiceOS Team <niceos@ncsgp.ru> - 4.99.5-1
- Initial build for NiceOS (Первая сборка для НАЙС.ОС)