lsof/lsof.spec

112 lines
2.9 KiB
RPMSpec
Raw Permalink Normal View History

2019-09-30 11:02:50 -04:00
Name: lsof
2024-01-23 16:22:26 +08:00
Version: 4.99.3
Release: 2
2019-09-30 11:02:50 -04:00
Summary: A tool for list open files
2023-02-01 09:58:56 +08:00
License: Zlib and Sendmail and LGPL-2.0-or-later
2019-09-30 11:02:50 -04:00
URL: https://people.freebsd.org/~abe/
Source0: https://github.com/lsof-org/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: gcc libtirpc-devel libselinux-devel groff-base
2019-09-30 11:02:50 -04:00
%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 help
Summary: Doc files for %{name}
BuildArch: noarch
2019-11-06 19:42:06 +08:00
Requires: man
2019-09-30 11:02:50 -04:00
%description help
The %{name}-help package contains doc files for %{name}.
%prep
%autosetup -n %{name}-%{version} -p1
2019-09-30 11:02:50 -04:00
%build
LSOF_CC=%{__cc} ./Configure -n linux
2019-09-30 11:02:50 -04:00
%make_build DEBUG="%{build_cflags} -I/usr/include/tirpc" CFGL="%{build_ldflags} -L./lib -llsof -lselinux -ltirpc"
soelim -r Lsof.8 > lsof.1
2019-09-30 11:02:50 -04:00
%install
mkdir -p %{buildroot}/%{_bindir}
install -p -m 0755 lsof %{buildroot}/%{_bindir}
mkdir -p %{buildroot}/%{_mandir}/man1
install -p -m 0644 lsof.1 %{buildroot}/%{_mandir}/man1/lsof.1
2019-09-30 11:02:50 -04:00
2022-06-20 16:09:34 +08:00
%check
pushd tests
chmod u+w TestDB
./Add2TestDB
make test %{?_smp_mflags} DEBUG="%{optflags} -Wall -Wno-unused"
popd
2019-09-30 11:02:50 -04:00
%files
%doc 00CREDITS
%{_bindir}/%{name}
%files help
%doc 00README 00FAQ 00LSOF-L 00QUICKSTART
%{_mandir}/man*/*
%changelog
* Thu Feb 22 2024 luofng <luofeng13@huawei.com> -4.99.3-2
- Type: enhencement
- CVE:NA
- SUG:NA
- DESC:support for building with clang
2024-01-23 16:22:26 +08:00
* 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
2023-03-23 14:14:59 +08:00
* Thu Mar 23 2023 yixiangzhike <yixiangzhike007@163.cn> - 4.97.0-2
- backport patches from upstream
2023-02-01 09:58:56 +08:00
* Wed Feb 1 2023 wangjunqi <wangjunqi@kylinos.cn> - 4.97.0-1
- update version to 4.97.0
2022-11-16 15:29:09 +08:00
* 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
2022-11-16 15:29:09 +08:00
* Fri Aug 05 2022 renhongxun <renhongxun@h-partners.com> - 4.94.0-4
- fix spec so that man lsof can execute correctly
2022-11-16 15:29:09 +08:00
* Mon Jun 20 2022 renhongxun <renhongxun@h-partners.com> - 4.94.0-3
2022-06-20 16:09:34 +08:00
- enable check
* Mon Aug 02 2021 chenyanpanHW <chenyanpan@huawei.com> - 4.94.0-2
- DESC: delete -S git from %autosetup, and delete BuildRequires git
2021-01-23 11:50:10 +08:00
* 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
2020-01-10 15:33:06 +08:00
* Fri Jan 10 2020 Yeqing Peng <pengyeqing@huawei.com> - 4.93.2-3
- delete unused file
2019-11-06 19:42:06 +08:00
* Mon Sep 30 2019 luhuaxin <luhuaxin@huawei.com> - 4.93.2-2
- Type: enhancement
- ID: NA
- SUG: NA
- DESC: package rebuild
2019-09-30 11:02:50 -04:00
* Tue Sep 3 2019 luhuaxin <luhuaxin@huawei.com> - 4.93.2-1
- Package init