diff --git a/.gitignore b/.gitignore index e69de29..2ab57d0 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/gstreamer-0.11.92.tar.xz diff --git a/gstreamer1.spec b/gstreamer1.spec new file mode 100644 index 0000000..6ecafb7 --- /dev/null +++ b/gstreamer1.spec @@ -0,0 +1,192 @@ +%global majorminor 1.0 + +%global _glib2 2.31.14 +%global _libxml2 2.4.0 +%global _gobject_introspection 1.31.1 + +Name: gstreamer1 +Version: 0.11.92 +Release: 2%{?dist} +Summary: GStreamer streaming media framework runtime + +License: LGPLv2+ +URL: http://gstreamer.freedesktop.org/ +Source0: http://gstreamer.freedesktop.org/src/gstreamer/gstreamer-%{version}.tar.xz +## TODO: Create new patch for rpm provides. + +BuildRequires: glib2-devel >= %{_glib2} +BuildRequires: libxml2-devel >= %{_libxml2} +BuildRequires: gobject-introspection-devel >= %{_gobject_introspection} +BuildRequires: bison +BuildRequires: flex +BuildRequires: m4 +BuildRequires: check-devel +BuildRequires: gtk-doc >= 1.3 +BuildRequires: gettext +BuildRequires: pkgconfig + +BuildRequires: chrpath + +### documentation requirements +BuildRequires: python2 +BuildRequires: openjade +BuildRequires: jadetex +BuildRequires: libxslt +BuildRequires: docbook-style-dsssl +BuildRequires: docbook-style-xsl +BuildRequires: docbook-utils +BuildRequires: transfig +BuildRequires: xfig +BuildRequires: netpbm-progs +BuildRequires: tetex-dvips +BuildRequires: ghostscript +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. + + +%package devel +Summary: Libraries/include files for GStreamer streaming media framework +Requires: %{name} = %{version}-%{release} +Requires: glib2-devel >= %{_glib2} +Requires: libxml2-devel >= %{_libxml2} +Requires: check-devel + + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + + +%package devel-docs +Summary: Developer documentation for GStreamer streaming media framework +Requires: %{name} = %{version}-%{release} +BuildArch: noarch + + +%description devel-docs +This %{name}-devel-docs contains developer documentation for the +GStreamer streaming media framework. + + +%prep +%setup -q -n gstreamer-%{version} + + +%build +%configure \ + --with-package-name='Fedora GStreamer package' \ + --with-package-origin='http://download.fedoraproject.org' \ + --enable-gtk-doc \ + --enable-debug \ + --disable-tests --disable-examples +make %{?_smp_mflags} + + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT + +chrpath --delete $RPM_BUILD_ROOT%{_libdir}/libgstbase-1.0.so.0.0.0 +chrpath --delete $RPM_BUILD_ROOT%{_libdir}/libgstcheck-1.0.so.0.0.0 +chrpath --delete $RPM_BUILD_ROOT%{_libdir}/libgstcontroller-1.0.so.0.0.0 +chrpath --delete $RPM_BUILD_ROOT%{_libdir}/libgstnet-1.0.so.0.0.0 +chrpath --delete $RPM_BUILD_ROOT%{_libdir}/gstreamer-%{majorminor}/libgstcoreelements.so +chrpath --delete $RPM_BUILD_ROOT%{_libexecdir}/gstreamer-%{majorminor}/gst-plugin-scanner +chrpath --delete $RPM_BUILD_ROOT%{_bindir}/gst-inspect-1.0 +chrpath --delete $RPM_BUILD_ROOT%{_bindir}/gst-launch-1.0 +chrpath --delete $RPM_BUILD_ROOT%{_bindir}/gst-typefind-1.0 + +%find_lang gstreamer-%{majorminor} + +find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' +find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} ';' + + +%post -p /sbin/ldconfig + + +%postun -p /sbin/ldconfig + + +%files -f gstreamer-%{majorminor}.lang +%doc AUTHORS COPYING NEWS README RELEASE +%{_libdir}/libgstreamer-%{majorminor}.so.* +%{_libdir}/libgstbase-%{majorminor}.so.* +%{_libdir}/libgstcheck-%{majorminor}.so.* +%{_libdir}/libgstcontroller-%{majorminor}.so.* +%{_libdir}/libgstnet-%{majorminor}.so.* + +%{_libexecdir}/gstreamer-%{majorminor}/ + +%dir %{_libdir}/gstreamer-%{majorminor} +%{_libdir}/gstreamer-%{majorminor}/libgstcoreelements.so + +%{_libdir}/girepository-1.0/Gst-%{majorminor}.typelib +%{_libdir}/girepository-1.0/GstBase-%{majorminor}.typelib +%{_libdir}/girepository-1.0/GstCheck-%{majorminor}.typelib +%{_libdir}/girepository-1.0/GstController-%{majorminor}.typelib +%{_libdir}/girepository-1.0/GstNet-%{majorminor}.typelib + +%{_bindir}/gst-inspect-%{majorminor} +%{_bindir}/gst-launch-%{majorminor} +%{_bindir}/gst-typefind-%{majorminor} + +%doc %{_mandir}/man1/gst-inspect-%{majorminor}.* +%doc %{_mandir}/man1/gst-launch-%{majorminor}.* +%doc %{_mandir}/man1/gst-typefind-%{majorminor}.* + +%files devel +%dir %{_includedir}/gstreamer-%{majorminor} +%dir %{_includedir}/gstreamer-%{majorminor}/gst +%dir %{_includedir}/gstreamer-%{majorminor}/gst/base +%dir %{_includedir}/gstreamer-%{majorminor}/gst/check +%dir %{_includedir}/gstreamer-%{majorminor}/gst/controller +%dir %{_includedir}/gstreamer-%{majorminor}/gst/net +%{_includedir}/gstreamer-%{majorminor}/gst/*.h +%{_includedir}/gstreamer-%{majorminor}/gst/base/*.h +%{_includedir}/gstreamer-%{majorminor}/gst/check/*.h +%{_includedir}/gstreamer-%{majorminor}/gst/controller/*.h +%{_includedir}/gstreamer-%{majorminor}/gst/net/*.h + +%{_libdir}/libgstreamer-%{majorminor}.so +%{_libdir}/libgstbase-%{majorminor}.so +%{_libdir}/libgstcheck-%{majorminor}.so +%{_libdir}/libgstcontroller-%{majorminor}.so +%{_libdir}/libgstnet-%{majorminor}.so + +%{_datadir}/gir-1.0/Gst-%{majorminor}.gir +%{_datadir}/gir-1.0/GstBase-%{majorminor}.gir +%{_datadir}/gir-1.0/GstCheck-%{majorminor}.gir +%{_datadir}/gir-1.0/GstController-%{majorminor}.gir +%{_datadir}/gir-1.0/GstNet-%{majorminor}.gir + +%{_datadir}/aclocal/gst-element-check-%{majorminor}.m4 + +%{_libdir}/pkgconfig/gstreamer-%{majorminor}.pc +%{_libdir}/pkgconfig/gstreamer-base-%{majorminor}.pc +%{_libdir}/pkgconfig/gstreamer-controller-%{majorminor}.pc +%{_libdir}/pkgconfig/gstreamer-check-%{majorminor}.pc +%{_libdir}/pkgconfig/gstreamer-net-%{majorminor}.pc + + +%files devel-docs +%doc %{_datadir}/gtk-doc/html/gstreamer-%{majorminor} +%doc %{_datadir}/gtk-doc/html/gstreamer-libs-%{majorminor} +%doc %{_datadir}/gtk-doc/html/gstreamer-plugins-%{majorminor} + + +%changelog +* Fri Aug 3 2012 Brian Pepple - 0.11.92-2 +- Use %%global instead of %%define. +- Remove rpath. + +* Tue Jul 17 2012 Brian Pepple - 0.11.92-1 +- Initial Fedora spec file. + diff --git a/sources b/sources index e69de29..3a7e563 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +18afb50f6a508ac59dca694882091e66 gstreamer-0.11.92.tar.xz