File compiz-plugins-extra.spec of Package compiz-plugins-extra

#
# spec file for package compiz-plugins-extra (Version 0.8.6)
#
# 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:           compiz-plugins-extra
BuildRequires:  Mesa-devel
BuildRequires:  cairo-devel
BuildRequires:  compiz-bcop
BuildRequires:  compiz-devel
BuildRequires:  compiz-plugins-main-devel
BuildRequires:  compiz-gnome
BuildRequires:  dbus-1-devel
BuildRequires:  gcc-c++
BuildRequires:  gconf2-devel
BuildRequires:  glibc-devel
BuildRequires:  libgnome-desktop-2-devel
BuildRequires:  gtk2-devel
BuildRequires:  intltool
BuildRequires:  libjpeg-devel
BuildRequires:  libnotify-devel
BuildRequires:  librsvg-devel
BuildRequires:  libwnck-devel
BuildRequires:  libxslt-devel
BuildRequires:  linux-kernel-headers
BuildRequires:  pango-devel
BuildRequires:  perl-XML-Parser
BuildRequires:  update-desktop-files
BuildRequires:  xorg-x11-devel
%if "%_repository" == "SUSE_Linux_10.1" || "%_repository" == "SLE_10"
BuildRequires:  xorg-x11-compat70-devel
%endif
%if %suse_version <= 1021
BuildRequires:  gconf2-rpm-macros
%endif
Version:        0.8.6
Release:        1
License:        GPLv2+
Summary:        Compiz-Fusion community extra plugins
Url:            http://opencompositing.org
Group:          System/X11/Utilities
Source:         %{name}-%{version}.tar.bz2
# PATCH-FEATURE-OPENSUSE dimstar@opensuse.org -- Define some sane standards for the extra plugins.
Patch0:         compiz-plugins-extra-defaults.diff
PreReq:         %fillup_prereq
Requires:       compiz
Requires:       compiz-plugins-main
Provides:       compiz-fusion-plugins-extra = %{version}
Obsoletes:      compiz-fusion-plugins-extra < %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Conflicts:      compiz-extra compiz-extra-git
ExclusiveArch:  %ix86 x86_64 ppc ppc64 ia64
%define gnome_prefix %(pkg-config --variable=prefix gnome-desktop-2.0)
%if "%gnome_prefix" == "/usr"
%define gnome_etc /etc
%else
%define gnome_etc /etc%gnome_prefix
%endif
%gconf_schemas_prereq

%description
This package contains Compiz-Fusion community extra plugins.

Contains: addhelper crashhandler extrawm firepaint goto-viewport
mswitch scalefilter splash bench cubereflex fadedesktop gears group
mblur reflex showdesktop trailfocus.

%package devel
License:        GPLv2+
Summary:        Compiz-Fusion community extra plugins
Group:          System/X11/Utilities
Requires:       compiz-plugins-main-devel
Provides:       compiz-fusion-plugins-extra-devel = %{version}
Obsoletes:      compiz-fusion-plugins-extra-devel < %{version}

%description devel
This package contains Compiz-Fusion community extra plugins.

Contains: addhelper crashhandler extrawm firepaint goto-viewport
mswitch scalefilter splash bench cubereflex fadedesktop gears group
mblur reflex showdesktop trailfocus.

%prep
%setup -q
%patch0 -p1

%build
export IMAGEDIR=%{buildroot}%{_datadir}/compiz
%configure \
        --disable-static \
        --with-pic \
        --enable-schemas \
        --with-gconf-schema-file-dir=%gnome_etc/gconf/schemas \
        --disable-schemas-install \
	CFLAGS="`pkg-config --cflags gtk+-2.0`"

make %{?jobs:-j%jobs}

%install
%makeinstall
find %{buildroot} -type f -name "*.la" -delete -print
rm -r %{buildroot}%{_datadir}/locale
%find_gconf_schemas

%pre -f %{name}.schemas_pre

%preun -f %{name}.schemas_preun

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%posttrans -f %{name}.schemas_posttrans

%clean
%__rm -rf %{buildroot}

%files -f %{name}.schemas_list
%defattr(-, root, root)
%{_libdir}/compiz/*
%{_datadir}/compiz/*

%files devel
%defattr(-, root, root)
%{_includedir}/compiz/compiz-animationaddon.h
%{_libdir}/pkgconfig/compiz-animationaddon.pc

%changelog
openSUSE Build Service is sponsored by