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

#
# spec file for package compiz-plugins-dmx (Version 0.1.0)
#
# 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-plugins-dmx
BuildRequires:  compiz-bcop intltool xorg-x11-devel
%if 0%{suse_version} < 01120
BuildRequires:  compiz-kde
%endif
BuildRequires:  compiz-devel >= 0.7.7
%if "%_repository" == "SUSE_Linux_10.1" || "%_repository" == "SLE_10"
BuildRequires:  xorg-x11-compat70-devel
%endif
Url:            http://www.compiz.org
License:        MIT License (or similar)
Group:          System/GUI/Other
PreReq:         %fillup_prereq
Requires:       compiz
Version:        0.1.0
Release:        10
Summary:        Compiz DMX plugins
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
ExclusiveArch:  %ix86 x86_64 ppc ppc64 ia64
Source:         dmx.tar.bz2
Source1:        hidedesktop.tar.bz2
Patch:          dmx-NOMAD.diff
Patch1:         hidedesktop-NOMAD.diff
#%define _libsuffix %(echo %_lib | cut -b4-)
%gconf_schemas_prereq

%description
This package contains compiz DMX plugins.



Authors:
--------
    David Reveman

%prep
%setup -q -c -n dmx -a 1
pushd dmx
%patch -p1
popd
pushd hidedesktop
%patch1 -p1
popd

%build
pushd dmx
make
popd
pushd hidedesktop
make
popd

%install
pushd dmx
install -D -m 755 build/.libs/libdmx.so %buildroot%_libdir/compiz/libdmx.so
install -D -m 644 build/dmx.xml %buildroot%_datadir/compiz/dmx.xml
install -D -m 644 build/compiz-dmx.schema %buildroot/etc/gconf/schemas/compiz-dmx.schemas
popd
pushd hidedesktop
install -D -m 755 build/.libs/libhidedesktop.so %buildroot%_libdir/compiz/libhidedesktop.so
install -D -m 644 build/hidedesktop.xml %buildroot%_datadir/compiz/hidedesktop.xml
install -D -m 644 build/compiz-hidedesktop.schema %buildroot/etc/gconf/schemas/compiz-hidedesktop.schemas
popd
%find_gconf_schemas

%pre -f %{name}.schemas_pre

%preun -f %{name}.schemas_preun

%posttrans -f %{name}.schemas_posttrans

%clean
%__rm -rf %{buildroot}

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

%changelog
openSUSE Build Service is sponsored by