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

#
# spec file for package compiz-fusion-plugins-extra (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:           compiz-fusion-plugins-extra
BuildRequires:  Mesa-devel cairo-devel compiz-bcop compiz-devel compiz-fusion-plugins-main-devel compiz-gnome dbus-1-devel gcc-c++ gconf2-devel glibc-devel gnome-desktop-devel gtk2-devel intltool libjpeg-devel libnotify-devel librsvg-devel libwnck-devel libxslt-devel linux-kernel-headers pango-devel perl-XML-Parser update-desktop-files 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
Url:            http://opencompositing.org
License:        GPL v2 or later
Group:          System/X11/Utilities
PreReq:         %fillup_prereq
Requires:       compiz compiz-fusion-plugins-main
Conflicts:      compiz-extra compiz-extra-git
Version:        0.7.8 
Release:        5
Summary:        Compiz-Fusion community extra plugins
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
ExclusiveArch:  %ix86 x86_64 ppc ppc64 ia64
Source:         %{name}-%{version}.tar.bz2
Patch:          compiz-plugins-extra-defaults.diff
Patch1:         plugins-extra-NOMAD.diff
%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
%define _libsuffix %(echo %_lib | cut -b4-)
%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.



Authors:
--------
    David Reveman and the Compiz-Fusion community

%package devel
License:        GPL v2 or later
Summary:        Compiz-Fusion community extra plugins
Group:          System/X11/Utilities
Requires:       compiz-fusion-plugins-main-devel
AutoReqProv:    on

%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.



Authors:
--------
    David Reveman and the Compiz-Fusion community

%prep
%setup -q -n %{name}-%{version}
%patch -p1
%patch1 -p1

%build
#
#### plugins-extra
#
export IMAGEDIR=%buildroot/%{_datadir}/compiz
%configure --disable-static --with-pic --enable-schemas  --with-gconf-schema-file-dir=%gnome_etc/gconf/schemas --disable-schemas-install
#mkdir BUILD
#pushd BUILD
#cmake -DCMAKE_SKIP_RPATH=ON -DCMAKE_INSTALL_PREFIX=/usr -DLIB_SUFFIX=%_libsuffix -DCF_DISABLE_SCHEMAS_INSTALL=TRUE -DCF_INSTALL_GCONF_SCHEMA_DIR=%gnome_etc/gconf/schemas -d ../
make %{?jobs:-j%jobs}
#popd 

%install
#pushd BUILD
%makeinstall
#popd
find %{buildroot} -type f -name "*.la" | xargs rm -f
#remove locale data as it is not required anymore, translations are merged in .xml and .schemas
rm -r %buildroot/usr/share/locale
#mv %gnome_etc/gconf/schemas/*.schema %gnome_etc/gconf/schemas/*.schemas
%find_gconf_schemas
#cat %{name}.schemas_list

%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