File ukui-media.spec of Package ukui-media

#
# spec file for package ukui-media
#
# Copyright (c) 2020 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#

%define project ukui

Name:           ukui-media
Version:        3.0.1
Release:        0
Summary:        The media tools for UKUI
License:        GPL-2.0+
Group:          System/GUI/Other
URL:            https://github.com/ukui/ukui-media
Source:         https://github.com/ukui/ukui-media/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires:  fdupes
BuildRequires:  pkgconfig(gobject-2.0) >= 2.36.0
BuildRequires:  pkgconfig(gtk+-3.0) >= 3.14.0
BuildRequires:  pkgconfig(gio-2.0) >= 2.36.0
BuildRequires:  pkgconfig(libcanberra-gtk3) >= 0.13
BuildRequires:  pkgconfig(libxml-2.0)
BuildRequires:  pkgconfig(mate-desktop-2.0) >= 1.17.0
BuildRequires:  pkgconfig(libmatemixer) >= 1.17.0
BuildRequires:  mate-common
BuildRequires:  intltool
Recommends:     %{name}-lang
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%lang_package

%description
These are the media tools for UKUI:

ukui-volume-control  - UKUI volume control application and applet

Refer to the following files for license information for each sub-component
of ukui-media:

ukui-volume-control  - COPYING
documentation        - COPYING-DOCS

UKUI-Media is a fork of MATE-Media.


%prep
%setup -q

%build
NOCONFIGURE=0 ./autogen.sh
%configure --enable-more-warnings
%make_build

%install
%make_install

%fdupes %{buildroot}
%find_lang %{name}

%files
%defattr(-,root,root,-)
%{_bindir}/*
%{_sysconfdir}/xdg/autostart/ukui-volume-control-applet.desktop
%{_datadir}/applications/*.desktop
%{_datadir}/glib-2.0/schemas/org.ukui.media.gschema.xml
%{_datadir}/%{name}
%{_datadir}/sounds/%{project}
%{_mandir}/man1/*

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by