From 42fffce8e4af09a46ae048ef2941f7e5d823fb43 Mon Sep 17 00:00:00 2001 From: pengyeqing Date: Fri, 10 Jan 2020 15:33:06 +0800 Subject: [PATCH] delete unused file --- PATCH-FIX-OPENEULER-man-page-section.patch | 12 ------ lsof-tirpc.patch | 11 ------ lsof.spec | 5 ++- upstream2downstream.sh | 45 ---------------------- 4 files changed, 3 insertions(+), 70 deletions(-) delete mode 100644 PATCH-FIX-OPENEULER-man-page-section.patch delete mode 100644 lsof-tirpc.patch delete mode 100644 upstream2downstream.sh diff --git a/PATCH-FIX-OPENEULER-man-page-section.patch b/PATCH-FIX-OPENEULER-man-page-section.patch deleted file mode 100644 index e5ca4ea..0000000 --- a/PATCH-FIX-OPENEULER-man-page-section.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff --git a/Lsof.8 b/Lsof.8 -index 5ad6234..4453fb4 100644 ---- a/Lsof.8 -+++ b/Lsof.8 -@@ -1,5 +1,5 @@ - .so ./version --.TH LSOF 8 Revision-\*(VN -+.TH LSOF 1 Revision-\*(VN - \" Register )P is used neither by this file nor any groff macro. However, - \" some versions of nroff require it. - .if !\n(.g \{\ - diff --git a/lsof-tirpc.patch b/lsof-tirpc.patch deleted file mode 100644 index efe343e..0000000 --- a/lsof-tirpc.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- lsof_4.91-rh/Configure.orig 2018-05-22 15:54:57.275682247 +0200 -+++ lsof_4.91-rh/Configure 2018-05-22 15:55:22.314556548 +0200 -@@ -2945,7 +2945,7 @@ return(0); } - - # Test for . - -- if ! test -r ${LSOF_INCLUDE}/rpc/rpc.h # { -+ if ! test -r ${LSOF_INCLUDE}/tirpc/rpc/rpc.h # { - then - LSOF_CFGF="$LSOF_CFGF -DHASNORPC_H" - fi # } diff --git a/lsof.spec b/lsof.spec index f0ac58d..f5d0702 100644 --- a/lsof.spec +++ b/lsof.spec @@ -5,8 +5,6 @@ Summary: A tool for list open files License: zlib and Sendmail and LGPLv2+ URL: https://people.freebsd.org/~abe/ Source0: https://github.com/lsof-org/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz -Source1: upstream2downstream.sh -Patch0: PATCH-FIX-OPENEULER-man-page-section.patch Patch6002: 0050-endpoint-pipe-fix-list-the-same-fd-in-a-different-pr.patch Patch6003: 0052-endpoint-pty-bug-fix-list-the-same-fd-in-a-different.patch Patch6004: 0060-endpoint-pseudoterminal-bug-fix-fix-wrong-Unix98-PTY.patch @@ -47,6 +45,9 @@ install -p -m 0644 Lsof.8 %{buildroot}/%{_mandir}/man1/lsof.1 %{_mandir}/man*/* %changelog +* Fri Jan 10 2020 Yeqing Peng - 4.93.2-3 +- delete unused file + * Mon Sep 30 2019 luhuaxin - 4.93.2-2 - Type: enhancement - ID: NA diff --git a/upstream2downstream.sh b/upstream2downstream.sh deleted file mode 100644 index 247ee29..0000000 --- a/upstream2downstream.sh +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/bash -# -# This script removes non-linux dialects from upstream source package before -# release. There is a problem with copyrights for some UN*Xes ... also .. this -# script merges all to the one normal tarball and rename all to lsof_X.XX-rh. -# -# Usage: ./upstream2downstream -# -# This code is in the public domain; do with it what you wish. -# -# Copyright (C) 2007 Karel Zak -# - -UPSTREAM="$1" -NAME=$(basename $UPSTREAM .tar.bz2) -MYPWD=$(pwd) -TMP=$(mktemp -d) - -echo -echo -n "Extracting upstream code..." -tar -jxf $UPSTREAM -C $TMP -cd $TMP/$NAME -tar xf "$NAME"_src.tar -echo " done." - -echo -n "Moving files to downstream directory..." -mv "$NAME"_src/ "$NAME"-rh -mv README* 00* RELEASE* "$NAME"-rh -echo " done." - -echo -n "Removing non-Linux dialects..." -rm -rf "$NAME"-rh/dialects/{aix,darwin,du,freebsd,hpux,n+obsd,n+os,osr,sun,uw} -echo " done." - -echo -n "Creating final downstream tarball..." -tar Jcf $MYPWD/"$NAME"-rh.tar.xz "$NAME"-rh -echo " done." - -rm -rf $TMP -cd $MYPWD - -echo -echo "Linux-only tarball: $MYPWD/"$NAME"-rh.tar.xz" -echo - -- Gitee