LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File brasero.spec of Package brasero (Project openSUSE:Factory)

#
# spec file for package brasero
#
# Copyright (c) 2012 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.6.0
Release:        0
Summary:        CD/DVD burning application for GNOME
License:        GPL-2.0+
Group:          Productivity/Multimedia/CD/Record
Url:            http://gnome.org/projects/brasero
Source:         http://download.gnome.org/sources/brasero/3.6/%{name}-%{version}.tar.xz
BuildRequires:  fdupes
BuildRequires:  gobject-introspection-devel
BuildRequires:  gtk-doc
BuildRequires:  intltool
BuildRequires:  yelp-tools
# We need the %%mime_database_* macros
BuildRequires:  shared-mime-info
BuildRequires:  tracker-devel >= 0.10.0
BuildRequires:  translation-update-upstream
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(gdk-x11-3.0)
BuildRequires:  pkgconfig(gio-2.0) >= 2.29.14
BuildRequires:  pkgconfig(gstreamer-1.0) >= 0.11.92
BuildRequires:  pkgconfig(gstreamer-base-1.0) >= 0.11.92
BuildRequires:  pkgconfig(gstreamer-pbutils-1.0) >= 0.11.92
BuildRequires:  pkgconfig(gstreamer-plugins-base-1.0) >= 0.11.92
BuildRequires:  pkgconfig(gstreamer-tag-1.0) >= 0.11.92
BuildRequires:  pkgconfig(gstreamer-video-1.0) >= 0.11.92
BuildRequires:  pkgconfig(gtk+-3.0) >= 3.0.0
BuildRequires:  pkgconfig(ice)
BuildRequires:  pkgconfig(libcanberra)
BuildRequires:  pkgconfig(libcanberra-gtk3)
BuildRequires:  pkgconfig(libnautilus-extension)
BuildRequires:  pkgconfig(libnotify) >= 0.6.1
BuildRequires:  pkgconfig(libxml-2.0) >= 2.6.0
BuildRequires:  pkgconfig(sm)
BuildRequires:  pkgconfig(totem-plparser) >= 2.29.1
# The gstreamer Requires are versioned as gstreamer010 packages had virtual provides.
Requires:       gstreamer >= 0.11.02
Requires:       gstreamer-plugins-base >= 0.11.92
Requires:       gstreamer-plugins-good >= 0.11.92
# We need wodim to burn CDs (bnc#729984)
Requires:       wodim
# We need cdrdao to be able to extract audio tracks from disks
Requires:       cdrdao
# cdrkit-cdrtools-compat provides cdda2wav
Requires:       cdrkit-cdrtools-compat
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
Summary:        CD/DVD burning application for GNOME
Group:          Development/Libraries/GNOME
Requires:       %{name} = %{version}
Requires:       libbrasero-burn3-1 = %{version}
Requires:       libbrasero-media3-1 = %{version}
Requires:       libbrasero-utils3-1 = %{version}
Requires:       typelib-1_0-BraseroBurn-3_2_0 = %{version}
Requires:       typelib-1_0-BraseroMedia-3_2_0 = %{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
Summary:        CD/DVD burning application for GNOME
Group:          System/Libraries
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 typelib-1_0-BraseroBurn-3_2_0
Summary:        CD/DVD burning application for GNOME -- Introspection bindings
Group:          System/Libraries

%description -n typelib-1_0-BraseroBurn-3_2_0
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.

This package provides the GObject Introspection bindings for the
libbrasero-burn library.

%package -n libbrasero-media3-1
Summary:        CD/DVD burning application for GNOME
Group:          System/Libraries
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 typelib-1_0-BraseroMedia-3_2_0
Summary:        CD/DVD burning application for GNOME -- Introspection bindings
Group:          System/Libraries

%description -n typelib-1_0-BraseroMedia-3_2_0
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.

This package provides the GObject Introspection bindings for the
libbrasero-media library.

%package -n libbrasero-utils3-1
Summary:        CD/DVD burning application for GNOME
Group:          System/Libraries
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
Summary:        Brasero CD/DVD burning extension for Nautilus
Group:          Productivity/Multimedia/CD/Record
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 \
        --enable-libburnia
make %{?_smp_flags} 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
%suse_update_desktop_file %{name}
%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
%doc %{_datadir}/help/C/%{name}/
%{_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*

%files -n typelib-1_0-BraseroBurn-3_2_0
%defattr(-,root,root)
%{_libdir}/girepository-1.0/BraseroBurn-*.typelib

%files -n libbrasero-media3-1
%defattr(-,root,root)
%{_libdir}/libbrasero-media3.so.1*

%files -n typelib-1_0-BraseroMedia-3_2_0
%defattr(-,root,root)
%{_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