File compiz-manager.spec of Package compiz-manager

#
# spec file for package compiz-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:           compiz-manager
Version:        0.6.0
Release:        16
License:        GPLv2+
Summary:        A wrapper script to launch Compiz with proper options
Url:            http://opencompositing.org
Group:          System/X11/Utilities
Source:         %name-%version.tar.bz2
Source2:        Compiz.desktop
Source3:        config.skel
# PATCH-FEATURE-OPENSUSE compiz-manager-setup.patch dimstar@opensuse.org -- Configure compiz-manager to fit the openSUSE ecosystem.
Patch0:         compiz-manager-setup.patch
# PATCH-FIX-UPSTREAM compiz-manager-detect-multiple-graphic-cards.patch bnc#440273 rodrigo@novell.com -- Detect more than 1 graphic card
Patch6:         compiz-manager-detect-multiple-graphic-cards.patch
# PATCH-FIx-UPSTREAM dimstar@opensuse.org bnc#469785 -- Compiz not redrawing properly with nVidia hardware, taken from upstream commit 06ca70.
Patch7:         bug-469785-disable-loose-binding.diff
# PATCH-MISSING-TAG -- See http://en.opensuse.org/Packaging/Patches
Patch8:         compiz-manager-avoid-sw-rast-bug-479060.diff
# PATCH-FIX-UPSTREAM compiz-manager-dry_run.patch -- Add dry_run capabilities, taken from upstream git
Patch9:         compiz-manager-dry_run.patch
# PATCH-FIX-UPSTREAM compiz-manager-fallback_xterm.patch -- Have one last fallback to xterm if nothing else works, taken from upstream git
Patch10:        compiz-manager-fallback_xterm.patch
# PATCH-FIX-UPSTREAM compiz-manager-bnc564536.patch bnc#564536 dimstar@opensuse.org -- Account for lib64 and double slashes in paths.
Patch11:        compiz-manager-bnc564536.patch
# PATCH-FIX-UPSTREAM compiz-manager-sm-client-id.patch dimstar@opensuse.org -- Properly register compiz with gnome-session, avoiding a 10 second timeout. Patch taken from upstream git, commit 223180bf
Patch12:        compiz-manager-sm-client-id.patch
# PATCH-FEATURE-OPENSUSE compiz-manager-nouveau.patch dimstar@opensuse.org -- Nouveau is sufficient to handle compiz.
Patch13:        compiz-manager-nouveau.patch
PreReq:         %fillup_prereq
Requires:       compiz >= 0.9
Requires:       util-linux
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  update-desktop-files
BuildArch:      noarch

%description
Compiz Manager wrapper script

This script will detect what options we need to pass to compiz to get
it started, and start a default plugin and possibly window decorator.

%prep
%setup -q
%patch0 -p1
%patch6 -p0
%patch7 -p1
%patch8 -p0
%patch9 -p1
%patch10 -p1
%patch11 -p0
%patch12 -p1
%patch13 -p1

%build

%install
%__install -d -m 755 %{buildroot}%{_bindir}
%__install -d -m 755 %{buildroot}%{_datadir}/compiz-manager
%__install -m 755 compiz-manager %{buildroot}%{_bindir}
%__install -m 644 %{S:2} %{buildroot}%{_datadir}/compiz-manager/
%__install -m 644 %{S:3} %{buildroot}%{_datadir}/compiz-manager/
%suse_update_desktop_file %{buildroot}%{_datadir}/compiz-manager/Compiz.desktop

%clean
%__rm -rf %{buildroot}

%files
%defattr(-, root, root)
%dir %{_datadir}/compiz-manager
%{_bindir}/*
%{_datadir}/compiz-manager/*

%changelog
openSUSE Build Service is sponsored by