delete unused file
This commit is contained in:
parent
7581ae960b
commit
4d274fd85a
@ -5,7 +5,6 @@ Summary: A tool for list open files
|
|||||||
License: zlib and Sendmail and LGPLv2+
|
License: zlib and Sendmail and LGPLv2+
|
||||||
URL: https://people.freebsd.org/~abe/
|
URL: https://people.freebsd.org/~abe/
|
||||||
Source0: https://github.com/lsof-org/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
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
|
Patch0: PATCH-FIX-OPENEULER-man-page-section.patch
|
||||||
Patch6002: 0050-endpoint-pipe-fix-list-the-same-fd-in-a-different-pr.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
|
Patch6003: 0052-endpoint-pty-bug-fix-list-the-same-fd-in-a-different.patch
|
||||||
@ -47,6 +46,9 @@ install -p -m 0644 Lsof.8 %{buildroot}/%{_mandir}/man1/lsof.1
|
|||||||
%{_mandir}/man*/*
|
%{_mandir}/man*/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* 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
|
* Mon Sep 30 2019 luhuaxin <luhuaxin@huawei.com> - 4.93.2-2
|
||||||
- Type: enhancement
|
- Type: enhancement
|
||||||
- ID: NA
|
- ID: NA
|
||||||
|
|||||||
@ -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 <usptream-tarball>
|
|
||||||
#
|
|
||||||
# This code is in the public domain; do with it what you wish.
|
|
||||||
#
|
|
||||||
# Copyright (C) 2007 Karel Zak <kzak@redhat.com>
|
|
||||||
#
|
|
||||||
|
|
||||||
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
|
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user