Blame SPECS/lsof.spec

95c817
Summary: A utility which lists open files on a Linux/UNIX system
95c817
Name: lsof
653014
Version: 4.93.2
653014
Release: 1%{?dist}
95c817
# Sendmail .. lib/snpf.c
95c817
# LGPLv2+  .. lib/regex.c, regex.h
95c817
License: zlib and Sendmail and LGPLv2+
95c817
Group: Development/Debuggers
653014
URL: https://github.com/lsof-org/lsof
95c817
95c817
# lsof contains licensed code that we cannot ship.  Therefore we use
95c817
# upstream2downstream.sh script to remove the code before shipping it.
95c817
#
95c817
# The script can be found in SCM or downloaded from:
95c817
# http://pkgs.fedoraproject.org/cgit/lsof.git/tree/upstream2downstream.sh
95c817
653014
%global lsofrh lsof-%{version}-rh
95c817
Source0: %{lsofrh}.tar.xz
95c817
Source1: upstream2downstream.sh
95c817
95c817
# BZ#1260300 - move lsof man page to section 1
95c817
Patch0: lsof-man-page-section.patch
95c817
95c817
BuildRequires: gcc
95c817
BuildRequires: libselinux-devel
95c817
BuildRequires: libtirpc-devel
653014
BuildRequires: groff-base
95c817
95c817
%description
95c817
Lsof stands for LiSt Open Files, and it does just that: it lists information
95c817
about files that are open by the processes running on a UNIX system.
95c817
95c817
%prep
95c817
%setup -q -n %{lsofrh}
95c817
%patch0 -p1 -b .man-page-section
95c817
95c817
%build
95c817
./Configure -n linux
95c817
%make_build DEBUG="%{build_cflags} -I/usr/include/tirpc" CFGL="%{build_ldflags} -L./lib -llsof -lselinux -ltirpc"
653014
# rebase to 4.93 introduced change in Lsof.8 with unhandled .so inclusion
653014
soelim -r Lsof.8 > lsof.1
95c817
95c817
%install
95c817
mkdir -p ${RPM_BUILD_ROOT}%{_bindir}
95c817
install -p -m 0755 lsof ${RPM_BUILD_ROOT}%{_bindir}
95c817
mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man1
653014
install -p -m 0644 lsof.1 ${RPM_BUILD_ROOT}%{_mandir}/man1/lsof.1
95c817
95c817
%files
95c817
%doc 00README 00CREDITS 00FAQ 00LSOF-L 00QUICKSTART
95c817
%{_bindir}/lsof
95c817
%{_mandir}/man*/*
95c817
95c817
%changelog
653014
* Fri Apr 17 2020 Jan Rybar <jrybar@redhat.com> - 4.93.2-1
653014
- Rebase to lsof-4.93.2
653014
- Upstream moved to GitHub (original unreachable) and tarball structure changed
653014
- Manpage patch needed to reflect the tarball changes
653014
- Resolves: rhbz#1778228
653014
95c817
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.91-2
95c817
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
95c817
95c817
* Tue May 22 2018 Peter Schiffer <pschiffe@redhat.com> - 4.91-1
95c817
- resolves: #1560993
95c817
  updated to 4.91
95c817
- resolves: #1574669
95c817
  use tirpc library for rpc
95c817
95c817
* Fri Apr 13 2018 Rafael dos Santos <rdossant@redhat.com> - 4.90-2
95c817
- Use standard Fedora build flags (bug #1548552)
95c817
95c817
* Wed Feb 21 2018 Peter Schiffer <pschiffe@redhat.com> - 4.90-1
95c817
- resolves: #1545963
95c817
  updated to 4.90
95c817
95c817
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.89-8
95c817
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
95c817
95c817
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.89-7
95c817
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
95c817
95c817
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.89-6
95c817
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
95c817
95c817
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.89-5
95c817
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
95c817
95c817
* Sat Mar  5 2016 Peter Robinson <pbrobinson@fedoraproject.org> 4.89-4
95c817
- Only ship end user useful docs, don't ship bits for building
95c817
95c817
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 4.89-3
95c817
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
95c817
95c817
* Mon Nov 30 2015 Peter Schiffer <pschiffe@redhat.com> - 4.89-2
95c817
- resolves #1260300
95c817
  moved lsof to /usr/bin, it's not sysadmin only utility
95c817
95c817
* Wed Jul 29 2015 Peter Schiffer <pschiffe@redhat.com> - 4.89-1
95c817
-  updated to 4.89
95c817
95c817
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.88-3
95c817
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
95c817
95c817
* Tue Jan  6 2015 Peter Schiffer <pschiffe@redhat.com> - 4.88-2
95c817
-  added upstream patch fixing unwanted pipe file output
95c817
-  cleaned .spec file
95c817
95c817
* Wed Oct 15 2014 Peter Schiffer <pschiffe@redhat.com> - 4.88-1
95c817
-  updated to 4.88
95c817
95c817
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.87-5
95c817
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
95c817
95c817
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.87-4
95c817
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
95c817
95c817
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.87-3
95c817
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
95c817
95c817
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.87-2
95c817
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
95c817
95c817
* Thu Jan  3 2013 Peter Schiffer <pschiffe@redhat.com> - 4.87-1
95c817
- resolves: #891508
95c817
  updated to 4.87
95c817
95c817
* Tue Aug 28 2012 Peter Schiffer <pschiffe@redhat.com> - 4.86-4
95c817
- .spec file cleanup
95c817
95c817
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.86-3
95c817
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
95c817
95c817
* Mon Jun 04 2012 Peter Schiffer <pschiffe@redhat.com> - 4.86-2
95c817
- added support for files on anon_inodefs
95c817
95c817
* Fri Apr 20 2012 Peter Schiffer <pschiffe@redhat.com> - 4.86-1
95c817
- resolves: #811520
95c817
  update to 4.86
95c817
95c817
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.85-2
95c817
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
95c817
95c817
* Fri Sep 30 2011 Peter Schiffer <pschiffe@redhat.com> - 4.85-1
95c817
- resolves: #741882
95c817
  update to 4.85
95c817
95c817
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.84-4
95c817
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
95c817
95c817
* Thu Jan 13 2011 Ville Skyttä <ville.skytta@iki.fi> - 4.84-3
95c817
- Fix man page permissions.
95c817
95c817
* Wed Sep 29 2010 jkeating - 4.84-2
95c817
- Rebuilt for gcc bug 634757
95c817
95c817
* Wed Sep 15 2010 Karel Zak <kzak@redhat.com> 4.84-1
95c817
- upgrade to 4.84
95c817
- remove lsof_4.81-threads.patch, "lsof -K" provides basic support for tasks now
95c817
95c817
* Fri Feb 19 2010 Karel Zak <kzak@redhat.com> 4.83-2
95c817
- minor changes in spec file (#226108 - Merge Review)
95c817
95c817
* Thu Feb 11 2010 Karel Zak <kzak@redhat.com> 4.83-1
95c817
- upgrade to 4.83 (see the 00DIST file for list of changes)
95c817
- remove lsof_4.83A-selinux-typo.patch (fixed upstream)
95c817
95c817
* Mon Jul 27 2009 Karel Zak <kzak@redhat.com> 4.82-1
95c817
- upgrade to 4.82 (see the 00DIST file for list of changes)
95c817
- backport an upstream patch from 4.83A-linux
95c817
- remove lsof_4.81-man.patch (fixed upstream)
95c817
95c817
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.81-4
95c817
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
95c817
95c817
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.81-3
95c817
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
95c817
95c817
* Fri Jan 30 2009 Karel Zak <kzak@redhat.com> 4.81-2
95c817
- fix #480694 - lsof manpage mismarked and formats badly
95c817
95c817
* Tue Dec  2 2008 Karel Zak <kzak@redhat.com> 4.81-1
95c817
- upgrade to 4.81
95c817
  - lsof_4.80-threads.patch - rebased
95c817
95c817
* Thu Aug  7 2008 Tom "spot" Callaway <tcallawa@redhat.com> 4.80-2
95c817
- fix license tag
95c817
95c817
* Tue May 20 2008 Karel Zak <kzak@redhat.com> 4.80-1
95c817
- upgrade to 4.80
95c817
  - lsof_4.78C-inode.patch - merged upstream
95c817
  - lsof_4.78C-selinux.patch - merged upstream
95c817
  - lsof_4.78C-threads.patch - rebased
95c817
95c817
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 4.78-8
95c817
- Autorebuild for GCC 4.3
95c817
95c817
* Wed Oct  3 2007 Karel Zak <kzak@redhat.com> 4.78-7
95c817
- update selinux and inode patches (new versions are based on upstream)
95c817
95c817
* Tue Oct  2 2007 Karel Zak <kzak@redhat.com> 4.78-6
95c817
- fix #280651 - lsof prints entries in multiple lines when SElinux is disabled
95c817
- fix #243976 - mmap'd files with large inode numbers confuse lsof
95c817
95c817
* Thu Mar  1 2007 Karel Zak <kzak@redhat.com> 4.78-5
95c817
- fix License
95c817
95c817
* Thu Mar  1 2007 Karel Zak <kzak@redhat.com> 4.78-4
95c817
- fix #226108 - Merge Review: lsof
95c817
95c817
* Thu Aug 10 2006 Karel Zak <kzak@redhat.com> 4.78-3
95c817
- minor changes to thread patch
95c817
95c817
* Wed Aug  9 2006 Karel Zak <kzak@redhat.com> 4.78-2
95c817
- fix #184338 - allow lsof access nptl threads
95c817
95c817
* Wed Jul 19 2006 Karel Zak <kzak@redhat.com> 4.78-1
95c817
- rebuild
95c817
95c817
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 4.78-06122006devel.1.1
95c817
- rebuild
95c817
95c817
* Mon Jun 12 2006 Karel Zak <kzak@redhat.com> 4.78-06122006devel.1
95c817
- upgrade to 4.78C (last bugfix accepted by upstream)
95c817
95c817
* Mon Jun 12 2006 Karel Zak <kzak@redhat.com> 4.78-06052006devel.2
95c817
- added BuildRequires libselinux-devel
95c817
- fix #194864 - lsof segfaults on starting
95c817
95c817
* Wed May 24 2006 Karel Zak <kzak@redhat.com> 4.78-06052006devel.1
95c817
- upgrade to 4.78B (upstream devel version with selinux patch)
95c817
95c817
* Wed Feb 15 2006 Karel Zak <kzak@redhat.com> 4.76-2
95c817
- fix #175568 - lsof prints 'unknown inode type' for epoll
95c817
95c817
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 4.76-1.2.1
95c817
- bump again for double-long bug on ppc(64)
95c817
95c817
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 4.76-1.2
95c817
- rebuilt for new gcc4.1 snapshot and glibc changes
95c817
95c817
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
95c817
- rebuilt
95c817
95c817
* Mon Sep 19 2005 Karel Zak <kzak@redhat.com> 4.76-1
95c817
- new upstream version
95c817
95c817
* Tue May 10 2005 Karel Zak <kzak@redhat.com> 4.74-7
95c817
- fix debuginfo
95c817
95c817
* Wed Mar 23 2005 Karel Zak <kzak@redhat.com> 4.74-6
95c817
- fix "lsof -b" hangs if a process is stuck in disk-wait/NFS (#131712)
95c817
95c817
* Mon Mar 14 2005 Karel Zak <kzak@redhat.com> 4.74-5
95c817
- src.rpm cleanup
95c817
95c817
* Sat Mar  5 2005 Karel Zak <kzak@redhat.com> 4.74-3
95c817
- rebuilt
95c817
95c817
* Tue Feb  8 2005 Karel Zak <kzak@redhat.com> 4.74-2
95c817
- replace 'Copyright' with 'License' in .spec
95c817
95c817
* Tue Feb  8 2005 Karel Zak <kzak@redhat.com> 4.74-1
95c817
- sync with upstream 4.74
95c817
95c817
* Mon Dec 13 2004 Karel Zak <kzak@redhat.com> 4.73-1
95c817
- update to 4.73
95c817
- remove lsof_4.72-sock.patch, already in the upstream code
95c817