url
This commit is contained in:
parent
b97ddbe7f6
commit
1d4fb35abf
@ -1,208 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
# Process a gst-plugins-bad tarball to remove
|
|
||||||
# unwanted GStreamer plugins.
|
|
||||||
#
|
|
||||||
# See https://bugzilla.redhat.com/show_bug.cgi?id=532470
|
|
||||||
# for details
|
|
||||||
#
|
|
||||||
# Bastien Nocera <bnocera@redhat.com> - 2010
|
|
||||||
#
|
|
||||||
|
|
||||||
SOURCE="$1"
|
|
||||||
NEW_SOURCE=`echo $SOURCE | sed 's/bad-/bad-free-/'`
|
|
||||||
DIRECTORY=`echo $SOURCE | sed 's/\.tar\.xz//'`
|
|
||||||
|
|
||||||
ALLOWED="
|
|
||||||
aacparse
|
|
||||||
accurip
|
|
||||||
adpcmdec
|
|
||||||
adpcmenc
|
|
||||||
aiff
|
|
||||||
aiffparse
|
|
||||||
amrparse
|
|
||||||
asfmux
|
|
||||||
audiobuffersplit
|
|
||||||
audiofxbad
|
|
||||||
audiolatency
|
|
||||||
audiomixer
|
|
||||||
audiomixmatrix
|
|
||||||
audioparsers
|
|
||||||
audiovisualizers
|
|
||||||
autoconvert
|
|
||||||
bayer
|
|
||||||
camerabin
|
|
||||||
camerabin2
|
|
||||||
cdxaparse
|
|
||||||
coloreffects
|
|
||||||
colorspace
|
|
||||||
compositor
|
|
||||||
dataurisrc
|
|
||||||
dccp
|
|
||||||
debugutils
|
|
||||||
dtmf
|
|
||||||
faceoverlay
|
|
||||||
festival
|
|
||||||
fieldanalysis
|
|
||||||
freeverb
|
|
||||||
freeze
|
|
||||||
frei0r
|
|
||||||
gaudieffects
|
|
||||||
gdp
|
|
||||||
geometrictransform
|
|
||||||
h264parse
|
|
||||||
hdvparse
|
|
||||||
hls
|
|
||||||
id3tag
|
|
||||||
inter
|
|
||||||
interlace
|
|
||||||
invtelecine
|
|
||||||
ivfparse
|
|
||||||
ivtc
|
|
||||||
jpegformat
|
|
||||||
jp2kdecimator
|
|
||||||
legacyresample
|
|
||||||
librfb
|
|
||||||
liveadder
|
|
||||||
midi
|
|
||||||
mve
|
|
||||||
mpegdemux
|
|
||||||
mpeg4videoparse
|
|
||||||
mpegpsmux
|
|
||||||
mpegtsdemux
|
|
||||||
mpegtsmux
|
|
||||||
mpegvideoparse
|
|
||||||
mxf
|
|
||||||
netsim
|
|
||||||
nsf
|
|
||||||
nuvdemux
|
|
||||||
onvif
|
|
||||||
patchdetect
|
|
||||||
pcapparse
|
|
||||||
pnm
|
|
||||||
proxy
|
|
||||||
qtmux
|
|
||||||
rawparse
|
|
||||||
removesilence
|
|
||||||
rtp
|
|
||||||
rtpmux
|
|
||||||
rtpvp8
|
|
||||||
scaletempo
|
|
||||||
sdi
|
|
||||||
sdp
|
|
||||||
segmentclip
|
|
||||||
selector
|
|
||||||
smooth
|
|
||||||
speed
|
|
||||||
stereo
|
|
||||||
subenc
|
|
||||||
timecode
|
|
||||||
tta
|
|
||||||
valve
|
|
||||||
videofilters
|
|
||||||
videoframe_audiolevel
|
|
||||||
videomaxrate
|
|
||||||
videomeasure
|
|
||||||
videoparsers
|
|
||||||
videosignal
|
|
||||||
vmnc
|
|
||||||
yadif
|
|
||||||
y4m
|
|
||||||
"
|
|
||||||
|
|
||||||
NOT_ALLOWED="
|
|
||||||
dvbsuboverlay
|
|
||||||
dvdspu
|
|
||||||
real
|
|
||||||
siren
|
|
||||||
"
|
|
||||||
|
|
||||||
error()
|
|
||||||
{
|
|
||||||
MESSAGE=$1
|
|
||||||
echo $MESSAGE
|
|
||||||
exit 1
|
|
||||||
}
|
|
||||||
|
|
||||||
check_allowed()
|
|
||||||
{
|
|
||||||
MODULE=$1
|
|
||||||
for i in $ALLOWED ; do
|
|
||||||
if test x$MODULE = x$i ; then
|
|
||||||
return 0;
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
# Ignore errors coming from ext/ directory
|
|
||||||
# they require external libraries so are ineffective anyway
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
check_not_allowed()
|
|
||||||
{
|
|
||||||
MODULE=$1
|
|
||||||
for i in $NOT_ALLOWED ; do
|
|
||||||
if test x$MODULE = x$i ; then
|
|
||||||
return 0;
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
rm -rf $DIRECTORY
|
|
||||||
tar xJf $SOURCE || error "Cannot unpack $SOURCE"
|
|
||||||
pushd $DIRECTORY > /dev/null || error "Cannot open directory \"$DIRECTORY\""
|
|
||||||
|
|
||||||
unknown=""
|
|
||||||
for subdir in gst ext sys; do
|
|
||||||
for dir in $subdir/* ; do
|
|
||||||
# Don't touch non-directories
|
|
||||||
if ! [ -d $dir ] ; then
|
|
||||||
continue;
|
|
||||||
fi
|
|
||||||
MODULE=`basename $dir`
|
|
||||||
if ( check_not_allowed $MODULE ) ; then
|
|
||||||
echo "**** Removing $MODULE ****"
|
|
||||||
echo "Removing directory $dir"
|
|
||||||
rm -r $dir || error "Cannot remove $dir"
|
|
||||||
if grep -q "AG_GST_CHECK_PLUGIN($MODULE)" configure.ac ; then
|
|
||||||
echo "Removing element check for $MODULE"
|
|
||||||
grep -v "AG_GST_CHECK_PLUGIN($MODULE)" configure.ac > configure.ac.new && mv configure.ac.new configure.ac
|
|
||||||
fi
|
|
||||||
echo "Removing Makefile generation for $MODULE"
|
|
||||||
grep -v "$dir/Makefile" configure.ac > configure.ac.new && mv configure.ac.new configure.ac
|
|
||||||
# Urgh
|
|
||||||
if test $MODULE = real ; then
|
|
||||||
grep -v "AG_GST_DISABLE_PLUGIN(real)" configure.ac > configure.ac.new && mv configure.ac.new configure.ac
|
|
||||||
fi
|
|
||||||
echo "Removing documentation for $MODULE"
|
|
||||||
if grep -q "$MODULE" docs/plugins/Makefile.am ; then
|
|
||||||
grep -v $dir docs/plugins/Makefile.am > docs/plugins/Makefile.am.new && mv docs/plugins/Makefile.am.new docs/plugins/Makefile.am
|
|
||||||
fi
|
|
||||||
echo
|
|
||||||
elif test $subdir = ext || test $subdir = sys; then
|
|
||||||
# Ignore library or system non-blacklisted plugins
|
|
||||||
continue;
|
|
||||||
elif ! ( check_allowed $MODULE ) ; then
|
|
||||||
echo "Unknown module in $dir"
|
|
||||||
unknown="$unknown $dir"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
done
|
|
||||||
|
|
||||||
echo
|
|
||||||
|
|
||||||
if test "x$unknown" != "x"; then
|
|
||||||
echo -n "Aborting due to unkown modules: "
|
|
||||||
echo "$unknown" | sed "s/ /\n /g"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
#autoreconf
|
|
||||||
NOCONFIGURE=1 \
|
|
||||||
./autogen.sh
|
|
||||||
|
|
||||||
popd > /dev/null
|
|
||||||
|
|
||||||
tar cJf $NEW_SOURCE $DIRECTORY
|
|
||||||
echo "$NEW_SOURCE is ready to use"
|
|
||||||
|
|
||||||
BIN
gst-plugins-bad-1.14.4.tar.xz
Normal file
BIN
gst-plugins-bad-1.14.4.tar.xz
Normal file
Binary file not shown.
Binary file not shown.
@ -3,12 +3,11 @@
|
|||||||
|
|
||||||
Name: gstreamer1-plugins-bad-free
|
Name: gstreamer1-plugins-bad-free
|
||||||
Version: 1.14.4
|
Version: 1.14.4
|
||||||
Release: 3
|
Release: 4
|
||||||
Summary: Not well tested plugins for GStreamer framework
|
Summary: Not well tested plugins for GStreamer framework
|
||||||
License: LGPLv2+ and LGPLv2
|
License: LGPLv2+ and LGPLv2
|
||||||
URL: http://gstreamer.freedesktop.org/
|
URL: http://gstreamer.freedesktop.org/
|
||||||
Source0: gst-plugins-bad-free-%{version}.tar.xz
|
Source0: https://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-%{version}.tar.xz
|
||||||
Source1: gst-p-bad-cleanup.sh
|
|
||||||
|
|
||||||
BuildRequires: gstreamer1-devel >= %{version}
|
BuildRequires: gstreamer1-devel >= %{version}
|
||||||
BuildRequires: gstreamer1-plugins-base-devel >= %{version}
|
BuildRequires: gstreamer1-plugins-base-devel >= %{version}
|
||||||
@ -227,6 +226,9 @@ EOF
|
|||||||
%{_libdir}/gstreamer-%{majorminor}/libgstwebrtc.so
|
%{_libdir}/gstreamer-%{majorminor}/libgstwebrtc.so
|
||||||
%{_libdir}/gstreamer-%{majorminor}/libgstwebrtcdsp.so
|
%{_libdir}/gstreamer-%{majorminor}/libgstwebrtcdsp.so
|
||||||
%{_libdir}/gstreamer-%{majorminor}/libgstdebugutilsbad.so
|
%{_libdir}/gstreamer-%{majorminor}/libgstdebugutilsbad.so
|
||||||
|
%{_libdir}/gstreamer-%{majorminor}/libgstdvbsuboverlay.so
|
||||||
|
%{_libdir}/gstreamer-%{majorminor}/libgstdvdspu.so
|
||||||
|
%{_libdir}/gstreamer-%{majorminor}/libgstsiren.so
|
||||||
|
|
||||||
%if %{with extras}
|
%if %{with extras}
|
||||||
%files extras
|
%files extras
|
||||||
@ -259,6 +261,9 @@ EOF
|
|||||||
%{_includedir}/gstreamer-%{majorminor}/gst/*
|
%{_includedir}/gstreamer-%{majorminor}/gst/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Jan 16 2020 zhujunhao <zhujunhao5@huawei.com> - 1.14.4-4
|
||||||
|
- Modify url and remove useless file
|
||||||
|
|
||||||
* Wed Jan 15 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.14.4-3
|
* Wed Jan 15 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.14.4-3
|
||||||
- Type:enhancement
|
- Type:enhancement
|
||||||
- Id:NA
|
- Id:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user