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

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

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

125f32
    

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

125f32
    

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

125f32
  </description>
125f32
  <keywords>
125f32
    <keyword>CD</keyword>
125f32
    <keyword>DVD</keyword>
125f32
    <keyword>MP3</keyword>
125f32
  </keywords>
125f32
  <url type="homepage">http://gstreamer.freedesktop.org/</url>
125f32
  <url type="bugtracker">https://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer</url>
125f32
  <url type="help">http://gstreamer.freedesktop.org/documentation/</url>
125f32
  <url type="donation">http://www.gnome.org/friends/</url>
125f32
  <update_contact></update_contact>
125f32
</component>
125f32
EOF
125f32
125f32
%find_lang gst-plugins-ugly-%{majorminor}
125f32
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
125f32
125f32
125f32
%files -f gst-plugins-ugly-%{majorminor}.lang
125f32
%license COPYING
125f32
%doc AUTHORS README REQUIREMENTS
125f32
125f32
%{_datadir}/appdata/*.appdata.xml
125f32
125f32
# Plugins without external dependencies
125f32
%{_libdir}/gstreamer-%{majorminor}/libgstxingmux.so
125f32
125f32
# Plugins with external dependencies
125f32
%{_libdir}/gstreamer-%{majorminor}/libgsta52dec.so
125f32
%{_libdir}/gstreamer-%{majorminor}/libgstcdio.so
125f32
%{_libdir}/gstreamer-%{majorminor}/libgstdvdread.so
f2e8d8
%if %{with mpeg2}
f2e8d8
%{_libdir}/gstreamer-%{majorminor}/libgstmpeg2dec.so
f2e8d8
%endif
125f32
125f32
%files devel
125f32
%doc %{_datadir}/gtk-doc/html/gst-plugins-ugly-plugins-%{majorminor}
125f32
125f32
125f32
%changelog
f2e8d8
* Thu Nov 14 2019 Wim Taymans <wtaymans@redhat.com> - 1.16.1-1
f2e8d8
- Update to 1.16.1
f2e8d8
- Only enable mpeg2dec on Fedora
f2e8d8
- Resolves: rhbz#1756299
f2e8d8
f2e8d8
* Mon May 20 2019 Rex Dieter <rdieter@fedoraproject.org> - 1.16.0-3
f2e8d8
- Conflicts: gstreamer1-plugins-ugly < 1.16.0-2
f2e8d8
f2e8d8
* Mon May 13 2019 Yaakov Selkowitz <yselkowi@redhat.com> - 1.16.0-2
f2e8d8
- Enable mpeg2dec plugin (#1709470)
f2e8d8
125f32
* Mon Aug 13 2018 Troy Dawson <tdawson@redhat.com> - 1.14.0-2
125f32
- Add BuildRequest python3-devel
125f32
125f32
* Tue Mar 20 2018 Wim Taymans <wtaymans@redhat.com> - 1.14.0-1
125f32
- Update to 1.14.0
125f32
125f32
* Wed Mar 14 2018 Wim Taymans <wtaymans@redhat.com> - 1.13.91-1
125f32
- Update to 1.13.91
125f32
125f32
* Mon Mar 05 2018 Wim Taymans <wtaymans@redhat.com> - 1.13.90-1
125f32
- Update to 1.13.90
125f32
125f32
* Tue Feb 27 2018 Rex Dieter <rdieter@fedoraproject.org> - 1.13.1-2
125f32
- drop Obsoletes/Provides: -mpg123 (moved to -good)
125f32
125f32
* Thu Feb 22 2018 Wim Taymans <wtaymans@redhat.com> - 1.13.1-1
125f32
- Update to 1.13.1
125f32
- mp3 plugins moved to -good
125f32
125f32
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.4-4
125f32
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
125f32
125f32
* Thu Jan 25 2018 Adrian Reber <adrian@lisas.de> - 1.12.4-3
125f32
- Rebuilt for new libcdio (2.0.0)
125f32
125f32
* Sun Jan 14 2018 Yaakov Selkowitz <yselkowi@redhat.com> - 1.12.4-2
125f32
- Enable twolame plugin (#1534289)
125f32
125f32
* Mon Dec 11 2017 Wim Taymans <wtaymans@redhat.com> - 1.12.4-1
125f32
- Update to 1.12.4
125f32
- Add autoconf and friends to BuildRequires
125f32
125f32
* Tue Sep 19 2017 Wim Taymans <wtaymans@redhat.com> - 1.12.3-1
125f32
- Update to 1.12.3
125f32
125f32
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.2-3
125f32
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
125f32
125f32
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.2-2
125f32
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
125f32
125f32
* Mon Jul 17 2017 Wim Taymans <wtaymans@redhat.com> - 1.12.2-1
125f32
- Update to 1.12.2
125f32
125f32
* Tue Jun 20 2017 Wim Taymans <wtaymans@redhat.com> - 1.12.1-1
125f32
- Update to 1.12.1
125f32
125f32
* Thu May 11 2017 Yaakov Selkowitz <yselkowi@redhat.com> - 1.12.0-3
125f32
- Enable LAME plugin (#1450108)
125f32
125f32
* Thu May 11 2017 Yaakov Selkowitz <yselkowi@redhat.com> - 1.12.0-2
125f32
- Update to 1.12.0
125f32
125f32
* Thu May 11 2017 Yaakov Selkowitz <yselkowi@redhat.com> - 1.10.4-2
125f32
- Initial Fedora spec file