Initial Fedora spec file
This commit is contained in:
parent
39f1098f17
commit
01e3994664
1
.gitignore
vendored
1
.gitignore
vendored
@ -0,0 +1 @@
|
||||
/gst-plugins-good-0.11.93.tar.xz
|
34
drop-v4l2-buffer-input.patch
Normal file
34
drop-v4l2-buffer-input.patch
Normal file
@ -0,0 +1,34 @@
|
||||
From 9f2aa8d47f835ea155aaf635f618c0fc1ca87012 Mon Sep 17 00:00:00 2001
|
||||
From: Matthias Clasen <mclasen@redhat.com>
|
||||
Date: Thu, 09 Aug 2012 07:35:23 +0000
|
||||
Subject: v4l2: fix build with recent kernels, the v4l2_buffer input field was removed
|
||||
|
||||
This was unused apparently and removed in the kernel in commit:
|
||||
|
||||
From 2b719d7baf490e24ce7d817c6337b7c87fda84c1 Mon Sep 17 00:00:00 2001
|
||||
From: Sakari Ailus <sakari.ailus@iki.fi>
|
||||
Date: Wed, 2 May 2012 09:40:03 -0300
|
||||
Subject: [PATCH] [media] v4l: drop v4l2_buffer.input and V4L2_BUF_FLAG_INPUT
|
||||
|
||||
Remove input field in struct v4l2_buffer and flag V4L2_BUF_FLAG_INPUT which
|
||||
tells the former is valid. The flag is used by no driver currently.
|
||||
|
||||
https://bugzilla.gnome.org/show_bug.cgi?id=681491
|
||||
|
||||
Conflicts:
|
||||
sys/v4l2/gstv4l2bufferpool.c
|
||||
---
|
||||
diff --git a/sys/v4l2/gstv4l2bufferpool.c b/sys/v4l2/gstv4l2bufferpool.c
|
||||
index d040d9d..897231d 100644
|
||||
--- a/sys/v4l2/gstv4l2bufferpool.c
|
||||
+++ b/sys/v4l2/gstv4l2bufferpool.c
|
||||
@@ -175,7 +175,6 @@ gst_v4l2_buffer_pool_alloc_buffer (GstBufferPool * bpool, GstBuffer ** buffer,
|
||||
if (meta->vbuffer.memory == V4L2_MEMORY_MMAP)
|
||||
GST_LOG_OBJECT (pool, " MMAP offset: %u", meta->vbuffer.m.offset);
|
||||
GST_LOG_OBJECT (pool, " length: %u", meta->vbuffer.length);
|
||||
- GST_LOG_OBJECT (pool, " input: %u", meta->vbuffer.input);
|
||||
|
||||
meta->mem = v4l2_mmap (0, meta->vbuffer.length,
|
||||
PROT_READ | PROT_WRITE, MAP_SHARED, pool->video_fd,
|
||||
--
|
||||
cgit v0.9.0.2-2-gbebe
|
207
gstreamer1-plugins-good.spec
Normal file
207
gstreamer1-plugins-good.spec
Normal file
@ -0,0 +1,207 @@
|
||||
%global majorminor 1.0
|
||||
|
||||
# Turn off extras package on RHEL.
|
||||
%if ! 0%{?rhel}
|
||||
%bcond_without extras
|
||||
%else
|
||||
%bcond_with extras
|
||||
%endif
|
||||
|
||||
Name: gstreamer1-plugins-good
|
||||
Version: 0.11.93
|
||||
Release: 1%{?dist}
|
||||
Summary: GStreamer plugins with good code and licensing
|
||||
|
||||
License: LGPLv2+
|
||||
URL: http://gstreamer.freedesktop.org/
|
||||
Source0: http://gstreamer.freedesktop.org/src/gst-plugins-good/gst-plugins-good-%{version}.tar.xz
|
||||
Patch0: drop-v4l2-buffer-input.patch
|
||||
|
||||
BuildRequires: gstreamer1-devel >= %{version}
|
||||
BuildRequires: gstreamer1-plugins-base-devel >= %{version}
|
||||
|
||||
BuildRequires: flac-devel >= 1.1.4
|
||||
BuildRequires: libjpeg-devel
|
||||
BuildRequires: libpng-devel >= 1.2.0
|
||||
BuildRequires: libshout-devel
|
||||
BuildRequires: libsoup-devel
|
||||
BuildRequires: libX11-devel
|
||||
BuildRequires: orc-devel
|
||||
BuildRequires: pulseaudio-libs-devel
|
||||
BuildRequires: speex-devel
|
||||
BuildRequires: taglib-devel
|
||||
BuildRequires: wavpack-devel
|
||||
BuildRequires: libv4l-devel
|
||||
|
||||
%ifnarch s390 s390x
|
||||
BuildRequires: libavc1394-devel
|
||||
BuildRequires: libdv-devel
|
||||
BuildRequires: libiec61883-devel
|
||||
BuildRequires: libraw1394-devel
|
||||
%endif
|
||||
|
||||
# extras
|
||||
%if %{with extras}
|
||||
BuildRequires: jack-audio-connection-kit-devel
|
||||
%endif
|
||||
|
||||
# documentation
|
||||
BuildRequires: gtk-doc
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: PyXML
|
||||
|
||||
|
||||
%description
|
||||
GStreamer is a streaming media framework, based on graphs of filters which
|
||||
operate on media data. Applications using this library can do anything
|
||||
from real-time sound processing to playing videos, and just about anything
|
||||
else media-related. Its plugin-based architecture means that new data
|
||||
types or processing capabilities can be added simply by installing new
|
||||
plugins.
|
||||
|
||||
GStreamer Good Plugins is a collection of well-supported plugins of
|
||||
good quality and under the LGPL license.
|
||||
|
||||
%if %{with extras}
|
||||
%package extras
|
||||
Summary: Extra GStreamer plugins with good code and licensing
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
|
||||
|
||||
%description extras
|
||||
GStreamer is a streaming media framework, based on graphs of filters
|
||||
which operate on media data.
|
||||
|
||||
GStreamer Good Plugins is a collection of well-supported plugins of
|
||||
good quality and under the LGPL license.
|
||||
|
||||
%{name}-extras contains extra "good" plugins
|
||||
which are not used very much and require additional libraries
|
||||
to be installed.
|
||||
%endif
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n gst-plugins-good-%{version}
|
||||
%patch0 -p1 -b .buffer
|
||||
|
||||
|
||||
%build
|
||||
%configure \
|
||||
--with-package-name='Fedora GStreamer-plugins-good package' \
|
||||
--with-package-origin='http://download.fedoraproject.org' \
|
||||
--enable-experimental \
|
||||
--enable-gtk-doc \
|
||||
--enable-orc \
|
||||
--disable-monoscope \
|
||||
--disable-aalib \
|
||||
--disable-libcaca \
|
||||
%if %{with extras}
|
||||
--enable-jack \
|
||||
%else
|
||||
--disable-jack \
|
||||
%endif
|
||||
--with-default-visualizer=autoaudiosink
|
||||
make %{?_smp_mflags}
|
||||
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
make install DESTDIR=$RPM_BUILD_ROOT
|
||||
|
||||
%find_lang gst-plugins-good-%{majorminor}
|
||||
|
||||
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
|
||||
|
||||
|
||||
%files -f gst-plugins-good-%{majorminor}.lang
|
||||
%doc AUTHORS COPYING README REQUIREMENTS
|
||||
%doc %{_datadir}/gtk-doc/html/gst-plugins-good-plugins-%{majorminor}
|
||||
|
||||
# Equaliser presets
|
||||
%dir %{_datadir}/gstreamer-%{majorminor}/presets/
|
||||
%{_datadir}/gstreamer-%{majorminor}/presets/GstIirEqualizer10Bands.prs
|
||||
%{_datadir}/gstreamer-%{majorminor}/presets/GstIirEqualizer3Bands.prs
|
||||
|
||||
# non-core plugins without external dependencies
|
||||
%{_libdir}/gstreamer-%{majorminor}/libgstalaw.so
|
||||
%{_libdir}/gstreamer-%{majorminor}/libgstalphacolor.so
|
||||
%{_libdir}/gstreamer-%{majorminor}/libgstalpha.so
|
||||
%{_libdir}/gstreamer-%{majorminor}/libgstapetag.so
|
||||
%{_libdir}/gstreamer-%{majorminor}/libgstaudiofx.so
|
||||
%{_libdir}/gstreamer-%{majorminor}/libgstaudioparsers.so
|
||||
%{_libdir}/gstreamer-%{majorminor}/libgstauparse.so
|
||||
%{_libdir}/gstreamer-%{majorminor}/libgstautodetect.so
|
||||
%{_libdir}/gstreamer-%{majorminor}/libgstavi.so
|
||||
%{_libdir}/gstreamer-%{majorminor}/libgstcutter.so
|
||||
%{_libdir}/gstreamer-%{majorminor}/libgstdebug.so
|
||||
%{_libdir}/gstreamer-%{majorminor}/libgstdeinterlace.so
|
||||
%{_libdir}/gstreamer-%{majorminor}/libgsteffectv.so
|
||||
%{_libdir}/gstreamer-%{majorminor}/libgstequalizer.so
|
||||
%{_libdir}/gstreamer-%{majorminor}/libgstflv.so
|
||||
%{_libdir}/gstreamer-%{majorminor}/libgstflxdec.so
|
||||
%{_libdir}/gstreamer-%{majorminor}/libgstgoom2k1.so
|
||||
%{_libdir}/gstreamer-%{majorminor}/libgstgoom.so
|
||||
%{_libdir}/gstreamer-%{majorminor}/libgsticydemux.so
|
||||
%{_libdir}/gstreamer-%{majorminor}/libgstid3demux.so
|
||||
%{_libdir}/gstreamer-%{majorminor}/libgstimagefreeze.so
|
||||
%{_libdir}/gstreamer-%{majorminor}/libgstinterleave.so
|
||||
%{_libdir}/gstreamer-%{majorminor}/libgstisomp4.so
|
||||
%{_libdir}/gstreamer-%{majorminor}/libgstlevel.so
|
||||
%{_libdir}/gstreamer-%{majorminor}/libgstmatroska.so
|
||||
%{_libdir}/gstreamer-%{majorminor}/libgstmulaw.so
|
||||
%{_libdir}/gstreamer-%{majorminor}/libgstmultifile.so
|
||||
%{_libdir}/gstreamer-%{majorminor}/libgstmultipart.so
|
||||
%{_libdir}/gstreamer-%{majorminor}/libgstnavigationtest.so
|
||||
%{_libdir}/gstreamer-%{majorminor}/libgstoss4audio.so
|
||||
%{_libdir}/gstreamer-%{majorminor}/libgstreplaygain.so
|
||||
%{_libdir}/gstreamer-%{majorminor}/libgstrtp.so
|
||||
%{_libdir}/gstreamer-%{majorminor}/libgstrtsp.so
|
||||
%{_libdir}/gstreamer-%{majorminor}/libgstshapewipe.so
|
||||
%{_libdir}/gstreamer-%{majorminor}/libgstsmpte.so
|
||||
%{_libdir}/gstreamer-%{majorminor}/libgstspectrum.so
|
||||
%{_libdir}/gstreamer-%{majorminor}/libgstudp.so
|
||||
%{_libdir}/gstreamer-%{majorminor}/libgstvideobox.so
|
||||
%{_libdir}/gstreamer-%{majorminor}/libgstvideocrop.so
|
||||
%{_libdir}/gstreamer-%{majorminor}/libgstvideofilter.so
|
||||
%{_libdir}/gstreamer-%{majorminor}/libgstvideomixer.so
|
||||
%{_libdir}/gstreamer-%{majorminor}/libgstwavenc.so
|
||||
%{_libdir}/gstreamer-%{majorminor}/libgstwavparse.so
|
||||
%{_libdir}/gstreamer-%{majorminor}/libgstximagesrc.so
|
||||
%{_libdir}/gstreamer-%{majorminor}/libgsty4menc.so
|
||||
|
||||
# gstreamer-plugins with external dependencies but in the main package
|
||||
%{_libdir}/gstreamer-%{majorminor}/libgstflac.so
|
||||
%{_libdir}/gstreamer-%{majorminor}/libgstjpeg.so
|
||||
%{_libdir}/gstreamer-%{majorminor}/libgstossaudio.so
|
||||
%{_libdir}/gstreamer-%{majorminor}/libgstpng.so
|
||||
%{_libdir}/gstreamer-%{majorminor}/libgstpulse.so
|
||||
%{_libdir}/gstreamer-%{majorminor}/libgstrtpmanager.so
|
||||
%{_libdir}/gstreamer-%{majorminor}/libgstshout2.so
|
||||
%{_libdir}/gstreamer-%{majorminor}/libgstsouphttpsrc.so
|
||||
%{_libdir}/gstreamer-%{majorminor}/libgstspeex.so
|
||||
%{_libdir}/gstreamer-%{majorminor}/libgsttaglib.so
|
||||
%{_libdir}/gstreamer-%{majorminor}/libgstvideo4linux2.so
|
||||
%{_libdir}/gstreamer-%{majorminor}/libgstwavpack.so
|
||||
|
||||
%ifnarch s390 s390x
|
||||
%{_libdir}/gstreamer-%{majorminor}/libgstdv.so
|
||||
%{_libdir}/gstreamer-%{majorminor}/libgst1394.so
|
||||
%endif
|
||||
|
||||
|
||||
%if %{with extras}
|
||||
%files extras
|
||||
# Plugins with external dependencies
|
||||
%{_libdir}/gstreamer-%{majorminor}/libgstjack.so
|
||||
%endif
|
||||
|
||||
|
||||
%changelog
|
||||
* Wed Aug 15 2012 Brian Pepple <bpepple@fedoraproject.org> - 0.11.93-1
|
||||
- Update to 0.11.93.
|
||||
- Add batch to fix build with recent kernels, the v4l2_buffer input field was removed.
|
||||
- Use %%global instead of %%define.
|
||||
|
||||
* Wed Jul 18 2012 Brian Pepple <bpepple@fedoraproject.org> - 0.11.92-1
|
||||
- Initial Fedora spec.
|
Loading…
Reference in New Issue
Block a user