Blame SPECS/gstreamer1-plugins-ugly-free.spec

39c175
%global         majorminor 1.0
39c175
39c175
#global gitrel     140
39c175
#global gitcommit  4ca3a22b6b33ad8be4383063e76f79c4d346535d
39c175
#global shortcommit %(c=%{gitcommit}; echo ${c:0:5})
39c175
39c175
%if 0%{?fedora}
39c175
%global enable_a52 1
39c175
%endif
39c175
39c175
Name:           gstreamer1-plugins-ugly-free
39c175
Version:        1.10.4
39c175
Release:        3%{?dist}
39c175
Summary:        GStreamer streaming media framework "ugly" plugins
39c175
39c175
License:        LGPLv2+ and LGPLv2
39c175
URL:            http://gstreamer.freedesktop.org/
39c175
%if 0%{?gitrel}
39c175
# git clone git://anongit.freedesktop.org/gstreamer/gst-plugins-ugly
39c175
# cd gst-plugins-ugly; git reset --hard %{gitcommit}; ./autogen.sh; make; make distcheck
39c175
# modified with gst-p-ugly-cleanup.sh from SOURCE1
39c175
%else
39c175
# The source is:
39c175
# http://gstreamer.freedesktop.org/src/gst-plugins-ugly/gst-plugins-ugly-%{version}.tar.xz
39c175
# modified with gst-p-ugly-cleanup.sh from SOURCE1
39c175
%endif
39c175
Source0:        gst-plugins-ugly-free-%{version}.tar.xz
39c175
Source1:        gst-p-ugly-cleanup.sh
39c175
39c175
BuildRequires:  gstreamer1-devel >= %{version}
39c175
BuildRequires:  gstreamer1-plugins-base-devel >= %{version}
39c175
39c175
BuildRequires:  check
39c175
BuildRequires:  gettext-devel
39c175
BuildRequires:  gtk-doc
39c175
39c175
%if 0%{?enable_a52}
39c175
BuildRequires:  liba52-devel
39c175
%endif
39c175
BuildRequires:  libcdio-devel
39c175
BuildRequires:  libdvdread-devel
39c175
BuildRequires:  mpg123-devel
39c175
39c175
Obsoletes:      gstreamer1-plugin-mpg123 < %{version}-%{release}
39c175
Provides:       gstreamer1-plugin-mpg123 = %{version}-%{release}
39c175
39c175
39c175
%description
39c175
GStreamer is a streaming media framework, based on graphs of elements which
39c175
operate on media data.
39c175
39c175
This package contains plug-ins whose license is not fully compatible with LGPL.
39c175
39c175
%package devel
39c175
Summary:        Development files for the GStreamer media framework "ugly" plug-ins
39c175
Requires:       %{name} = %{version}-%{release}
39c175
Requires:       gstreamer1-plugins-base-devel
39c175
39c175
39c175
%description devel
39c175
GStreamer is a streaming media framework, based on graphs of elements which
39c175
operate on media data.
39c175
39c175
This package contains the development files for the plug-ins whose license
39c175
is not fully compatible with LGPL.
39c175
39c175
39c175
%prep
39c175
%setup -q -n gst-plugins-ugly-%{version}
39c175
39c175
39c175
%build
39c175
# libsidplay was removed as obsolete, not forbidden
39c175
%configure --disable-silent-rules --disable-fatal-warnings \
39c175
    --with-package-name="GStreamer-plugins-ugly package" \
39c175
    --with-package-origin="http://www.redhat.com" \
39c175
    --enable-debug --disable-static --enable-gtk-doc --enable-experimental \
39c175
    --disable-amrnb --disable-amrwb --disable-lame \
39c175
    %{!?enable_a52:--disable-a52dec} \
39c175
    --disable-mpeg2dec --disable-sidplay --disable-twolame --disable-x264
39c175
make %{?_smp_mflags}
39c175
39c175
39c175
%install
39c175
make install DESTDIR=$RPM_BUILD_ROOT
39c175
39c175
# Register as an AppStream component to be visible in the software center
39c175
#
39c175
# NOTE: It would be *awesome* if this file was maintained by the upstream
39c175
# project, translated and installed into the right place during `make install`.
39c175
#
39c175
# See http://www.freedesktop.org/software/appstream/docs/ for more details.
39c175
#
39c175
mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
39c175
cat > $RPM_BUILD_ROOT%{_datadir}/appdata/gstreamer-ugly-free.appdata.xml <
39c175
39c175
39c175
<component type="codec">
39c175
  <id>gstreamer-ugly-free</id>
39c175
  <metadata_license>CC0-1.0</metadata_license>
39c175
  <name>GStreamer Multimedia Codecs - Extra</name>
39c175
  <summary>Multimedia playback for CD, DVD, and MP3</summary>
39c175
  <description>
39c175
    

39c175
      This addon includes several additional codecs that have good quality and
39c175
      correct functionality, but whose license is not fully compatible with LGPL.
39c175
    

39c175
    

39c175
      These codecs can be used to encode and decode media files where the
39c175
      format is not patent encumbered.
39c175
    

39c175
    

39c175
      A codec decodes audio and video for for playback or editing and is also
39c175
      used for transmission or storage.
39c175
      Different codecs are used in video-conferencing, streaming media and
39c175
      video editing applications.
39c175
    

39c175
  </description>
39c175
  <keywords>
39c175
    <keyword>CD</keyword>
39c175
    <keyword>DVD</keyword>
39c175
    <keyword>MP3</keyword>
39c175
  </keywords>
39c175
  <url type="homepage">http://gstreamer.freedesktop.org/</url>
39c175
  <url type="bugtracker">https://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer</url>
39c175
  <url type="help">http://gstreamer.freedesktop.org/documentation/</url>
39c175
  <url type="donation">http://www.gnome.org/friends/</url>
39c175
  <update_contact></update_contact>
39c175
</component>
39c175
EOF
39c175
39c175
%find_lang gst-plugins-ugly-%{majorminor}
39c175
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
39c175
39c175
39c175
%files -f gst-plugins-ugly-%{majorminor}.lang
39c175
%license COPYING
39c175
%doc AUTHORS README REQUIREMENTS
39c175
39c175
%{_datadir}/appdata/*.appdata.xml
39c175
39c175
# Plugins without external dependencies
39c175
%{_libdir}/gstreamer-%{majorminor}/libgstxingmux.so
39c175
39c175
# Plugins with external dependencies
39c175
%if 0%{?enable_a52}
39c175
%{_libdir}/gstreamer-%{majorminor}/libgsta52dec.so
39c175
%endif
39c175
%{_libdir}/gstreamer-%{majorminor}/libgstcdio.so
39c175
%{_libdir}/gstreamer-%{majorminor}/libgstdvdread.so
39c175
%{_libdir}/gstreamer-%{majorminor}/libgstmpg123.so
39c175
39c175
%files devel
39c175
%doc %{_datadir}/gtk-doc/html/gst-plugins-ugly-plugins-%{majorminor}
39c175
39c175
39c175
%changelog
39c175
* Tue Oct 17 2017 Wim Taymans <wtaymans@redhat.com> - 1.10.4-3
39c175
- Fix for RHEL
39c175
- Disable a52dec
39c175
Resolves: #1481754
39c175
39c175
* Thu May 11 2017 Yaakov Selkowitz <yselkowi@redhat.com> - 1.10.4-2
39c175
- Initial Fedora spec file