08aa9c9
%global         majorminor      1.0
08aa9c9
8eab018
#global gitrel     140
8eab018
#global gitcommit  a70055b58568f7304ba46bd8742232337013487b
8eab018
#global shortcommit %(c=%{gitcommit}; echo ${c:0:5})
5a66bb4
8a6728e
%global         _glib2                  2.32.0
08aa9c9
%global         _libxml2                2.4.0
08aa9c9
%global         _gobject_introspection  1.31.1
08aa9c9
08aa9c9
Name:           gstreamer1
ef2d7d3
Version:        1.9.2
2eb5799
Release:        3%{?gitcommit:.git%{shortcommit}}%{?dist}
08aa9c9
Summary:        GStreamer streaming media framework runtime
08aa9c9
08aa9c9
License:        LGPLv2+
08aa9c9
URL:            http://gstreamer.freedesktop.org/
5a66bb4
%if 0%{?gitrel}
5a66bb4
# git clone git://anongit.freedesktop.org/gstreamer/gstreamer
5a66bb4
# cd gstreamer; git reset --hard %{gitcommit}; ./autogen.sh; make; make distcheck
5a66bb4
Source0:        gstreamer-%{version}.tar.xz
5a66bb4
%else
08aa9c9
Source0:        http://gstreamer.freedesktop.org/src/gstreamer/gstreamer-%{version}.tar.xz
5a66bb4
%endif
d416855
## For GStreamer RPM provides
d416855
Patch0:         gstreamer-inspect-rpm-format.patch
5a78bff
Patch1:         0001-config-support-System-z.patch
2eb5799
Patch2:         gst-1.9.2-fix-ppc.patch
d416855
Source1:        gstreamer1.prov
d416855
Source2:        gstreamer1.attr
08aa9c9
08aa9c9
BuildRequires:  glib2-devel >= %{_glib2}
08aa9c9
BuildRequires:  libxml2-devel >= %{_libxml2}
08aa9c9
BuildRequires:  gobject-introspection-devel >= %{_gobject_introspection}
08aa9c9
BuildRequires:  bison
08aa9c9
BuildRequires:  flex
08aa9c9
BuildRequires:  m4
08aa9c9
BuildRequires:  check-devel
08aa9c9
BuildRequires:  gtk-doc >= 1.3
08aa9c9
BuildRequires:  gettext
08aa9c9
BuildRequires:  pkgconfig
08aa9c9
08aa9c9
BuildRequires:  chrpath
08aa9c9
08aa9c9
### documentation requirements
08aa9c9
BuildRequires:  python2
08aa9c9
BuildRequires:  openjade
08aa9c9
BuildRequires:  jadetex
08aa9c9
BuildRequires:  libxslt
08aa9c9
BuildRequires:  docbook-style-dsssl
08aa9c9
BuildRequires:  docbook-style-xsl
08aa9c9
BuildRequires:  docbook-utils
08aa9c9
BuildRequires:  transfig
08aa9c9
BuildRequires:  netpbm-progs
08aa9c9
BuildRequires:  tetex-dvips
08aa9c9
BuildRequires:  ghostscript
66c734b
%if !0%{?rhel}
66c734b
BuildRequires:  xfig
66c734b
%endif
08aa9c9
08aa9c9
%description
08aa9c9
GStreamer is a streaming media framework, based on graphs of filters which
08aa9c9
operate on media data. Applications using this library can do anything
08aa9c9
from real-time sound processing to playing videos, and just about anything
08aa9c9
else media-related.  Its plugin-based architecture means that new data
08aa9c9
types or processing capabilities can be added simply by installing new 
08aa9c9
plugins.
08aa9c9
08aa9c9
08aa9c9
%package devel
08aa9c9
Summary:        Libraries/include files for GStreamer streaming media framework
08aa9c9
Requires:       %{name} = %{version}-%{release}
08aa9c9
Requires:       glib2-devel >= %{_glib2}
08aa9c9
Requires:       libxml2-devel >= %{_libxml2}
08aa9c9
Requires:       check-devel
08aa9c9
08aa9c9
08aa9c9
%description devel
08aa9c9
The %{name}-devel package contains libraries and header files for
08aa9c9
developing applications that use %{name}.
08aa9c9
08aa9c9
08aa9c9
%package devel-docs
08aa9c9
Summary:         Developer documentation for GStreamer streaming media framework
08aa9c9
Requires:        %{name} = %{version}-%{release}
08aa9c9
BuildArch:       noarch
08aa9c9
08aa9c9
08aa9c9
%description devel-docs
08aa9c9
This %{name}-devel-docs contains developer documentation for the
08aa9c9
GStreamer streaming media framework.
08aa9c9
08aa9c9
08aa9c9
%prep
08aa9c9
%setup -q -n gstreamer-%{version}
d416855
%patch0 -p1 -b .rpm-provides
5a78bff
%patch1 -p1 -b .patch1
2eb5799
%patch2 -p1 -b .ppc
08aa9c9
08aa9c9
08aa9c9
%build
08aa9c9
%configure \
08aa9c9
  --with-package-name='Fedora GStreamer package' \
