-Name: gstreamer0.10
-Summary: GStreamer streaming media framework runtime
-Version: 0.10.36
-Release: 6
-Group: Applications/Multimedia
-License: LGPLv2+
-Source0: %{name}-%{version}.tar.gz
-Requires(post): /sbin/ldconfig
-Requires(postun): /sbin/ldconfig
-BuildRequires: pkgconfig(glib-2.0)
-BuildRequires: pkgconfig(libxml-2.0)
-BuildRequires: pkgconfig(mm-ta)
+%bcond_with introspection
+
+Name: gstreamer
+Version: 1.0.7
+Release: 0
+%define gst_branch 1.0
+Summary: Streaming-Media Framework Runtime
+License: LGPL-2.1+
+Group: Multimedia/Multimedia Framework
+Url: http://gstreamer.freedesktop.org/
+Source0: http://download.gnome.org/sources/gstreamer/1.0/%{name}-%{version}.tar.xz
+Source1: gstreamer.macros
+Source2: gstreamer.prov
+Source99: baselibs.conf
BuildRequires: bison
+BuildRequires: gettext-tools
+BuildRequires: check-devel
+BuildRequires: fdupes
BuildRequires: flex
-
+BuildRequires: glib2-devel >= 2.32.0
+BuildRequires: libtool
+BuildRequires: gst-common
+BuildRequires: libxml2-devel
+%if %{with introspection}
+BuildRequires: gobject-introspection-devel >= 1.31.1
+%endif
+Requires: libgstreamer >= %{version}
%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 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 plug-in-based architecture
+means that new data types or processing capabilities can be added by
+installing new plug-ins.
+
+%package -n libgstreamer
+Summary: Streaming-Media Framework Runtime
+Group: Multimedia/Multimedia Framework
+# We want to have core modules installed:
+Requires: %{name}
+
+%description -n libgstreamer
+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 plug-in-based architecture
+means that new data types or processing capabilities can be added by
+installing new plug-ins.
+
+%package -n typelib-Gst
+Summary: Streaming-Media Framework Runtime -- Introspection bindings
+Group: Multimedia/Multimedia Framework
+
+%description -n typelib-Gst
+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 plug-in-based architecture
+means that new data types or processing capabilities can be added by
+installing new plug-ins.
+
+This package provides the GObject Introspection bindings for GStreamer.
+
+%package utils
+Summary: Streaming-Media Framework Runtime
+Group: Multimedia/Multimedia Framework
+Provides: gstreamer:%{_bindir}/gst-launch-%{gst_branch} = %{version}
+# Symbol for unversioned wrappers:
+Provides: gstreamer-utils_versioned = %{version}
+
+%description utils
+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 plug-in-based architecture
+means that new data types or processing capabilities can be added by
+installing new plug-ins.
%package devel
-Summary: Development tools for GStreamer
-Group: Development/Libraries
-Requires: %{name} = %{version}-%{release}
+Summary: Include Files and Libraries mandatory for Development
+Group: Development/Libraries
+Requires: %{name} = %{version}
+# gstreamer-utils is required for the gstreamer-provides rpm magic.
+Requires: gstreamer-utils = %{version}
+Requires: libgstreamer = %{version}
+%if %{with introspection}
+Requires: typelib-Gst = %{version}
+%endif
%description devel
-This package contains the libraries and includes files necessary to develop
-applications and plugins for GStreamer. If you plan to develop applications
-with GStreamer, consider installing the gstreamer-devel-docs package and the
-documentation packages for any plugins you intend to use.
-
-
-%package tools
-Summary: Common tools and files for GStreamer streaming media framework
-Group: Applications/Multimedia
-Requires: %{name} = %{version}-%{release}
-
-%description tools
-This package contains wrapper scripts for the command-line tools that work
-with different major/minor versions of GStreamer.
-
+This package contains all necessary include files and libraries needed
+to develop applications that require these.
+%lang_package
%prep
-%setup -q -n %{name}-%{version}
-
+%setup -q -n gstreamer-%{version}
+rm -rf common
+cp -a %{_datadir}/gst-common common
+find common -exec touch {} \;
%build
-
-
-export CFLAGS+=" -Wall -g -fPIC\
- -DGST_EXT_AV_RECORDING\
- -DGST_EXT_QUEUE_ENHANCEMENT\
- -DGST_EXT_CURRENT_BYTES\
- -DGST_EXT_BASEPARSER_MODIFICATION\
- -DGST_EXT_BASIC_MODIFICATION\
- -DGST_EXT_MODIFIED_DQBUF"
-
-%configure --prefix=/usr\
- --disable-valgrind\
- --without-check\
- --disable-static\
- --disable-rpath\
- --disable-libtool-lock\
- --disable-alloc-trace\
- --disable-gcov\
- --disable-nls\
- --disable-examples\
- --disable-tests\
- --disable-failing-tests\
- --disable-docbook\
- --disable-gtk-doc\
- --disable-registry-update\
- --disable-loadsave\
- --with-html-dir=/tmp/dump
-
-make %{?jobs:-j%jobs}
+# FIXME: GTKDOC_CFLAGS, GST_OBJ_CFLAGS:
+# Silently ignored compilation of uninstalled gtk-doc scanners without RPM_OPT_FLAGS.
+export V=1
+NOCONFIGURE=1 ./autogen.sh
+export CFLAGS="%{optflags} -fno-strict-aliasing"
+%configure\
+%if %{with introspection}
+ --enable-introspection\
+%endif
+ --disable-static
+make %{?_smp_mflags}
%install
-rm -rf %{buildroot}
%make_install
-
-rm -rf %{buildroot}/tmp/dump
-rm -rf %{buildroot}/%{_libdir}/libgstnet*
-
-
-%post -p /sbin/ldconfig
-
-%postun -p /sbin/ldconfig
-
-
-
-
-
-
-
+mkdir -p %{buildroot}%{_datadir}/gstreamer-%{gst_branch}/presets
+mkdir -p %{buildroot}%{_docdir}/%{name}
+%find_lang %{name}-%{gst_branch}
+mv %{name}-%{gst_branch}.lang %{name}.lang
+rm -rf %{buildroot}%{_datadir}/gtk-doc
+rm -rf %{buildroot}%{_docdir}/%{name}/manual
+rm -rf %{buildroot}%{_docdir}/%{name}/pwg
+mkdir -p %{buildroot}%{_datadir}/gstreamer-%{gst_branch}/presets
+%__install -m644 -D %{S:1} %{buildroot}%{_libexecdir}/rpm/fileattrs/gstreamer.attr
+%__install -m755 -D %{S:2} %{buildroot}%{_libexecdir}/rpm/gstreamer-provides
+%fdupes %{buildroot}
+%post -n libgstreamer -p /sbin/ldconfig
+%postun -n libgstreamer -p /sbin/ldconfig
%files
-%manifest gstreamer.manifest
-%defattr(-,root,root,-)
-%doc AUTHORS COPYING NEWS README RELEASE TODO
-%{_libdir}/libgstreamer-0.10.so.*
-%{_libdir}/libgstbase-0.10.so.*
-%{_libdir}/libgstcontroller-0.10.so.*
-%{_libdir}/libgstdataprotocol-0.10.so.*
-#%exclude %{_libdir}/libgstnet-0.10.so.*
-%{_libdir}/libgstcheck-0.10.so.*
-%dir %{_libdir}/gstreamer-0.10
-%{_libdir}/gstreamer-0.10/libgstcoreelements.so
-%{_libdir}/gstreamer-0.10/libgstcoreindexers.so
-%dir %{_libexecdir}/gstreamer-0.10
-%{_libexecdir}/gstreamer-0.10/gst-plugin-scanner
-%{_bindir}/gst-feedback-0.10
-%{_bindir}/gst-inspect-0.10
-%{_bindir}/gst-launch-0.10
-%{_bindir}/gst-typefind-0.10
-%{_bindir}/gst-xmlinspect-0.10
-%doc %{_mandir}/man1/gst-feedback-0.10.*
-%doc %{_mandir}/man1/gst-inspect-0.10.*
-%doc %{_mandir}/man1/gst-launch-0.10.*
-%doc %{_mandir}/man1/gst-typefind-0.10.*
-%doc %{_mandir}/man1/gst-xmlinspect-0.10.*
-
+%defattr(-, root, root)
+%license COPYING
+%dir %{_datadir}/gstreamer-%{gst_branch}
+%dir %{_datadir}/gstreamer-%{gst_branch}/presets
+%dir %{_libdir}/gstreamer-%{gst_branch}
+%{_libdir}/gstreamer-%{gst_branch}/*.so
+%dir %{_libexecdir}/gstreamer-%{gst_branch}
+%{_libexecdir}/gstreamer-%{gst_branch}/gst-plugin-scanner
+
+%files -n libgstreamer
+%defattr(-, root, root)
+%{_libdir}/*.so.*
+
+
+%if %{with introspection}
+%files -n typelib-Gst
+%defattr(-, root, root)
+%{_libdir}/girepository-1.0/Gst-1.0.typelib
+%{_libdir}/girepository-1.0/GstBase-1.0.typelib
+%{_libdir}/girepository-1.0/GstCheck-1.0.typelib
+%{_libdir}/girepository-1.0/GstController-1.0.typelib
+%{_libdir}/girepository-1.0/GstNet-1.0.typelib
+%endif
+
+%files utils
+%defattr(-, root, root)
+%{_bindir}/*-%{gst_branch}
+%doc %{_mandir}/man?/*-%{gst_branch}.*
%files devel
-%defattr(-,root,root,-)
-%dir %{_includedir}/gstreamer-0.10
-%dir %{_includedir}/gstreamer-0.10/gst
-%{_includedir}/gstreamer-0.10/gst/*.h
-%{_includedir}/gstreamer-0.10/gst/base
-%{_includedir}/gstreamer-0.10/gst/check
-%{_includedir}/gstreamer-0.10/gst/controller
-%{_includedir}/gstreamer-0.10/gst/dataprotocol
-%{_includedir}/gstreamer-0.10/gst/net
-%{_datadir}/aclocal/gst-element-check-0.10.m4
-%{_libdir}/libgstreamer-0.10.so
-%{_libdir}/libgstbase-0.10.so
-%{_libdir}/libgstcontroller-0.10.so
-%{_libdir}/libgstdataprotocol-0.10.so
-#%exclude %{_libdir}/libgstnet-0.10.so
-%{_libdir}/libgstcheck-0.10.so
-%{_libdir}/pkgconfig/gstreamer-0.10.pc
-%{_libdir}/pkgconfig/gstreamer-base-0.10.pc
-%{_libdir}/pkgconfig/gstreamer-controller-0.10.pc
-%{_libdir}/pkgconfig/gstreamer-check-0.10.pc
-%{_libdir}/pkgconfig/gstreamer-dataprotocol-0.10.pc
-%{_libdir}/pkgconfig/gstreamer-net-0.10.pc
-
-%files tools
-%manifest gstreamer-tools.manifest
-%defattr(-,root,root,-)
-%{_bindir}/gst-feedback
-%{_bindir}/gst-inspect
-%{_bindir}/gst-launch
-%{_bindir}/gst-typefind
-%{_bindir}/gst-xmlinspect
-#%{_bindir}/gst-xmllaunch
-
+%defattr(-, root, root)
+%{_datadir}/aclocal/*.m4
+%{_includedir}/*
+%{_libdir}/*.so
+%{_libdir}/pkgconfig/*.pc
+%{_libexecdir}/rpm/gstreamer-provides
+%{_libexecdir}/rpm/fileattrs/gstreamer.attr
+%if %{with introspection}
+%{_datadir}/gir-1.0/*.gir
+%endif
+
+%changelog
+++ /dev/null
-Name: libfeedback
-Summary: Feedback library
-Version: 0.1.3
-Release: 0
-Group: System/Libraries
-License: Apache License, Version 2.0
-Source0: %{name}-%{version}.tar.gz
-Source1: libsvi.manifest
-source2: libfeedback.manifest
-source3: svi-data-sdk.manifest
-Requires(post): /sbin/ldconfig
-Requires(postun): /sbin/ldconfig
-BuildRequires: cmake
-BuildRequires: pkgconfig(dlog)
-BuildRequires: pkgconfig(vconf)
-BuildRequires: pkgconfig(mm-keysound)
-BuildRequires: pkgconfig(haptic)
-BuildRequires: pkgconfig(libxml-2.0)
-BuildRequires: pkgconfig(glib-2.0)
-BuildRequires: pkgconfig(capi-base-common)
-
-%description
-Feedback library for playing sound, vibration and led
-
-
-%package -n libfeedback-devel
-Summary: Feedback library for (devel)
-Group: Development/Libraries
-Requires: libfeedback = %{version}-%{release}
-
-%description -n libfeedback-devel
-Feedback library for playing sound, vibration and led (devel)
-
-%package -n libsvi
-Summary: SVI library
-Group: Development/Libraries
-Requires: libfeedback = %{version}-%{release}
-
-%description -n libsvi
-SVI library
-
-%package -n libsvi-devel
-Summary: SVI library for (devel)
-Group: Development/Libraries
-Requires: libsvi = %{version}-%{release}
-
-%description -n libsvi-devel
-SVI library (devel)
-
-%package -n svi-data
-Summary: svi resource package
-Group: Development/Libraries
-
-%description -n svi-data
-svi resource package
-
-
-%prep
-%setup -q
-
-%build
-cp %{SOURCE1} .
-cp %{SOURCE2} .
-cp %{SOURCE3} .
-%cmake .
-make
-
-%install
-rm -rf %{buildroot}
-%make_install
-
-mkdir -p %{buildroot}/opt/share/svi/sound/touch
-mkdir -p %{buildroot}/opt/share/svi/sound/operation
-mkdir -p %{buildroot}/opt/share/svi/haptic/default
-mkdir -p %{buildroot}/opt/share/svi/haptic/touch
-
-%post -p /sbin/ldconfig
-
-%post -n svi-data
-ln -s %{_datadir}/svi/sound/touch/key0.wav /opt/share/svi/sound/touch
-ln -s %{_datadir}/svi/sound/touch/key1.wav /opt/share/svi/sound/touch
-ln -s %{_datadir}/svi/sound/touch/key2.wav /opt/share/svi/sound/touch
-ln -s %{_datadir}/svi/sound/touch/key3.wav /opt/share/svi/sound/touch
-ln -s %{_datadir}/svi/sound/touch/key4.wav /opt/share/svi/sound/touch
-ln -s %{_datadir}/svi/sound/touch/key5.wav /opt/share/svi/sound/touch
-ln -s %{_datadir}/svi/sound/touch/key6.wav /opt/share/svi/sound/touch
-ln -s %{_datadir}/svi/sound/touch/key7.wav /opt/share/svi/sound/touch
-ln -s %{_datadir}/svi/sound/touch/key8.wav /opt/share/svi/sound/touch
-ln -s %{_datadir}/svi/sound/touch/key9.wav /opt/share/svi/sound/touch
-ln -s %{_datadir}/svi/sound/touch/keyasterisk.wav /opt/share/svi/sound/touch
-ln -s %{_datadir}/svi/sound/touch/keysharp.wav /opt/share/svi/sound/touch
-ln -s %{_datadir}/svi/sound/touch/sip.wav /opt/share/svi/sound/touch
-ln -s %{_datadir}/svi/sound/touch/sip_backspace.wav /opt/share/svi/sound/touch
-ln -s %{_datadir}/svi/sound/touch/touch.wav /opt/share/svi/sound/touch
-ln -s %{_datadir}/svi/sound/operation/call_connect.wav /opt/share/svi/sound/operation
-ln -s %{_datadir}/svi/sound/operation/call_disconnect.wav /opt/share/svi/sound/operation
-ln -s %{_datadir}/svi/sound/operation/charger_connection.wav /opt/share/svi/sound/operation
-ln -s %{_datadir}/svi/sound/operation/fully_charged.wav /opt/share/svi/sound/operation
-ln -s %{_datadir}/svi/sound/operation/list_reorder.wav /opt/share/svi/sound/operation
-ln -s %{_datadir}/svi/sound/operation/lock.wav /opt/share/svi/sound/operation
-ln -s %{_datadir}/svi/sound/operation/low_battery.wav /opt/share/svi/sound/operation
-ln -s %{_datadir}/svi/sound/operation/minute_minder.wav /opt/share/svi/sound/operation
-ln -s %{_datadir}/svi/sound/operation/power_on.wav /opt/share/svi/sound/operation
-ln -s %{_datadir}/svi/sound/operation/shutter.wav /opt/share/svi/sound/operation
-ln -s %{_datadir}/svi/sound/operation/slider_sweep.wav /opt/share/svi/sound/operation
-ln -s %{_datadir}/svi/sound/operation/unlock.wav /opt/share/svi/sound/operation
-ln -s %{_datadir}/svi/sound/operation/volume_control.wav /opt/share/svi/sound/operation
-ln -s %{_datadir}/svi/haptic/default/Basic_call.tht /opt/share/svi/haptic/default
-ln -s %{_datadir}/svi/haptic/touch/touch.tht /opt/share/svi/haptic/touch
-
-%postun -p /sbin/ldconfig
-
-%postun -n svi-data
-rm -rf %{_datadir}/svi/
-rm -rf /opt/share/svi/
-
-%files
-%manifest libfeedback.manifest
-%defattr(-,root,root,-)
-%{_libdir}/libfeedback.so.*
-
-%files -n libfeedback-devel
-%defattr(-,root,root,-)
-%{_includedir}/feedback/*.h
-%{_libdir}/libfeedback.so
-%{_libdir}/pkgconfig/feedback.pc
-
-%files -n libsvi
-%manifest libsvi.manifest
-%defattr(-,root,root,-)
-%{_libdir}/libsvi.so.*
-
-%files -n libsvi-devel
-%defattr(-,root,root-)
-%{_includedir}/svi/*.h
-%{_libdir}/libsvi.so
-%{_libdir}/pkgconfig/svi.pc
-
-%files -n svi-data
-%defattr(644,root,root,-)
-%{_datadir}/svi/*
-%defattr(666,app,app,-)
-%dir /opt/share/svi/sound/touch
-%dir /opt/share/svi/sound/operation
-%dir /opt/share/svi/haptic/default
-%dir /opt/share/svi/haptic/touch
-%manifest svi-data-sdk.manifest