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/
#
Name: brasero
Version: 3.2.0
Release: 1
License: GPLv2+
Group: Productivity/Multimedia/CD/Record
Summary: CD/DVD burning application for GNOME
Url: http://gnome.org/projects/brasero
Source: http://download.gnome.org/sources/brasero/3.2/%{name}-%{version}.tar.bz2
BuildRequires: fdupes
BuildRequires: gnome-doc-utils-devel
BuildRequires: gobject-introspection-devel
BuildRequires: gtk-doc
BuildRequires: intltool
# We need the %%mime_database_* macros
BuildRequires: shared-mime-info
BuildRequires: tracker-devel
BuildRequires: translation-update-upstream
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(gio-2.0) >= 2.29.14
BuildRequires: pkgconfig(gstreamer-0.10)
BuildRequires: pkgconfig(gstreamer-plugins-base-0.10)
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(libcanberra)
BuildRequires: pkgconfig(libcanberra-gtk3)
BuildRequires: pkgconfig(libnautilus-extension)
BuildRequires: pkgconfig(libnotify)
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(totem-plparser)
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-burn3-1 = %{version}
Requires: libbrasero-media3-1 = %{version}
Requires: libbrasero-utils3-1 = %{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-burn3-1
License: GPLv2+
Group: System/Libraries
Summary: CD/DVD burning application for GNOME
Recommends: %{name}-lang
# The obsoletes IS technically wrong. But as libbrasero-utils was
# not split from the main package, is required to have a smooth
# upgrade possibility.
Obsoletes: libbrasero-burn1 < %{version}
%description -n libbrasero-burn3-1
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-media3-1
License: GPLv2+
Group: System/Libraries
Summary: CD/DVD burning application for GNOME
Recommends: %{name}-lang
%description -n libbrasero-media3-1
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-utils3-1
License: GPLv2+
Group: System/Libraries
Summary: CD/DVD burning application for GNOME
Recommends: %{name}-lang
%description -n libbrasero-utils3-1
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
make %{?jobs:-j%jobs} V=1
%install
%makeinstall
%if 0%{?suse_version} <= 1120
%{__rm} %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/*
%endif
find %{buildroot} -type f -name "*.la" -delete -print
# bnc#722215, bgo#661134: avoid brasero appearing twice in menus; build will fail when editing categories can be removed
grep -q "Categories=GNOME;AudioVideo;DiscBurning;Core;Utility;" %{buildroot}%{_datadir}/applications/%{name}.desktop
%suse_update_desktop_file -r %{name} GTK GNOME AudioVideo DiscBurning
%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-burn3-1 -p /sbin/ldconfig
%post -n libbrasero-media3-1 -p /sbin/ldconfig
%post -n libbrasero-utils3-1 -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-burn3-1 -p /sbin/ldconfig
%postun -n libbrasero-media3-1 -p /sbin/ldconfig
%postun -n libbrasero-utils3-1 -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/
%{_datadir}/brasero/
%{_libdir}/brasero3/
%{_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?/*.*
%files -n libbrasero-burn3-1
%defattr(-,root,root)
%{_libdir}/libbrasero-burn3.so.1*
%{_libdir}/girepository-1.0/BraseroBurn-*.typelib
%files -n libbrasero-media3-1
%defattr(-,root,root)
%{_libdir}/libbrasero-media3.so.1*
%{_libdir}/girepository-1.0/BraseroMedia-*.typelib
%files -n libbrasero-utils3-1
# Even though there is no need to split according to upstream, we follow the
# openSUSE policy, as not splitting can cause upgrade trouble.
%defattr(-,root,root)
%{_libdir}/libbrasero-utils3.so.1*
%files devel
%defattr(-,root,root)
%{_includedir}/brasero3/
%{_libdir}/*.so
%{_libdir}/pkgconfig/libbrasero-media3.pc
%{_libdir}/pkgconfig/libbrasero-burn3.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-3.0/*.so
%{_datadir}/applications/brasero-nautilus.desktop
%files lang -f %{name}.lang
%changelog