File goobox.spec of Package goobox

#
# spec file for package goobox
#
# Copyright (c) 2016 SUSE LINUX 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:           goobox
Version:        3.4.2
Release:        0
# FIXME: Enable libcoverart support.
Summary:        CD Player and Ripper for GNOME
License:        GPL-2.0+
Group:          Productivity/Multimedia/CD/Grabbers
Url:            http://www.gnome.org
Source:         http://download.gnome.org/sources/goobox/3.4/%{name}-%{version}.tar.xz
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  intltool
BuildRequires:  translation-update-upstream
BuildRequires:  update-desktop-files
BuildRequires:  yelp-tools
BuildRequires:  pkgconfig(glib-2.0) >= 2.36
BuildRequires:  pkgconfig(gstreamer-1.0) >= 1.0.0
BuildRequires:  pkgconfig(gtk+-3.0) >= 3.10.0
BuildRequires:  pkgconfig(ice)
BuildRequires:  pkgconfig(libbrasero-media3)
#BuildRequires:  pkgconfig(libcoverart) >= 1.0.0
BuildRequires:  pkgconfig(libdiscid)
BuildRequires:  pkgconfig(libmusicbrainz5) >= 5.0.0
BuildRequires:  pkgconfig(libnotify) >= 0.4.3
BuildRequires:  pkgconfig(sm)
Recommends:     %{name}-lang
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%glib2_gsettings_schema_requires

%description
Goobox is a CD player and ripper that always knows just what to do.

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

%build
%configure
make %{?_smp_mflags}

%install
%make_install
%suse_update_desktop_file goobox AudioVideo Player CD
%find_lang %{name} %{?no_lang_C}
%fdupes %{buildroot}

%clean
rm -rf %{buildroot}

%post
%glib2_gsettings_schema_post
%desktop_database_post
%icon_theme_cache_post

%postun
%glib2_gsettings_schema_postun
%desktop_database_postun
%icon_theme_cache_postun

%files
%defattr (-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README
%doc %{_datadir}/help/C/%{name}/
%{_bindir}/goobox
%{_datadir}/applications/goobox.desktop
%{_datadir}/GConf/gsettings/goobox.convert
%{_datadir}/glib-2.0/schemas/org.gnome.Goobox.gschema.xml
%{_datadir}/icons/hicolor/*/apps/goobox.png
%{_datadir}/icons/hicolor/scalable/apps/goobox-symbolic.svg
%dir %{_datadir}/appdata/
%{_datadir}/appdata/goobox.appdata.xml

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by