File gnome-media.spec of Package gnome-media
#
# spec file for package gnome-media
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: gnome-media
Version: 2.32.0
Release: 2
License: LGPLv2+
Summary: GNOME Multimedia (Media)
Url: http://www.gnome.org/
Group: System/GUI/GNOME
Source: ftp://ftp.gnome.org/pub/GNOME/sources/gnome-media/2.16/%{name}-%{version}.tar.bz2
# PATCH-FIX-OPENSUSE gnome-media-desktop.patch -- Use GenericName instead of Comment
Patch3: %name-desktop.patch
BuildRequires: fdupes
BuildRequires: gnome-doc-utils-devel
BuildRequires: intltool
BuildRequires: translation-update-upstream
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(gconf-2.0)
BuildRequires: pkgconfig(gladeui-1.0)
BuildRequires: pkgconfig(gobject-2.0)
BuildRequires: pkgconfig(gstreamer-0.10)
BuildRequires: pkgconfig(gstreamer-plugins-base-0.10)
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(libcanberra-gtk)
BuildRequires: pkgconfig(libpulse)
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(unique-1.0)
Requires: gstreamer010-plugins-good
Recommends: %{name}-lang
Recommends: gstreamer-0_10-plugins-base
Provides: gnome-media2
Obsoletes: gnome-media2
Provides: %{name}-cd = %{version}
Obsoletes: %{name}-cd <= %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%gconf_schemas_prereq
%description
This package contains multimedia programs for GNOME.
Documentation:
GNOME online help /usr/share/doc/packages/gnome
%package -n glade3-catalog-gnome-media-profiles
License: LGPLv2+
Summary: GNOME Media Profiles Library -- Catalog for Glade
Group: Development/Tools/GUI Builders
Requires: %{name} = %{version}
Requires: glade3
Supplements: packageand(glade3:%{name}-devel)
%description -n glade3-catalog-gnome-media-profiles
This package provides a catalog for Glade, to allow the use of media
profiles widgets in Glade.
%package devel
License: GPLv2+ ; LGPLv2.1+
Summary: GNOME Multimedia (Media)
Group: System/GUI/GNOME
Requires: %{name} = %{version}
Requires: gconf2-devel
Requires: gtk2-devel
Requires: libgladeui-1_0-devel
%description devel
This package contains multimedia programs for GNOME.
%lang_package
%prep
%setup -q
translation-update-upstream
%patch3 -p1
%build
#autoreconf -f -i
%configure\
--libexecdir=%{_prefix}/lib/gnome-media\
--disable-static\
--disable-schemas-install\
--disable-scrollkeeper
make %{?_smp_mflags}
%install
%makeinstall
%if 0%{?suse_version} <= 1120
%{__rm} %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/*
%endif
%suse_update_desktop_file gnome-volume-control
%suse_update_desktop_file gnome-sound-recorder
%suse_update_desktop_file -N "GStreamer Properties" -G "Multimedia Systems Selector" gstreamer-properties
%suse_update_desktop_file gnome-volume-control-applet
%find_lang %{name}-2.0 %{?no_lang_C}
%find_lang gnome-audio-profiles %{?no_lang_C} %{name}-2.0.lang
%find_lang gnome-sound-recorder %{?no_lang_C} %{name}-2.0.lang
%find_lang gstreamer-properties %{?no_lang_C} %{name}-2.0.lang
%find_gconf_schemas
find %{buildroot} -type f -name "*.la" -delete -print
%fdupes %{buildroot}
%clean
rm -rf %{buildroot}
%pre -f %{name}.schemas_pre
%post
/sbin/ldconfig
%desktop_database_post
%icon_theme_cache_post
%posttrans -f %{name}.schemas_posttrans
%preun -f %{name}.schemas_preun
%postun
/sbin/ldconfig
%desktop_database_postun
%icon_theme_cache_postun
%files -f %{name}.schemas_list
%defattr(-,root,root)
%doc AUTHORS COPYING NEWS README
%defattr (-, root, root)
%dir %{_datadir}/gnome/
%dir %{_datadir}/gnome/help/
%dir %{_datadir}/gnome/help/gnome-audio-profiles/
%doc %{_datadir}/gnome/help/gnome-audio-profiles/C/
%dir %{_datadir}/gnome/help/gnome-sound-recorder/
%doc %{_datadir}/gnome/help/gnome-sound-recorder/C/
%dir %{_datadir}/gnome/help/gstreamer-properties/
%doc %{_datadir}/gnome/help/gstreamer-properties/C/
%dir %{_datadir}/omf/
%dir %{_datadir}/omf/gnome-audio-profiles/
%doc %{_datadir}/omf/gnome-audio-profiles/gnome-audio-profiles-C.omf
%dir %{_datadir}/omf/gnome-sound-recorder/
%doc %{_datadir}/omf/gnome-sound-recorder/gnome-sound-recorder-C.omf
%dir %{_datadir}/omf/gstreamer-properties/
%doc %{_datadir}/omf/gstreamer-properties/gstreamer-properties-C.omf
%{_bindir}/gnome-audio-profiles-properties
%{_bindir}/gnome-sound-recorder
%{_bindir}/gnome-volume-control
%{_bindir}/gnome-volume-control-applet
%{_bindir}/gstreamer-properties
%{_datadir}/applications/gnome-sound-recorder.desktop
%{_datadir}/applications/gnome-volume-control.desktop
%{_datadir}/applications/gstreamer-properties.desktop
%{_datadir}/gnome-media
%{_datadir}/gnome-sound-recorder
%{_datadir}/gstreamer-properties
%{_datadir}/icons/hicolor/*/apps/*.*
%{_libdir}/*.so.*
%{_datadir}/sounds/gnome
%{_sysconfdir}/xdg/autostart/*.desktop
%files -n glade3-catalog-gnome-media-profiles
%defattr(-,root,root)
%{_libdir}/glade3/modules/libgnome-media-profiles.so
%{_datadir}/glade3/catalogs/gnome-media-profiles.xml
%files devel
%defattr(-,root,root)
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_includedir}/*
%files lang -f %{name}-2.0.lang
%changelog