File libgnome-media-profiles.spec of Package libgnome-media-profiles

#
# spec file for package libgnome-media-profiles
#
# 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/
#


%define have_glade_catalog 0

Name:           libgnome-media-profiles
Version:        3.0.0
Release:        1
# FIXME: on new upstream version, enable glade catalog (see have_glade_catalog) (last checked: 3.0.0)
License:        LGPLv2+
Summary:        GNOME Media Profiles Library
Url:            http://git.gnome.org/browse/libgnome-media-profiles
Group:          System/Libraries
Source0:        http://download.gnome.org/sources/%{name}/2.91/%{name}-%{version}.tar.bz2
BuildRequires:  intltool
BuildRequires:  pkgconfig(gconf-2.0)
%if %{have_glade_catalog}
BuildRequires:  pkgconfig(gladeui-2.0)
%endif
BuildRequires:  pkgconfig(gnome-doc-utils)
BuildRequires:  pkgconfig(gstreamer-plugins-base-0.10)
BuildRequires:  pkgconfig(gtk+-3.0)
%gconf_schemas_prereq

%description
The GNOME Media Profiles library provides prebuilt GStreamer pipelines
for applications aiming to support different sound formats.

%package -n libgnome-media-profiles-3_0-0
Summary:        GNOME Media Profiles Library
License:        LGPLv2+
Group:          System/Libraries
Recommends:     %{name}-lang
# To make lang package installable
Provides:       %{name} = %{version}

%description -n libgnome-media-profiles-3_0-0
The GNOME Media Profiles library provides prebuilt GStreamer pipelines
for applications aiming to support different sound formats.

%package tools
Summary:        GNOME Media Profiles Library -- Tools
License:        LGPLv2+
Group:          System/GUI/GNOME

%description tools
The GNOME Media Profiles library provides prebuilt GStreamer pipelines
for applications aiming to support different sound formats.

This package contains tools to interact with the profiles.

%if %{have_glade_catalog}

%package -n glade-catalog-gnome-media-profiles
License:        LGPLv2+
Summary:        GNOME Media Profiles Library -- Catalog for Glade
Group:          Development/Tools/GUI Builders
Requires:       libgnome-media-profiles-3_0-0 = %{version}
Requires:       glade
Supplements:    packageand(glade:%{name}-devel)

%description -n glade-catalog-gnome-media-profiles
The GNOME Media Profiles library provides prebuilt GStreamer pipelines
for applications aiming to support different sound formats.

This package provides a catalog for Glade, to allow the use media
profiles widgets in Glade.
%endif

%package        devel
Summary:        GNOME Media Profiles Library -- Development Files
License:        LGPLv2+
Group:          Development/Libraries/GNOME
Requires:       libgnome-media-profiles-3_0-0 = %{version}

%description    devel
The GNOME Media Profiles library provides prebuilt GStreamer pipelines
for applications aiming to support different sound formats.

%lang_package
%prep
%setup -q

%build
%configure --disable-static\
           --disable-schemas-install\
           --disable-scrollkeeper
make %{?jobs:-j%jobs}

%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
%find_lang gnome-audio-profiles %{?no_lang_C}
%find_lang %{name} %{?no_lang_C}
%find_gconf_schemas

%pre -n libgnome-media-profiles-3_0-0 -f %{name}.schemas_pre

%posttrans -n libgnome-media-profiles-3_0-0 -f %{name}.schemas_posttrans

%preun -n libgnome-media-profiles-3_0-0 -f %{name}.schemas_preun

%post -n libgnome-media-profiles-3_0-0 -p /sbin/ldconfig

%postun -n libgnome-media-profiles-3_0-0 -p/sbin/ldconfig

%files -n libgnome-media-profiles-3_0-0 -f %{name}.schemas_list
%defattr(-,root,root,-)
%doc COPYING NEWS README
%dir %{_datadir}/gnome/
%dir %{_datadir}/gnome/help/
%dir %{_datadir}/gnome/help/gnome-audio-profiles/
%doc %{_datadir}/gnome/help/gnome-audio-profiles/C/
%dir %{_datadir}/omf/
%dir %{_datadir}/omf/gnome-audio-profiles/
%doc %{_datadir}/omf/gnome-audio-profiles/gnome-audio-profiles-C.omf
%{_libdir}/*.so.*
%{_datadir}/libgnome-media-profiles/

%files tools
%defattr(-,root,root,-)
%{_bindir}/gnome-audio-profiles-properties

%if %{have_glade_catalog}

%files -n glade-catalog-gnome-media-profiles
%defattr(-,root,root)
%{_libdir}/glade/modules/libgnome-media-profiles.so
%{_datadir}/glade/catalogs/gnome-media-profiles.xml
%endif

%files devel
%defattr(-,root,root,-)
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/libgnome-media-profiles-3.0.pc

%files lang -f gnome-audio-profiles.lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by