File libgail-gnome.spec of Package libgail-gnome

#
# spec file for package libgail-gnome
#
# 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/
#

# norootforbuild


Name:           libgail-gnome
BuildRequires:  at-spi-devel atk-devel gail-devel gconf2-devel gnome-common gnome-panel-devel gtk2-devel libbonobo-devel libbonoboui-devel libgnomeui-devel
Version:        1.20.3
Release:        3.<RELEASE3>
Url:            http://www.gnome.org/
Group:          System/GUI/GNOME
License:        LGPLv2.1+
Summary:        GNOME Accessibility Implementation Library for gnomeui and libbonoboui
Source:         ftp://ftp.gnome.org/pub/GNOME/sources/%{name}/1.20/%{name}-%{version}.tar.bz2
Source99:       baselibs.conf
Patch:          libgail-gnome-decl.patch
# PATCH-FIX-UPSTREAM libgail-no-bonobo-applet-in-panel.patch bnc#667873 vuntz@opensuse.org -- Avoid at all cost using anything from libpanel-applet if we're inside the gnome-panel process, to avoid a conflict between bonobo-based and dbus-based libraries (they share symbol names)
Patch1:         libgail-no-bonobo-applet-in-panel.patch
AutoReqProv:    on
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Supplements:    packageand(gnome2-SuSE:gail)
%gconf_schemas_prereq

%description
This package contains an implementation of the ATK interfaces for GNOME
widgets.

%package devel
License:        LGPLv2.1+
Group:          System/GUI/GNOME
Summary:        GNOME Accessibility Implementation Library for gnomeui and libbonoboui
Requires:       %{name} = %{version} atk-devel gtk2-devel libbonoboui-devel

%description devel
This package contains an implementation of the ATK interfaces for GNOME
widgets.

%prep
%setup -q
%patch
%patch1 -p1

%build
# Needed for patch1
autoreconf -fi
%configure --disable-static
make %{?jobs:-j%jobs}

%install
%makeinstall
find %{buildroot}%{_libdir} -name '*.la' -delete -print
%find_gconf_schemas

%clean
rm -rf $RPM_BUILD_ROOT

%pre -f %{name}.schemas_pre

%preun -f %{name}.schemas_preun

%posttrans -f %{name}.schemas_posttrans

%files -f %{name}.schemas_list
%defattr (-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README
%{_libdir}/gtk-2.0/modules/*.so

%files devel
%defattr (-, root, root)
%{_libdir}/pkgconfig/*.pc

%changelog
openSUSE Build Service is sponsored by