File simple-ccsm.spec of Package simple-ccsm

#
# spec file for package simple-ccsm
#
# 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:           simple-ccsm
Version:        0.9.2.1
Release:        6.<RELEASE3>
License:        GPLv2+
Summary:        Simple Settings Manager for Compiz
Url:            http://opencompositing.org
Group:          System/X11/Utilities
Source:         simple-ccsm.tar.bz2
# Helper script to track upstream git changes.
Source99:       update.sh
# PATCH-FIX-UPSTREAM simple-ccsm-disable-compiz.patch dimstar@opensuse.org -- Write a disable-compiz file when disabling compiz.
Patch0:         simple-ccsm-disable-compiz.patch
BuildRequires:  compiz-devel
BuildRequires:  compiz-gnome
BuildRequires:  gtk2-devel
BuildRequires:  intltool
BuildRequires:  libcompizconfig-devel
BuildRequires:  libxml2-devel
BuildRequires:  libxslt-devel
BuildRequires:  pkg-config
BuildRequires:  pyrex
BuildRequires:  python-compizconfig
BuildRequires:  python-devel
BuildRequires:  update-desktop-files
PreReq:         %fillup_prereq
Requires:       compiz
Requires:       compiz-plugins-main
Requires:       compiz-manager
Requires:       python-ccm 
Requires:       python-xml
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
ExclusiveArch:  %ix86 x86_64 ppc ppc64 ia64
%py_requires
%if %suse_version <= 1110
%define python_sitelib %{py_sitedir}
%define python_sitearch %{py_sitedir}
%endif

%description
Compiz settings manager focused on simplicity and aimed at end users.

%prep
%setup -q -n simple-ccsm
%patch0 -p1

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

%install
./setup.py install --root=%{buildroot} --prefix=%{_prefix} --enableDesktopEffects
find %{buildroot} \( -name \*.a -o -name \*.la \) -print0 | xargs -0 rm -f
%suse_update_desktop_file -N "Desktop Effects" simple-ccsm DesktopSettings X-SuSE-ControlCenter-LookAndFeel
%find_lang simple-ccsm

%clean
%__rm -rf %{buildroot}

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

%changelog