Browse Source

* lsof: new upstream release

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@6145 ec354946-7b23-47d6-9f5a-488ba84defc7
shaolin 12 years ago
parent
commit
d3cc9ca435
1 changed files with 171 additions and 48 deletions
  1. 171 48
      l/lsof/lsof-vl.spec

+ 171 - 48
l/lsof/lsof-vl.spec

@@ -1,26 +1,25 @@
-Summary: A utility which lists open files on a Linux/UNIX system.
-Summary(ja): 開かれているファイルの一覧を表示するツール
-Name: lsof
-Version: 4.78
-Release: 9%{?_dist_release}
-License: Distributable
-Group: Applications/System
-Distribution: Vine Linux
+Summary:	A utility which lists open files on a Linux/UNIX system
+Summary(ja):	開かれているファイルの一覧を表示するツール
+Name:		lsof
+Version:	4.86
+Release:	1%{?_dist_release}
+License:	zlib
+Group:		Applications/System
+
+Vendor:		Project Vine
+Distribution:	Vine Linux
 
 # lsof contains licensed code that we cannot ship.  Therefore we use
 # upstream2downstream.sh script to remove the code before shipping it.
 #
-# The script you can found in CVS or download from:
-# http://cvs.fedoraproject.org/viewcvs/rpms/lsof/devel/upstream2downstream.sh
+# The script you can found in SCM or download from:
+# http://pkgs.fedoraproject.org/gitweb/?p=lsof.git;a=blob_plain;f=upstream2downstream.sh
 #
-%define lsofrh lsof_4.78C-rh
+%define lsofrh lsof_%{version}-rh
 Source0: %{lsofrh}.tar.bz2
 URL: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof
-BuildRoot: %{_tmppath}/%{name}-%{version}-root
 
-Patch1: lsof_4.78C-threads.patch
-Patch2: lsof_4.78C-inode.patch
-Patch3: lsof_4.78C-selinux.patch
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 %description
 Lsof stands for LiSt Open Files, and it does just that: it lists
@@ -35,55 +34,179 @@ Lsof は UNIX 特有の診断ツールです。その名前は LiSt Open Files 
 
 %prep
 %setup -q -n %{lsofrh}
-# 184338 - allow lsof access nptl threads
-%patch1 -p1
-# 243976 - mmap'd files with large inode numbers confuse lsof
-%patch2 -p1
-# 280651 - lsof prints entries in multiple lines when SElinux is disabled
-%patch3 -p1
 
 %build
 LSOF_VSTR=2.6.23 LINUX_BASE=/proc ./Configure -n linux
 
-make DEBUG="$RPM_OPT_FLAGS" %{?_smp_mflags}
-
-#LSOF_VERS=24018 LSOF_VSTR=2.4.18 LINUX_BASE=/proc \
-#	./Configure -n linux
+make DEBUG="%{optflags}" %{?_smp_mflags}
 
 %install
-rm -rf ${RPM_BUILD_ROOT}
-mkdir -p ${RPM_BUILD_ROOT}%{_sbindir}
-install -p -m 0755 lsof ${RPM_BUILD_ROOT}%{_prefix}/sbin
-mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man8
-install -p lsof.8 ${RPM_BUILD_ROOT}%{_mandir}/man8/
+rm -rf %{buildroot}
+mkdir -p %{buildroot}%{_sbindir}
+install -p -m 0755 lsof %{buildroot}%{_prefix}/sbin
+mkdir -p %{buildroot}%{_mandir}/man8
+install -p -m 0644 lsof.8 %{buildroot}%{_mandir}/man8/
 
 %clean
-rm -rf ${RPM_BUILD_ROOT}
+rm -rf %{buildroot}
 
 %files
-%defattr(644,root,root,755)
+%defattr(-,root,root,-)
 %doc 00*
