%define url_ver %(echo %{version}|cut -d. -f1,2) %define source_name mate-media %define pulse 1 %define gst 1 Summary: MATE media programs Name: mate-media Version: 1.8.0 Release: %mkrel 4 License: GPLv2+ and LGPLv2+ Group: Graphical desktop/MATE URL: http://mate-desktop.org Source0: http://pub.mate-desktop.org/releases/%{url_ver}/%{name}-%{version}.tar.xz BuildRequires: itstool BuildRequires: mate-common BuildRequires: pkgconfig(dbus-glib-1) BuildRequires: pkgconfig(mate-window-settings-2.0) BuildRequires: pkgconfig(libmatepanelapplet-4.0) BuildRequires: pkgconfig(gtk+-2.0) BuildRequires: pkgconfig(libxml-2.0) BuildRequires: pkgconfig(unique-1.0) %if pulse BuildRequires: pkgconfig(libcanberra-gtk) BuildRequires: pkgconfig(libpulse) %endif %if gst BuildRequires: pkgconfig(gstreamer-0.10) BuildRequires: pkgconfig(gstreamer-plugins-base-0.10) %endif # Require a virtual package which is provided by both %%name-pulse and %%name-gstreamer Requires: %{name}-sound # We do not need %%name-common anymore. It is provided by %%name. So, rename it. %rename %{name}-common Conflicts: %{name}-common < 1.8.0-2 Obsoletes: %{name}-pulse < 1.7.0 Obsoletes: %{name}-gstreamer < 1.7.0 Conflicts: %{name}-pulse < 1.7.0 Conflicts: %{name}-gstreamer < 1.7.0 %description Media utilities for the MATE desktop, including an audio mixer. %if %pulse %package -n %{name}-pulse Summary: MATE media programs with pulseaudio backend Group: Graphical desktop/MATE Requires: pulseaudio Requires: %{name} = %{version}-%{release} # Provide a virtual package to satisfy %%name dependencies. This method also # allows users to choose the backends. Provides: %{name}-sound = %{version}-%{release} Obsoletes: %{name}-pulse < 1.7.0 Conflicts: %{name}-pulse < 1.7.0 %description -n %{name}-pulse Media utilities for the MATE desktop, including an audio mixer. This package uses pulseaudio backend. If you want to use gstreamer backend you should install mate-media-gstreamer package instead of this. %endif %if gst %package -n %{name}-gstreamer Summary: MATE media programs with gstreamer backend Group: Graphical desktop/MATE Requires: %{name} = %{version}-%{release} # Provide a virtual package to satisfy %%name dependencies. This method also # allows users to choose the backends. Provides: %{name}-sound = %{version}-%{release} Obsoletes: %{name}-gstreamer < 1.7.0 Conflicts: %{name}-gstreamer < 1.7.0 %description -n %{name}-gstreamer Media utilities for the MATE desktop, including an audio mixer. This package uses gstreamer backend. If you want to use pulseaudio backend you should install mate-media-pulse package instead of this. %endif %prep %autosetup -n %{name} -c cp -a %{name}-%{version} %{name}-pulse mv -f %{name}-%{version} %{name}-gst %build %if gst pushd %{name}-gst %configure2_5x \ --disable-static \ --enable-gstmix \ --disable-schemas-compile \ --disable-scrollkeeper \ --enable-gst-mixer-applet \ --disable-pulseaudio \ --enable-gstreamer %make popd %endif %if pulse pushd %{name}-pulse %configure2_5x \ --disable-static \ --disable-gstmix \ --disable-schemas-compile \ --disable-scrollkeeper \ --disable-gst-mixer-applet \ --enable-pulseaudio %make popd %endif %install %if %pulse pushd %{name}-pulse %makeinstall_std mv -f %{buildroot}%{_bindir}/mate-volume-control %{buildroot}%{_bindir}/mate-volume-control-pulse mkdir -p %{buildroot}%{_sysconfdir}/sound/profiles/pulse/mate/bin ln -s %{_bindir}/mate-volume-control-pulse %{buildroot}%{_sysconfdir}/sound/profiles/pulse/mate/bin/mate-volume-control popd %endif %if %gst pushd %{name}-gst %makeinstall_std mv -f %{buildroot}%{_bindir}/mate-volume-control %{buildroot}%{_bindir}/mate-volume-control-gst mkdir -p %{buildroot}%{_sysconfdir}/sound/profiles/alsa/mate/bin ln -s %{_bindir}/mate-volume-control-gst %{buildroot}%{_sysconfdir}/sound/profiles/alsa/mate/bin/mate-volume-control popd %endif %if %pulse || %gst ln -s %{_sysconfdir}/sound/profiles/current/mate/bin/mate-volume-control %{buildroot}%{_bindir}/mate-volume-control %endif # We don't need MateConf stuff in Mageia rm -fr %{buildroot}%{_datadir}/MateConf %find_lang %{name} --all-name %files -f %{name}.lang %doc %{name}-pulse/AUTHORS %{name}-pulse/README %{name}-pulse/ChangeLog %{_bindir}/mate-volume-control %{_datadir}/mate-media/ %{_datadir}/applications/mate-volume-control.desktop %{_datadir}/sounds/mate/ %{_datadir}/icons/mate/*/*/*.png %{_datadir}/glib-2.0/schemas/org.mate.volume-control.gschema.xml %{_datadir}/help/*/mate-volume-control %{_mandir}/man1/mate-volume-control.1.* %if %pulse %files -n %{name}-pulse %config(noreplace) %{_sysconfdir}/xdg/autostart/mate-volume-control-applet.desktop %{_bindir}/mate-volume-control-pulse %{_bindir}/mate-volume-control-applet %{_sysconfdir}/sound/profiles/pulse/mate/bin/mate-volume-control %{_mandir}/man1/mate-volume-control-applet.1.* %endif %if %gst %files -n %{name}-gstreamer %{_bindir}/mate-volume-control-gst %{_sysconfdir}/sound/profiles/alsa/mate/bin/mate-volume-control %{_libexecdir}/mixer_applet2 %{_datadir}/dbus-1/services/org.mate.panel.applet.MixerAppletFactory.service %{_datadir}/glib-2.0/schemas/org.mate.panel.applet.mixer.gschema.xml %{_datadir}/mate-2.0/ui/mixer-applet-menu.xml %{_datadir}/mate-panel/applets/org.mate.applets.MixerApplet.mate-panel-applet %{_datadir}/help/*/mate-mixer_applet2 %endif %changelog * Wed Oct 15 2014 umeabot <umeabot> 1.8.0-4.mga5 + Revision: 748748 - Second Mageia 5 Mass Rebuild * Tue Sep 16 2014 umeabot <umeabot> 1.8.0-3.mga5 + Revision: 682193 - Mageia 5 Mass Rebuild + tarakbumba <tarakbumba> - Obsolete common package, not needed now. - Require virtual *-sound package to allow users choose from pulse or gst backends. - *-pulse and *-gstreamer packages now provides virtual *-sound package. * Wed Mar 05 2014 tarakbumba <tarakbumba> 1.8.0-1.mga5 + Revision: 600099 - Updated to version 1.8.0 * Sat Mar 01 2014 tarakbumba <tarakbumba> 1.7.90-1.mga5 + Revision: 598122 - imported package mate-media