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

#
# spec file for package compizconfig-settings-manager (Version 0.8.4)
#
# Copyright (c) 2010 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.8.4
Release:        4.1
License:        GPL-2.0+
Summary:        Settings Manager for Compiz (CCSM)
Url:            http://opencompositing.org
Group:          System/X11/Utilities
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
BuildRequires:  compiz-devel
BuildRequires:  compiz-gnome
BuildRequires:  gconf2-devel
BuildRequires:  glib2-devel
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:       python-ccm < 0.9
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
Compiz Config and Settings tool (CCSM).

%package -n python-ccm
License:        GPL-2.0+
Summary:        CompizConfig Manager Backend
Group:          System/X11/Utilities
Requires:       compiz < 0.9
Requires:       python-compizconfig < 0.9
Requires:       python-xml
%py_requires

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

%prep
%setup -q -n ccsm-%{version}
%patch1 -p0
%patch2 -p0

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

%install
./setup.py install --root=%{buildroot} --prefix=/usr
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/*
%{_datadir}/icons/*

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

%changelog
openSUSE Build Service is sponsored by