File compizconfig-settings-manager.spec of Package compizconfig-settings-manager
#
# spec file for package compizconfig-settings-manager
#
# 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/
#
%define _name ccsm
Name: compizconfig-settings-manager
Version: 0.8.12.4
Release: 0
Summary: Settings Manager for Compiz (CCSM)
License: GPL-2.0+
Group: System/X11/Utilities
Url: https://github.com/compiz-reloaded/ccsm
Source: https://github.com/compiz-reloaded/%{_name}/releases/download/v%{version}/%{_name}-%{version}.tar.xz
BuildRequires: gettext
BuildRequires: gobject-introspection-devel
BuildRequires: hicolor-icon-theme
BuildRequires: intltool
BuildRequires: python-devel
BuildRequires: update-desktop-files
Requires: python-ccm = %{version}
Recommends: %{name}-lang
Provides: %{_name} = 0.8
BuildArch: noarch
%description
Compiz Config and Settings tool (CCSM).
%lang_package
%package -n python-ccm
Summary: CompizConfig Manager Backend
Group: Development/Languages/Python
Requires: compiz < 0.9
Requires: python-cairo
Requires: python-compizconfig < 0.9
Requires: python-gobject
Requires: python-gobject-cairo
Requires: python-xml
%if 0%{?suse_version} > 1320 || 0%{?sle_version} >= 120200
Requires: python-gobject-Gdk
%endif
%description -n python-ccm
The backend to Compiz Config Manager.
%prep
%setup -q -n %{_name}-%{version}
%build
python2 setup.py build \
--prefix=%{_prefix}
%install
python2 setup.py install \
--root=%{buildroot} \
--prefix=%{_prefix}
%find_lang %{_name}
%post
%desktop_database_post
%icon_theme_cache_post
%postun
%desktop_database_postun
%icon_theme_cache_postun
%files
%defattr(-,root,root)
%doc COPYING NEWS
%{_bindir}/%{_name}
%{_datadir}/applications/%{_name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{_name}.*
%dir %{_datadir}/appdata/
%{_datadir}/appdata/%{_name}.appdata.xml
%files lang -f %{_name}.lang
%defattr(-,root,root)
%files -n python-ccm
%defattr(-,root,root)
%{python_sitelib}/ccm/
%{python_sitelib}/%{_name}*
%{_datadir}/%{_name}/
%changelog