File compizconfig-settings-manager.spec of Package compizconfig-settings-manager
#
# spec file for package compizconfig-settings-manager (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: compizconfig-settings-manager
BuildRequires: compiz-devel compiz-gnome gconf2-devel glib2-devel 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: 6
Requires: compiz python-compizconfig python-xml libcompizconfig
Obsoletes: ccs-settings
Summary: Settings Manager for Compiz (CCSM)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source: ccsm-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM compizconfig-settings-manager-profile-extensions.patch bgo#458343 rodrigo@novell.com
Patch1: compizconfig-settings-manager-profile-extensions.patch
# PATCH-FIX-OPENSUSE Don't warn about missing sexy-python
Patch2: unsexy.patch
%py_requires
%if %suse_version <= 1110
%define python_sitelib %{py_sitedir}
%define python_sitearch %{py_sitedir}
ExclusiveArch: %ix86 x86_64 ppc ppc64 ia64
%else
BuildArch: noarch
%endif
%description
Compiz Config and Settings tool (CCSM).
%prep
%setup -q -n ccsm-%{version}
%patch1 -p0
%patch2 -p0
%build
./setup.py install --root=%buildroot --prefix=/usr
%install
find %buildroot \( -name \*.a -o -name \*.la \) -print0 | xargs -0 rm -f
%__ln_s %{_bindir}/ccsm %buildroot%{_bindir}/compizconfig-settings-manager
%suse_update_desktop_file ccsm DesktopSettings
%find_lang ccsm
%clean
%__rm -rf %{buildroot}
%files -f ccsm.lang
%defattr(-, root, root)
%{_bindir}/*
%{_datadir}/applications/*
%dir %{_datadir}/ccsm
%{_datadir}/ccsm/*
%{_datadir}/icons/*
%dir %{python_sitelib}/ccm
%{python_sitelib}/*
%changelog