14 Star 0 Fork 22

src-openEuler / lsof
关闭

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
lsof.spec 3.41 KB
一键复制 编辑 原始数据 按行查看 历史
Funda Wang 提交于 2024-11-21 08:50 +08:00 . 4.99.4
Name: lsof
Version: 4.99.4
Release: 1
Summary: A tool for list open files
License: Zlib and Sendmail and LGPL-2.0-or-later
URL: https://lsof.readthedocs.io/en/latest/
Source0: https://github.com/lsof-org/lsof/releases/download/%{version}/%{name}-%{version}.tar.gz
Patch0: lsof-man-page-section.patch
BuildRequires: gcc make
BuildRequires: pkgconfig(libtirpc)
BuildRequires: libselinux-devel
BuildRequires: /usr/bin/soelim
%description
Lsof is a free, open-source, Unix administrative tool for displays information
about files open to Unix processes. It runs on many Unix dialects.
%package devel
Summary: Development files for %{name}
Requires: %{name} = %{version}-%{release}
%description devel
The %{name}-devel package contains libraries and header files for %{name}.
%package_help
%prep
%autosetup -n %{name}-%{version} -p1
%build
%configure --disable-static \
--enable-security \
--enable-no-sock-security
%make_build
# rebase to 4.93 introduced change in Lsof.8 with unhandled .so inclusion
/usr/bin/soelim -r Lsof.8 > lsof.1
%install
%make_install
install -m 0644 lsof.1 -D %{buildroot}%{_mandir}/man1/lsof.1
rm -rf %{buildroot}%{_mandir}/man8/lsof.8*
%check
%make_build check
%files
%license COPYING
%doc 00CREDITS
%{_bindir}/%{name}
%{_libdir}/lib%{name}.so.*
%files devel
%{_libdir}/lib%{name}.so
%{_includedir}/*.h
%files help
%doc 00README 00FAQ 00LSOF-L 00QUICKSTART
%{_mandir}/man*/*
%changelog
* Wed Nov 20 2024 Funda Wang <fundawang@yeah.net> - 4.99.4-1
- update version to 4.99.4
- switch to autotools based build system per suggested by upstream
- new devel sub package, due to switching to autotools
- add two security-related build switches from archlinux:
- only allow root to list all open files
- allow anyone to list anyone else's socket files
* Thu Feb 22 2024 luofng <luofeng13@huawei.com> -4.99.3-2
- Type: enhencement
- CVE:NA
- SUG:NA
- DESC:support for building with clang
* Tue Jan 23 2024 zhoupengcheng <zhoupengcheng11@huawei.com> -4.99.3-1
- update version to 4.99.3
* Tue Aug 1 2023 renhongxun <renhongxun@h-partners.com> - 4.97.0-3
- add BuildRequires groff-base to fix building error
* Thu Mar 23 2023 yixiangzhike <yixiangzhike007@163.cn> - 4.97.0-2
- backport patches from upstream
* Wed Feb 1 2023 wangjunqi <wangjunqi@kylinos.cn> - 4.97.0-1
- update version to 4.97.0
* Wed Nov 16 2022 dongyuzhen <dongyuzhen@h-partners.com> - 4.96.4-2
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:fix the format error in changelog
* Mon Nov 7 2022 Bin Hu <hubin73@huawei.com> - 4.96.4-1
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:update version 4.96.4
* Fri Aug 05 2022 renhongxun <renhongxun@h-partners.com> - 4.94.0-4
- fix spec so that man lsof can execute correctly
* Mon Jun 20 2022 renhongxun <renhongxun@h-partners.com> - 4.94.0-3
- enable check
* Mon Aug 02 2021 chenyanpanHW <chenyanpan@huawei.com> - 4.94.0-2
- DESC: delete -S git from %autosetup, and delete BuildRequires git
* Sat Jan 23 2021 zoulin <zoulin13@huawei.com> - 4.94.0-1
- Type: enhancement
- ID: NA
- SUG: NA
- DESC: update version to 4.94.0
* Mon Oct 19 2020 yangshaoxing <yangshaoxing3@huawei.com> - 4.93.2-4
- Handle ffff:ffff in ipv6 addr correctly
* Fri Jan 10 2020 Yeqing Peng <pengyeqing@huawei.com> - 4.93.2-3
- delete unused file
* Mon Sep 30 2019 luhuaxin <luhuaxin@huawei.com> - 4.93.2-2
- Type: enhancement
- ID: NA
- SUG: NA
- DESC: package rebuild
* Tue Sep 3 2019 luhuaxin <luhuaxin@huawei.com> - 4.93.2-1
- Package init
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/lsof.git
git@gitee.com:src-openeuler/lsof.git
src-openeuler
lsof
lsof
openEuler-25.03

搜索帮助