File brasero.spec of Package brasero

#
# spec file for package brasero
#
# 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/
#


# Starting with openSUSE 11.3 we use tracker instead of beagle
%define use_tracker 0%{suse_version} >= 1130

Name:           brasero
Version:        2.32.1
Release:        2
License:        GPLv2+
Group:          Productivity/Multimedia/CD/Record
Summary:        CD/DVD burning application for GNOME
Url:            http://gnome.org/projects/brasero
Source:         %{name}-%{version}.tar.bz2
BuildRequires:  fdupes
BuildRequires:  gconf2-devel
BuildRequires:  gnome-doc-utils-devel
BuildRequires:  gobject-introspection-devel
BuildRequires:  gstreamer010-devel
BuildRequires:  gstreamer010-plugins-base-devel
BuildRequires:  gtk-doc
BuildRequires:  intltool
BuildRequires:  libcanberra-devel
BuildRequires:  libunique-devel
BuildRequires:  nautilus-devel
BuildRequires:  totem-pl-parser-devel
%if %use_tracker
BuildRequires:  tracker-devel
%else
BuildRequires:  libbeagle-devel
%endif
BuildRequires:  translation-update-upstream
BuildRequires:  update-desktop-files
Requires:       gstreamer010
Requires:       gstreamer010-plugins-base
Requires:       gstreamer010-plugins-base-oil
Requires:       gstreamer010-plugins-good
Recommends:     %{name}-lang
Provides:       brasero-doc = 0.9.1
Obsoletes:      brasero-doc < 0.9.1
Provides:       gnomebaker = 0.6.1
Obsoletes:      gnomebaker < 0.6.1
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%glib2_gsettings_schema_requires

%description
Brasero is an application to burn CD/DVDs for the GNOME Desktop. It is
designed to be as simple as possible and has some unique features to
enable users to create their discs easily and quickly.

It supports creating audio discs, data discs, burning ISO and other
image files, and duplicating discs.

%package devel
License:        GPLv2+
Group:          Development/Libraries/GNOME
Summary:        CD/DVD burning application for GNOME
Requires:       %{name} = %{version}
Requires:       libbrasero-burn1 = %{version}
Requires:       libbrasero-media1 = %{version}

%description devel
Brasero is an application to burn CD/DVDs for the GNOME Desktop. It is
designed to be as simple as possible and has some unique features to
enable users to create their discs easily and quickly.

It supports creating audio discs, data discs, burning ISO and other
image files, and duplicating discs.

%package -n libbrasero-burn1
License:        GPLv2+
Group:          System/Libraries
Summary:        CD/DVD burning application for GNOME
Recommends:     %{name}-lang

%description -n libbrasero-burn1
Brasero is an application to burn CD/DVDs for the GNOME Desktop. It is
designed to be as simple as possible and has some unique features to
enable users to create their discs easily and quickly.

It supports creating audio discs, data discs, burning ISO and other
image files, and duplicating discs.

%package -n libbrasero-media1
License:        GPLv2+
Group:          System/Libraries
Summary:        CD/DVD burning application for GNOME
Recommends:     %{name}-lang

%description -n libbrasero-media1
Brasero is an application to burn CD/DVDs for the GNOME Desktop. It is
designed to be as simple as possible and has some unique features to
enable users to create their discs easily and quickly.

It supports creating audio discs, data discs, burning ISO and other
image files, and duplicating discs.

%package nautilus
License:        GPLv2+
Group:          Productivity/Multimedia/CD/Record
Summary:        Brasero CD/DVD burning extension for Nautilus
Requires:       %{name} = %{version}
Supplements:    packageand(brasero:nautilus)

%description nautilus
This package provides the Brasero extension for Nautilus.

%lang_package
%prep
%setup -q
translation-update-upstream

%build
%configure \
	--disable-static \
	--disable-scrollkeeper \
	--enable-search \
	--enable-playlist \
    	--enable-nautilus \
        --enable-introspection \
        --with-gtk=2.0
make %{?jobs:-j%jobs}

%install
%makeinstall
%if 0%{?suse_version} <= 1120
%{__rm} %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/*
%endif
find %{buildroot} -type f -name "*.la" -delete -print
%suse_update_desktop_file %{name} GTK
%suse_update_desktop_file brasero-nautilus
%find_lang %{name} %{?no_lang_C}
%fdupes $RPM_BUILD_ROOT

%clean
rm -rf "$RPM_BUILD_ROOT"

%post
/sbin/ldconfig
%glib2_gsettings_schema_post
%desktop_database_post
%icon_theme_cache_post
%mime_database_post

%post -n libbrasero-burn1 -p /sbin/ldconfig

%post -n libbrasero-media1 -p /sbin/ldconfig

%post nautilus
%desktop_database_post

%postun
/sbin/ldconfig
%glib2_gsettings_schema_postun
%desktop_database_postun
%icon_theme_cache_postun
%mime_database_postun

%postun -n libbrasero-burn1 -p /sbin/ldconfig

%postun -n libbrasero-media1 -p /sbin/ldconfig

%postun nautilus
%desktop_database_postun

%files
%defattr(-,root,root)
%doc ChangeLog NEWS COPYING AUTHORS README
%dir %{_datadir}/gnome/
%dir %{_datadir}/gnome/help/
%dir %{_datadir}/gnome/help/%{name}/
%doc %{_datadir}/gnome/help/%{name}/C/
%dir %{_datadir}/omf/
%dir %{_datadir}/omf/%{name}/
%doc %{_datadir}/omf/%{name}/%{name}-C.omf
%{_datadir}/brasero/
%{_libdir}/brasero/
%{_bindir}/brasero
%{_datadir}/applications/brasero.desktop
%{_datadir}/icons/hicolor/*/apps/brasero.*
%{_datadir}/mime/packages/brasero.xml
%{_datadir}/GConf/gsettings/brasero.convert
%{_datadir}/glib-2.0/schemas/org.gnome.brasero.gschema.xml
%doc %{_mandir}/man?/*.*
# No need to split this one in a new package, according to upstream
%{_libdir}/libbrasero-utils.so.*

%files -n libbrasero-burn1
%defattr(-,root,root)
%{_libdir}/libbrasero-burn.so.*
%{_libdir}/girepository-1.0/BraseroBurn-*.typelib

%files -n libbrasero-media1
%defattr(-,root,root)
%{_libdir}/libbrasero-media.so.*
%{_libdir}/girepository-1.0/BraseroMedia-*.typelib

%files devel
%defattr(-,root,root)
%{_includedir}/brasero/
%{_libdir}/*.so
%{_libdir}/pkgconfig/libbrasero-media.pc
%{_libdir}/pkgconfig/libbrasero-burn.pc
%{_datadir}/gtk-doc/html/libbrasero-burn/
%{_datadir}/gtk-doc/html/libbrasero-media/
%{_datadir}/gir-1.0/BraseroBurn-*.gir
%{_datadir}/gir-1.0/BraseroMedia-*.gir
# Own these repositories to not depend on gtk-doc while building:
%dir %{_datadir}/gtk-doc
%dir %{_datadir}/gtk-doc/html

%files nautilus
%defattr(-,root,root)
%{_libdir}/nautilus/extensions-2.0/*.so
%{_datadir}/applications/brasero-nautilus.desktop

%files lang -f %{name}.lang

%changelog