%global api_ver 1.0 %global branch 1.4 %define doc_license %{nil} %define doc_license 1 %if 0%{?rhel}%{?fedora} %if 0%{?rhel} %if 0%{?rhel} < 7 %define doc_license 0 %endif %else %if 0%{?fedora} < 19 %define doc_license 0 %endif %endif %endif %define license_file COPYING %define backport %{nil} %if 0%{?rhel}%{?fedora} %if 0%{?fedora} %if 0%{?fedora} <= 19 %define backport 1 %endif %endif %if 0%{?rhel} %if 0%{?rhel} <= 7 %define backport 1 %endif %endif %endif Name: gstreamermm Version: 1.4.3 Release: 3%{?dist} Summary: C++ wrapper for GStreamer library Group: System Environment/Libraries License: LGPLv2+ URL: http://www.gtkmm.org/ Source0: http://ftp.gnome.org/pub/GNOME/sources/gstreamermm/%{branch}/%{name}-%{version}.tar.xz # check.cc: In member function 'Glib::RefPtr Gst::Check::_Check::setup_element(const Glib::ustring&)': # check.cc:57:69: error: cannot convert 'Glib::RefPtr' to 'bool' for argument '1' to 'void ThrowIf(bool, const Glib::ustring&)' # ThrowIf (element, "Could not create a '" + factory + "' element"); # ^ # make[2]: *** [check.lo] Error 1 # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=838353 # https://anonscm.debian.org/cgit/collab-maint/gstreamermm-1.0.git/commit/?id=9180dc0219a99b0519219bb4abefaeb9792c74b5 # https://anonscm.debian.org/cgit/collab-maint/gstreamermm-1.0.git/diff/debian/patches/03-fix-ftbfs.patch?id=9180dc0219a99b0519219bb4abefaeb9792c74b5 Patch0: gstreamermm-1.4.3-check.patch BuildRequires: glibmm24-devel >= 2.21.1 BuildRequires: gstreamer1-devel BuildRequires: gstreamer1-plugins-base-devel BuildRequires: libxml++-devel >= 2.14.0 BuildRequires: doxygen graphviz m4 %description GStreamermm is a C++ wrapper library for the multimedia library GStreamer (http://gstreamer.freedesktop.org). It is designed to allow C++ development of applications that work with multi-media. %package devel Summary: Headers for developing programs that will use %{package_name} Group: Development/Libraries Requires: %{name} = %{version}-%{release} Requires: glibmm24-devel Requires: gstreamer-plugins-base-devel Requires: gstreamer-devel Requires: gstreamer1-plugins-base-devel Requires: gstreamer1-devel Requires: pkgconfig %description devel This package contains the static libraries and header files needed for developing gstreamermm applications. %package doc Summary: Developer's documentation for the gstreamermm library Group: Documentation BuildArch: noarch BuildRequires: doxygen graphviz Requires: glibmm24-doc %description doc This package contains developer's documentation for the GStreamermm library. Gstreamermm is the C++ API for the GStreamer library. The documentation can be viewed either through the devhelp documentation browser or through a web browser. %prep %setup -q -n "%{name}-%{version}" %patch0 -p1 -b .check %build %if 0%{?backport} #CXXFLAGS+=" -std=gnu++11" CXXFLAGS="${RPM_OPT_FLAGS} -std=gnu++11" export CXXFLAGS %endif %configure --enable-shared --disable-examples --enable-docs --disable-dependency-tracking sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool make %{?_smp_mflags} %install rm -rf "${RPM_BUILD_ROOT}" make install DESTDIR="${RPM_BUILD_ROOT}" find "${RPM_BUILD_ROOT}" -type f -name '*.la' -exec rm -f {} ';' %clean rm -rf "${RPM_BUILD_ROOT}" %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %if 0%{?doc_license} %license %{license_file} %else %doc %{license_file} %endif %doc AUTHORS ChangeLog NEWS README %{_libdir}/*.so.* %files devel %{_includedir}/%{name}-%{api_ver} %{_libdir}/*.so %{_libdir}/pkgconfig/*.pc %{_libdir}/%{name}-%{api_ver} %files doc %if 0%{?doc_license} %license %{license_file} %else %doc %{license_file} %endif %doc %{_docdir} %doc %{_datadir}/devhelp/books/%{name}-%{api_ver}/ %changelog * Tue Oct 24 2017 Tomasz Tomasik - 1.4.3-3 - Update requirements - Rebuilt for EL7 * Tue Oct 24 2017 Tomasz Tomasik - 1.4.3-2 - Add a few changes to the SPEC file - Enable -std=gnu++11 for EL7 - Backport patch for gstreamermm/check.cc from Debian by Marcin Kolny - Rebuilt for EL7 * Tue Jun 7 2016 Haïkel Guémar - 1.4.3-1 - Upstream 1.4.3 - Based on Ankur Sinha work (RHBZ#1315852) * Wed Feb 03 2016 Fedora Release Engineering - 0.10.11-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Jun 17 2015 Fedora Release Engineering - 0.10.11-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat May 02 2015 Kalev Lember - 0.10.11-7 - Rebuilt for GCC 5 C++11 ABI change * Thu Mar 26 2015 Kalev Lember - 0.10.11-6 - Rebuilt for GCC 5 ABI change * Sat Aug 16 2014 Fedora Release Engineering - 0.10.11-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 0.10.11-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sat Aug 03 2013 Fedora Release Engineering - 0.10.11-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu Feb 14 2013 Fedora Release Engineering - 0.10.11-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Mon Dec 17 2012 Haïkel Guémar - 0.10.11-1 - upstream 0.10.11 (bugfixes: memleaks and library startup speed-up) * Thu Jul 19 2012 Fedora Release Engineering - 0.10.10-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Tue Jan 17 2012 Ralf Corsépius - 0.10.10-3 - Add gstreamermm-0.10.10-glib2-2.31.patch to work around glib2 API changes. (Fix mass rebuild FTBFS). * Fri Jan 13 2012 Fedora Release Engineering - 0.10.10-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Sun Aug 07 2011 Haïkel Guémar - 0.10.10-1 - upstream 0.10.10 - remove DSO linking patch * Tue Apr 19 2011 Haïkel Guémar - 0.10.9-1 - upstream 0.10.9 - temporary patch to fix DSO linking issue with code generator * Tue Feb 22 2011 Haïkel Guémar - 0.10.8-3 - split doc into subpackage * Wed Feb 09 2011 Fedora Release Engineering - 0.10.8-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Sun Oct 24 2010 Haïkel Guémar - 0.10.8-1 - Update to upstream 0.10.8 * Fri Apr 30 2010 Haïkel Guémar - 0.10.7-1 - Update to upstream 0.10.7 * Mon Jan 4 2010 Denis Leroy - 0.10.6-1 - Update to upstream 0.10.6 * Sat Nov 7 2009 Denis Leroy - 0.10.5.2-1 - Update to 0.10.5.2 - Fix devhelp doc setup * Mon Sep 14 2009 Denis Leroy - 0.10.5-1 - Update to upstream 0.10.5 - doc patch upstreamed * Wed Sep 2 2009 Denis Leroy - 0.10.4-2 - Rebuild for new glibmm24 - Added patch to remove beautify_docs * Thu Aug 20 2009 Denis Leroy - 0.10.4-1 - Update to upstream 0.10.4 * Fri Jul 24 2009 Fedora Release Engineering - 0.10.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Fri Jun 26 2009 Denis Leroy - 0.10.2-1 - Update to upstream 0.10.2 * Tue Feb 24 2009 Fedora Release Engineering - 0.10.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Mon Feb 23 2009 Denis Leroy - 0.10.1-1 - Update to upstream 0.10.1 - No longer uses gstreamerbase include dir * Sun Dec 28 2008 Denis Leroy - 0.9.8-2 - Rebuild for pkgconfig * Fri Dec 26 2008 Denis Leroy - 0.9.8-1 - Update to upstream 0.9.8 - Disabled parallel make * Fri Oct 10 2008 Denis Leroy - 0.9.7-1 - Update to upstream 0.9.7 * Wed Sep 3 2008 Denis Leroy - 0.9.6-1 - Update to upstream 0.9.6 * Sat May 31 2008 Denis Leroy - 0.9.5-1 - Update to upstream 0.9.5 - Fixed gstreamer plugin BuildRequires * Fri Feb 22 2008 Denis Leroy - 0.9.4-1 - Updated to upstream 0.9.4 * Sun Feb 17 2008 Denis Leroy - 0.9.2-1 - First draft