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

#
# spec file for package compizconfig-settings-manager
#
# Copyright (c) 2011 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:           compizconfig-settings-manager
Version:        0.9.5.94
Release:        1
License:        GPLv2+
Summary:        Settings Manager for Compiz (CCSM)
Url:            http://opencompositing.org
Group:          System/X11/Utilities
Source:         %{name}.tar.bz2
# Helper to update to latest git.
Source99:       update.sh
BuildRequires:  intltool
BuildRequires:  python
BuildRequires:  python-gtk
BuildRequires:  update-desktop-files
Requires:       python-ccm
Requires:       python-gtk
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
Compiz Config and Settings tool (CCSM).

%package -n python-ccm
License:        GPLv2+
Summary:        CompizConfig Manager Backend
Group:          System/X11/Utilities
Requires:       python-compizconfig
%py_requires
%if %suse_version <= 1110
%define python_sitelib %{py_sitedir}
%define python_sitearch %{py_sitedir}
%endif

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

%prep
%setup -q -n %{name}

%build
./setup.py --prefix=%{_prefix}

%install
./setup.py install --root=%{buildroot} --prefix=%{_prefix}
%suse_update_desktop_file ccsm DesktopSettings
%find_lang ccsm

%if 0%{?suse_version} > 1130

%post
%icon_theme_cache_post

%postun
%icon_theme_cache_postun
%endif

%files -f ccsm.lang
%defattr(-, root, root)
%{_bindir}/*
%{_datadir}/applications/*
%{_datadir}/icons/*
%if 0%{?suse_version} < 1140
%dir %{_datadir}/locale/ml_IN
%dir %{_datadir}/locale/ml_IN/LC_MESSAGES
%endif

%files -n python-ccm
%defattr(-, root, root)
%{python_sitelib}/*
%{_datadir}/ccsm/

%changelog
openSUSE Build Service is sponsored by