-%attr(0755,root,root) %{_sbindir}/lsof
+%{_sbindir}/lsof
 %{_mandir}/man*/*
 
 %changelog
-* Sun Apr 19 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.78-9
-- changed Group to Applicaions/System
+* Mon May 07 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 4.86-1
+- new upstream release
+- rebased on Fedora's 4.86-1 (previous Vine changelog as follows)
+
+  - Sun Apr 19 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.78-9
+  - changed Group to Applicaions/System
+  
+  - Fri Oct 03 2008 Shu KONNO <owa@bg.wakwak.com> 4.78-8vl5
+  - applied new versioning policy, spec in utf-8
+  
+  - Mon Oct 22 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 4.78-7vl2
+  - rebuilt for VineSeed
+  
+  - Mon Oct 22 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 4.78-7vl1
+  - rebuilt for VinePlus/4.0
+  - s/Copyright/License/
+  - based on Fedora Core 
+  
+  - Fri Jan 21 2005 OOI Keita <ooik.ovwqlsjxcqwg4dc@privango.jp>
+  - 4.73-1vl1
+  - based on Fedora Core 3
+
+* Fri Apr 20 2012 Peter Schiffer <pschiffe@redhat.com> - 4.86-1
+- resolves: #811520
+  update to 4.86
+
+* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.85-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
+
+* Fri Sep 30 2011 Peter Schiffer <pschiffe@redhat.com> - 4.85-1
+- resolves: #741882
+  update to 4.85
+
+* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.84-4
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
+
+* Thu Jan 13 2011 Ville Skyttテδ、 <ville.skytta@iki.fi> - 4.84-3
+- Fix man page permissions.
+
+* Wed Sep 29 2010 jkeating - 4.84-2
+- Rebuilt for gcc bug 634757
+
+* Wed Sep 15 2010 Karel Zak <kzak@redhat.com> 4.84-1
+- upgrade to 4.84
+- remove lsof_4.81-threads.patch, "lsof -K" provides basic support for tasks now
+
+* Fri Feb 19 2010 Karel Zak <kzak@redhat.com> 4.83-2
+- minor changes in spec file (#226108 - Merge Review)
+
+* Thu Feb 11 2010 Karel Zak <kzak@redhat.com> 4.83-1
+- upgrade to 4.83 (see the 00DIST file for list of changes)
+- remove lsof_4.83A-selinux-typo.patch (fixed upstream)
+
+* Mon Jul 27 2009 Karel Zak <kzak@redhat.com> 4.82-1
+- upgrade to 4.82 (see the 00DIST file for list of changes)
+- backport an upstream patch from 4.83A-linux
+- remove lsof_4.81-man.patch (fixed upstream)
+
+* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.81-4
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
+* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.81-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+
+* Fri Jan 30 2009 Karel Zak <kzak@redhat.com> 4.81-2
+- fix #480694 - lsof manpage mismarked and formats badly
+
+* Tue Dec  2 2008 Karel Zak <kzak@redhat.com> 4.81-1
+- upgrade to 4.81
+  - lsof_4.80-threads.patch - rebased
+
+* Thu Aug  7 2008 Tom "spot" Callaway <tcallawa@redhat.com> 4.80-2
+- fix license tag
+
+* Tue May 20 2008 Karel Zak <kzak@redhat.com> 4.80-1
+- upgrade to 4.80
+  - lsof_4.78C-inode.patch - merged upstream
+  - lsof_4.78C-selinux.patch - merged upstream
+  - lsof_4.78C-threads.patch - rebased
+
+* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 4.78-8
+- Autorebuild for GCC 4.3
+
+* Wed Oct  3 2007 Karel Zak <kzak@redhat.com> 4.78-7
+- update selinux and inode patches (new versions are based on upstream)
 
-* Fri Oct 03 2008 Shu KONNO <owa@bg.wakwak.com> 4.78-8vl5
-- applied new versioning policy, spec in utf-8
+* Tue Oct  2 2007 Karel Zak <kzak@redhat.com> 4.78-6
+- fix #280651 - lsof prints entries in multiple lines when SElinux is disabled
+- fix #243976 - mmap'd files with large inode numbers confuse lsof
 
-* Mon Oct 22 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 4.78-7vl2
-- rebuilt for VineSeed
+* Thu Mar  1 2007 Karel Zak <kzak@redhat.com> 4.78-5
+- fix License
+
+* Thu Mar  1 2007 Karel Zak <kzak@redhat.com> 4.78-4
+- fix #226108 - Merge Review: lsof
+
+* Thu Aug 10 2006 Karel Zak <kzak@redhat.com> 4.78-3
+- minor changes to thread patch
+
+* Wed Aug  9 2006 Karel Zak <kzak@redhat.com> 4.78-2
+- fix #184338 - allow lsof access nptl threads
+
+* Wed Jul 19 2006 Karel Zak <kzak@redhat.com> 4.78-1
+- rebuild
+
+* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 4.78-06122006devel.1.1
+- rebuild
+
+* Mon Jun 12 2006 Karel Zak <kzak@redhat.com> 4.78-06122006devel.1
+- upgrade to 4.78C (last bugfix accepted by upstream)
+
+* Mon Jun 12 2006 Karel Zak <kzak@redhat.com> 4.78-06052006devel.2
+- added BuildRequires libselinux-devel
+- fix #194864 - lsof segfaults on starting
+
+* Wed May 24 2006 Karel Zak <kzak@redhat.com> 4.78-06052006devel.1
+- upgrade to 4.78B (upstream devel version with selinux patch)
+
+* Wed Feb 15 2006 Karel Zak <kzak@redhat.com> 4.76-2
+- fix #175568 - lsof prints 'unknown inode type' for epoll
+
+* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 4.76-1.2.1
+- bump again for double-long bug on ppc(64)
+
+* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 4.76-1.2
+- rebuilt for new gcc4.1 snapshot and glibc changes
+
+* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
+- rebuilt
+
+* Mon Sep 19 2005 Karel Zak <kzak@redhat.com> 4.76-1
+- new upstream version
+
+* Tue May 10 2005 Karel Zak <kzak@redhat.com> 4.74-7
+- fix debuginfo
+
+* Wed Mar 23 2005 Karel Zak <kzak@redhat.com> 4.74-6
+- fix "lsof -b" hangs if a process is stuck in disk-wait/NFS (#131712)
+
+* Mon Mar 14 2005 Karel Zak <kzak@redhat.com> 4.74-5
+- src.rpm cleanup
+
+* Sat Mar  5 2005 Karel Zak <kzak@redhat.com> 4.74-3
+- rebuilt
 
-* Mon Oct 22 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 4.78-7vl1
-- rebuilt for VinePlus/4.0
-- s/Copyright/License/
-- based on Fedora Core 
+* Tue Feb  8 2005 Karel Zak <kzak@redhat.com> 4.74-2
+- replace 'Copyright' with 'License' in .spec
 
-* Fri Jan 21 2005 OOI Keita <ooik.ovwqlsjxcqwg4dc@privango.jp>
-- 4.73-1vl1
-- based on Fedora Core 3
+* Tue Feb  8 2005 Karel Zak <kzak@redhat.com> 4.74-1
+- sync with upstream 4.74
 
 * Mon Dec 13 2004 Karel Zak <kzak@redhat.com> 4.73-1
 - update to 4.73
@@ -184,9 +307,9 @@ rm -rf ${RPM_BUILD_ROOT}
 * Mon Jun 29 1998 Maciej Lesniewski <nimir@kis.p.lodz.pl>
   [4.34-1]
 - New version
-- Spec rewriten to use %{name} and %{version} macros
+- Spec rewriten to use %%{name} and %%{version} macros
 - Removed old log enteries
 
 * Tue Apr 28 1998 Maciej Lesniewski <nimir@kis.p.lodz.pl>
 - Built under RH5
-- %install was changed
+- install macro was changed