08aa9c9
  --with-package-origin='http://download.fedoraproject.org' \
a83adda
  --enable-gtk-doc \
08aa9c9
  --enable-debug \
08aa9c9
  --disable-tests --disable-examples
13ed21f
make %{?_smp_mflags} V=1
08aa9c9
08aa9c9
08aa9c9
%install
08aa9c9
rm -rf $RPM_BUILD_ROOT
08aa9c9
make install DESTDIR=$RPM_BUILD_ROOT
d416855
# Remove rpath.
2ef09cf
chrpath --delete $RPM_BUILD_ROOT%{_libdir}/libgstbase-1.0.so.*
2ef09cf
chrpath --delete $RPM_BUILD_ROOT%{_libdir}/libgstcheck-1.0.so.*
2ef09cf
chrpath --delete $RPM_BUILD_ROOT%{_libdir}/libgstcontroller-1.0.so.* 
2ef09cf
chrpath --delete $RPM_BUILD_ROOT%{_libdir}/libgstnet-1.0.so.*
08aa9c9
chrpath --delete $RPM_BUILD_ROOT%{_libdir}/gstreamer-%{majorminor}/libgstcoreelements.so
08aa9c9
chrpath --delete $RPM_BUILD_ROOT%{_libexecdir}/gstreamer-%{majorminor}/gst-plugin-scanner
1eed139
chrpath --delete $RPM_BUILD_ROOT%{_libexecdir}/gstreamer-%{majorminor}/gst-ptp-helper
08aa9c9
chrpath --delete $RPM_BUILD_ROOT%{_bindir}/gst-inspect-1.0
08aa9c9
chrpath --delete $RPM_BUILD_ROOT%{_bindir}/gst-launch-1.0
969b117
chrpath --delete $RPM_BUILD_ROOT%{_bindir}/gst-stats-1.0
08aa9c9
chrpath --delete $RPM_BUILD_ROOT%{_bindir}/gst-typefind-1.0
1eed139
chrpath --delete $RPM_BUILD_ROOT%{_datadir}/bash-completion/helpers/gst-completion-helper-%{majorminor}
08aa9c9
08aa9c9
%find_lang gstreamer-%{majorminor}
d416855
# Clean out files that should not be part of the rpm.
08aa9c9
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
08aa9c9
find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} ';'
d416855
# Add the provides script
d416855
install -m0755 -D %{SOURCE1} $RPM_BUILD_ROOT%{_rpmconfigdir}/gstreamer1.prov
d416855
# Add the gstreamer plugin file attribute entry (rpm >= 4.9.0)
d416855
install -m0644 -D %{SOURCE2} $RPM_BUILD_ROOT%{_rpmconfigdir}/fileattrs/gstreamer1.attr
08aa9c9
08aa9c9
%post -p /sbin/ldconfig
08aa9c9
08aa9c9
08aa9c9
%postun -p /sbin/ldconfig
08aa9c9
08aa9c9
08aa9c9
%files -f gstreamer-%{majorminor}.lang
2dfd34b
%license COPYING
2dfd34b
%doc AUTHORS NEWS README RELEASE
08aa9c9
%{_libdir}/libgstreamer-%{majorminor}.so.*
08aa9c9
%{_libdir}/libgstbase-%{majorminor}.so.*
08aa9c9
%{_libdir}/libgstcheck-%{majorminor}.so.*
08aa9c9
%{_libdir}/libgstcontroller-%{majorminor}.so.*
08aa9c9
%{_libdir}/libgstnet-%{majorminor}.so.*
08aa9c9
08aa9c9
%{_libexecdir}/gstreamer-%{majorminor}/
08aa9c9
08aa9c9
%dir %{_libdir}/gstreamer-%{majorminor}
08aa9c9
%{_libdir}/gstreamer-%{majorminor}/libgstcoreelements.so
969b117
%{_libdir}/gstreamer-%{majorminor}/libgstcoretracers.so
08aa9c9
08aa9c9
%{_libdir}/girepository-1.0/Gst-%{majorminor}.typelib
08aa9c9
%{_libdir}/girepository-1.0/GstBase-%{majorminor}.typelib
08aa9c9
%{_libdir}/girepository-1.0/GstCheck-%{majorminor}.typelib
08aa9c9
%{_libdir}/girepository-1.0/GstController-%{majorminor}.typelib
08aa9c9
%{_libdir}/girepository-1.0/GstNet-%{majorminor}.typelib
08aa9c9
08aa9c9
%{_bindir}/gst-inspect-%{majorminor}
08aa9c9
%{_bindir}/gst-launch-%{majorminor}
969b117
%{_bindir}/gst-stats-%{majorminor}
08aa9c9
%{_bindir}/gst-typefind-%{majorminor}
08aa9c9
d416855
%{_rpmconfigdir}/gstreamer1.prov
d416855
%{_rpmconfigdir}/fileattrs/gstreamer1.attr
d416855
08aa9c9
%doc %{_mandir}/man1/gst-inspect-%{majorminor}.*
08aa9c9
%doc %{_mandir}/man1/gst-launch-%{majorminor}.*
08aa9c9
%doc %{_mandir}/man1/gst-typefind-%{majorminor}.*
08aa9c9
5a66bb4
%{_datadir}/bash-completion/completions/gst-inspect-1.0
5a66bb4
%{_datadir}/bash-completion/completions/gst-launch-1.0
5a66bb4
%{_datadir}/bash-completion/helpers/gst
5a66bb4
%{_datadir}/bash-completion/helpers/gst-completion-helper-1.0
5a66bb4
08aa9c9
%files devel
08aa9c9
%dir %{_includedir}/gstreamer-%{majorminor}
08aa9c9
%dir %{_includedir}/gstreamer-%{majorminor}/gst
08aa9c9
%dir %{_includedir}/gstreamer-%{majorminor}/gst/base
08aa9c9
%dir %{_includedir}/gstreamer-%{majorminor}/gst/check
08aa9c9
%dir %{_includedir}/gstreamer-%{majorminor}/gst/controller
08aa9c9
%dir %{_includedir}/gstreamer-%{majorminor}/gst/net
08aa9c9
%{_includedir}/gstreamer-%{majorminor}/gst/*.h
08aa9c9
%{_includedir}/gstreamer-%{majorminor}/gst/base/*.h
08aa9c9
%{_includedir}/gstreamer-%{majorminor}/gst/check/*.h
08aa9c9
%{_includedir}/gstreamer-%{majorminor}/gst/controller/*.h
08aa9c9
%{_includedir}/gstreamer-%{majorminor}/gst/net/*.h
08aa9c9
08aa9c9
%{_libdir}/libgstreamer-%{majorminor}.so
08aa9c9
%{_libdir}/libgstbase-%{majorminor}.so
08aa9c9
%{_libdir}/libgstcheck-%{majorminor}.so
08aa9c9
%{_libdir}/libgstcontroller-%{majorminor}.so
08aa9c9
%{_libdir}/libgstnet-%{majorminor}.so
08aa9c9
08aa9c9
%{_datadir}/gir-1.0/Gst-%{majorminor}.gir
08aa9c9
%{_datadir}/gir-1.0/GstBase-%{majorminor}.gir
08aa9c9
%{_datadir}/gir-1.0/GstCheck-%{majorminor}.gir
08aa9c9
%{_datadir}/gir-1.0/GstController-%{majorminor}.gir
08aa9c9
%{_datadir}/gir-1.0/GstNet-%{majorminor}.gir
08aa9c9
08aa9c9
%{_datadir}/aclocal/gst-element-check-%{majorminor}.m4
08aa9c9
08aa9c9
%{_libdir}/pkgconfig/gstreamer-%{majorminor}.pc
08aa9c9
%{_libdir}/pkgconfig/gstreamer-base-%{majorminor}.pc
08aa9c9
%{_libdir}/pkgconfig/gstreamer-controller-%{majorminor}.pc
08aa9c9
%{_libdir}/pkgconfig/gstreamer-check-%{majorminor}.pc
08aa9c9
%{_libdir}/pkgconfig/gstreamer-net-%{majorminor}.pc
08aa9c9
08aa9c9
%files devel-docs
08aa9c9
%doc %{_datadir}/gtk-doc/html/gstreamer-%{majorminor}
08aa9c9
%doc %{_datadir}/gtk-doc/html/gstreamer-libs-%{majorminor}
08aa9c9
%doc %{_datadir}/gtk-doc/html/gstreamer-plugins-%{majorminor}
08aa9c9
08aa9c9
08aa9c9
%changelog
2eb5799
* Thu Sep  8 2016 Peter Robinson <pbrobinson@fedoraproject.org> 1.9.2-3
2eb5799
- fix build on Power64
2eb5799
5a78bff
* Thu Sep 01 2016 Wim Taymans <wtaymans@redhat.com> - 1.9.2-2
5a78bff
- fix build on s390x
5a78bff
ef2d7d3
* Thu Sep 01 2016 Wim Taymans <wtaymans@redhat.com> - 1.9.2-1
ef2d7d3
- Update to 1.9.2
d542314
- gstconfig.h was moved to normal include dir
ef2d7d3
484ca45
* Thu Jul 07 2016 Wim Taymans <wtaymans@redhat.com> - 1.9.1-1
484ca45
- Update to 1.9.1
484ca45
abcf3f7
* Thu Jun 09 2016 Wim Taymans <wtaymans@redhat.com> - 1.8.2-1
abcf3f7
- Update to 1.8.2
abcf3f7
0c1c581
* Thu Apr 21 2016 Wim Taymans <wtaymans@redhat.com> - 1.8.1-1
0c1c581
- Update to 1.8.1
0c1c581
c60739d
* Thu Mar 24 2016 Wim Taymans <wtaymans@redhat.com> - 1.8.0-1
c60739d
- Update to 1.8.0
c60739d
fc2f049
* Wed Mar 16 2016 Wim Taymans <wtaymans@redhat.com> - 1.7.91-1
fc2f049
- Update to 1.7.91
fc2f049
b834502
* Wed Mar 02 2016 Wim Taymans <wtaymans@redhat.com> - 1.7.90-1
b834502
- Update to 1.7.90
b834502
72faa5a
* Fri Feb 19 2016 Wim Taymans <wtaymans@redhat.com> - 1.7.2-1
72faa5a
- Update to 1.7.2
72faa5a
a13e91b
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.1-2
a13e91b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
a13e91b
969b117
* Mon Jan 4 2016 Wim Taymans <wtaymans@redhat.com> - 1.7.1-1
969b117
- Update to 1.7.1
969b117
- update rpm inspect patch
969b117
- add gst-stats
969b117
- add core traces
969b117
12d1a83
* Tue Dec 15 2015 Wim Taymans <wtaymans@redhat.com> - 1.6.2-1
12d1a83
- Update to 1.6.2
12d1a83
1fe7557
* Mon Nov 2 2015 Wim Taymans <wtaymans@redhat.com> - 1.6.1-1
1fe7557
- Update to 1.6.1
1fe7557
1eed139
* Sat Sep 26 2015 Kalev Lember <klember@redhat.com> - 1.6.0-2
1eed139
- Remove lib64 rpaths from newly added binaries
1eed139
45d0ea3
* Sat Sep 26 2015 Kalev Lember <klember@redhat.com> - 1.6.0-1
45d0ea3
- Update to 1.6.0
2dfd34b
- Use license macro for COPYING
45d0ea3
a95467a
* Mon Sep 21 2015 Wim Taymans <wtaymans@redhat.com> - 1.5.91-1
a95467a
- Update to 1.5.91
a95467a
0798478
* Wed Aug 19 2015 Wim Taymans <wtaymans@redhat.com> - 1.5.90-1
0798478
- Update to 1.5.90
0798478
c1f6621
* Thu Jun 25 2015 Wim Taymans <wtaymans@redhat.com> - 1.5.2-1
c1f6621
- Update to 1.5.2
c1f6621
15baceb
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.1-2
15baceb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
15baceb
5a66bb4
* Tue May 5 2015 Wim Taymans <wtaymans@redhat.com> - 1.5.1-1
5a66bb4
- Update to 1.5.1
5a66bb4
- add new bash-completion scripts
5a66bb4
- gstconfig.h got moved
5a66bb4
90465b0
* Sat Feb 21 2015 Till Maas <opensource@till.name> - 1.4.5-2
90465b0
- Rebuilt for Fedora 23 Change
90465b0
  https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code
90465b0
Bastien Nocera d4c5519
* Wed Jan 28 2015 Bastien Nocera <bnocera@redhat.com> 1.4.5-1
Bastien Nocera d4c5519
- Update to 1.4.5
Bastien Nocera d4c5519
fdce3ea
* Fri Nov 14 2014 Kalev Lember <kalevlember@gmail.com> - 1.4.4-1
fdce3ea
- Update to 1.4.4
fdce3ea
dce9a4f
* Mon Sep 22 2014 Wim Taymans <wtaymans@redhat.com> - 1.4.2-1
dce9a4f
- Update to 1.4.2
dce9a4f
35b732a
* Fri Aug 29 2014 Wim Taymans <wtaymans@redhat.com> - 1.4.1-1
35b732a
- Update to 1.4.1
35b732a
7ef623a
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.0-3
7ef623a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
7ef623a
6ecf501
* Tue Jul 22 2014 Kalev Lember <kalevlember@gmail.com> - 1.4.0-2
6ecf501
- Rebuilt for gobject-introspection 1.41.4
6ecf501
ab768e9
* Tue Jul 22 2014 Wim Taymans <wtaymans@redhat.com> - 1.4.0-1
ab768e9
- Update to 1.4.0
ab768e9
7f0a931
* Fri Jul 11 2014 Wim Taymans <wtaymans@redhat.com> - 1.3.91-1
7f0a931
- Update to 1.3.91
7f0a931
Richard Hughes c77e0e3
* Mon Jun 30 2014 Richard Hughes <rhughes@redhat.com> - 1.3.90-1
Richard Hughes c77e0e3
- Update to 1.3.90
Richard Hughes c77e0e3
b96ca35
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.4-2
b96ca35
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
b96ca35
675255b
* Sun Apr 20 2014 Brian Pepple <bpepple@fedoraproject.org> - 1.2.4-1
675255b
- Update to 1.2.4.
675255b
258d5f5
* Mon Feb 10 2014 Brian Pepple <bpepple@fedoraproject.org> - 1.2.3-1
258d5f5
- Update to 1.2.3.
258d5f5
fe1ab7c
* Fri Dec 27 2013 Brian Pepple <bpepple@fedoraproject.org> - 1.2.2-1
fe1ab7c
- Update to 1.2.2.
fe1ab7c
e394654
* Mon Nov 11 2013 Brian Pepple <bpepple@fedoraproject.org> - 1.2.1-1
e394654
- Update to 1.2.1.
e394654
2f1a9c9
* Tue Sep 24 2013 Brian Pepple <bpepple@fedoraproject.org> - 1.2.0-1
2f1a9c9
- Update to 1.2.0.
2f1a9c9
b28273a
* Thu Sep 19 2013 Brian Pepple <bpepple@fedoraproject.org> - 1.1.90-1
b28273a
- Update to 1.1.90.
b28273a
a66ba4c
* Wed Aug 28 2013 Brian Pepple <bpepple@fedoraproject.org> - 1.1.4-1
a66ba4c
- Update to 1.1.4.
a66ba4c
d8db76b
* Mon Jul 29 2013 Brian Pepple <bpepple@fedoraproject.org> - 1.1.3-1
d8db76b
- Update to 1.1.3.
d8db76b
00bdd4e
* Fri Jul 12 2013 Brian Pepple <bpepple@fedoraproject.org> - 1.1.2-1
00bdd4e
- Update to 1.1.2.
00bdd4e
e5b1bde
* Fri Apr 26 2013 Brian Pepple <bpepple@fedoraproject.org> - 1.0.7-1
e5b1bde
- Update to 1.0.7.
e5b1bde
66c734b
* Wed Mar 27 2013 Adam Jackson <ajax@redhat.com>
66c734b
- Tweak BRs for RHEL
66c734b
95d1f53
* Fri Mar 22 2013 Brian Pepple <bpepple@fedoraproject.org> - 1.0.6-1
95d1f53
- Update to 1.0.6.
fd4dff3
- Remove BR on PyXML.
95d1f53
93b8050
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.5-2
93b8050
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
93b8050
c447593
* Tue Jan  8 2013 Brian Pepple <bpepple@fedoraproject.org> - 1.0.5-1
c447593
- Update to 1.0.5.
c447593
e8116a5
* Wed Dec 19 2012 Brian Pepple <bpepple@fedoraproject.org> - 1.0.4-1
e8116a5
- Update to 1.0.4
e8116a5
e865f40
* Wed Nov 21 2012 Brian Pepple <bpepple@fedoraproject.org> - 1.0.3-1
e865f40
- Update to 1.0.3
e865f40
f374c4c
* Thu Oct 25 2012 Brian Pepple <bpepple@fedoraproject.org> - 1.0.2-1
f374c4c
- Update to 1.0.2.
f374c4c
9909cda
* Sun Oct  7 2012 Brian Pepple <bpepple@fedoraproject.org> - 1.0.1-1
9909cda
- Update to 1.0.1
9909cda
13ed21f
* Mon Oct  1 2012 Peter Robinson <pbrobinson@fedoraproject.org> - 1.0.0-2
13ed21f
- Enable verbose build
13ed21f
05afb96
* Mon Sep 24 2012 Brian Pepple <bpepple@fedoraproject.org> - 1.0.0-1
05afb96
- Update to 1.0.0.
05afb96
a83adda
* Wed Sep 19 2012 Brian Pepple <bpepple@fedoraproject.org> - 0.11.99-1
a83adda
- Update to 0.11.99
a83adda
7e25ce6
* Fri Sep 14 2012 Brian Pepple <bpepple@fedoraproject.org> - 0.11.94-1
7e25ce6
- Update to 0.11.94.
7e25ce6
d416855
* Sat Sep  8 2012 Brian Pepple <bpepple@fedoraproject.org> - 0.11.93-2
d416855
- Add patch to gst-inspect to generate RPM provides
d416855
- Add RPM find-provides script
d416855
8a6728e
* Tue Aug 14 2012 Brian Pepple <bpepple@fedoraproject.org> - 0.11.93-1
8a6728e
- Update to 0.11.93.
8a6728e
- Bump minimum version of glib2 needed.
8a6728e
08aa9c9
* Fri Aug  3 2012 Brian Pepple <bpepple@fedoraproject.org> - 0.11.92-2
08aa9c9
- Use %%global instead of %%define.
08aa9c9
- Remove rpath.
08aa9c9
08aa9c9
* Tue Jul 17 2012 Brian Pepple <bpepple@fedoraproject.org> - 0.11.92-1
08aa9c9
- Initial Fedora spec file.
08aa9c9