File simple-ccsm.spec of Package simple-ccsm

#
# spec file for package simple-ccsm (Version 0.7.8 )
#
# Copyright (c) 2009 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
BuildRequires:  compiz-devel compiz-gnome gtk2-devel intltool libcompizconfig-devel libxml2-devel libxslt-devel pkg-config pyrex python-compizconfig python-devel update-desktop-files
Url:            http://opencompositing.org
License:        GPL v2 or later
Group:          System/X11/Utilities
PreReq:         %fillup_prereq
Version:        0.7.8 
Release:        17
Requires:       compiz python-compizconfig python-xml compiz-manager compiz-fusion-plugins-main compizconfig-settings-manager
Summary:        Simple Settings Manager for Compiz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
ExclusiveArch:  %ix86 x86_64 ppc ppc64 ia64
Source:         simple-ccsm-%{version}.tar.bz2
Patch:          simple-ccsm-compiz-manager-cmd.diff
Patch1:         simple-ccsm-kde-enable.patch
# PATCH-FEATURE-OPENSUSE simple-ccsm-default-plugins.patch bnc #432301 -- include glx
Patch2:         simple-ccsm-default-plugins.patch
# PATCH-FIX-OPENSUSE simple-ccsm.desktop patch -- for better menu integration
Patch3:         simple-ccsm-desktop.patch
# PATCH-FIX-OPENSUSE simple-ccsm-explicitly-disable-compiz.patch
Patch4:         simple-ccsm-explicitly-disable-compiz.patch
# PATCH-FIX-UPSTREAM simple-ccsm-cm-dry.patch bnc#407729 rodrigo@novell.com -- Use os.system to run CM_DRY command
Patch5:         simple-ccsm-cm-dry.patch
%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-%{version}
%patch -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p0

%build
./setup.py install --root=%buildroot --prefix=/usr --enableDesktopEffects

%install
find %buildroot \( -name \*.a -o -name \*.la \) -print0 | xargs -0 rm -f
%suse_update_desktop_file 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/*
%dir %{_datadir}/simple-ccsm
%{_datadir}/simple-ccsm/*
%{_datadir}/icons/*
%dir %{python_sitelib}
%{python_sitelib}/*

%changelog
openSUSE Build Service is sponsored by