File compizconfig-settings-manager.spec of Package compizconfig-settings-manager

# spec file for package compizconfig-settings-manager
# Copyright (c) 2017 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

%define _name   ccsm
Name:           compizconfig-settings-manager
Version:        0.8.14
Release:        0
Summary:        Settings Manager for Compiz (CCSM)
License:        GPL-2.0+
Group:          System/X11/Utilities
BuildRequires:  gettext
BuildRequires:  gobject-introspection-devel
BuildRequires:  hicolor-icon-theme
BuildRequires:  intltool
BuildRequires:  python3-devel
BuildRequires:  update-desktop-files
Requires:       python3-ccm = %{version}
Recommends:     %{name}-lang
Provides:       %{_name} = 0.8
BuildArch:      noarch

Compiz Config and Settings tool (CCSM).


%package -n compizconfig-settings-manager-common
Summary:        Settings Manager for Compiz -- Common files
Group:          System/X11/Utilities
BuildArch:      noarch

%description -n compizconfig-settings-manager-common
Common files for the Compiz Config and Settings tool (CCSM).

%package -n python3-ccm
Summary:        CompizConfig Manager Backend
Group:          Development/Languages/Python
Requires:       compiz < 0.9
Requires:       compizconfig-settings-manager-common
Requires:       python3-cairo
Requires:       python3-compizconfig < 0.9
Requires:       python3-gobject
Requires:       python3-gobject-cairo
Requires:       python3-xml
Obsoletes:      python-ccm < 0.8.14
%if 0%{?suse_version} > 1320 || 0%{?sle_version} >= 120200
Requires:       python3-gobject-Gdk

%description -n python3-ccm
The backend to Compiz Config Manager.

%setup -q -n %{_name}-%{version}
mv ccsm.appdata.xml{,.in}

python3 build \

python3 install \
  --root=%{buildroot} \
mv %{buildroot}%{_datadir}/{metainfo,appdata}/
%find_lang %{_name}



%dir %{_datadir}/appdata/

%files lang -f %{_name}.lang

%files -n compizconfig-settings-manager-common

%files -n python3-ccm