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/
#


%define build_applet 0

Name:           libgail-gnome
Version:        1.20.4
Release:        1
License:        LGPLv2.1+
Summary:        GNOME Accessibility Implementation Library for gnomeui and libbonoboui
Url:            http://www.gnome.org/
Group:          System/GUI/GNOME
Source:         ftp://ftp.gnome.org/pub/GNOME/sources/%{name}/1.20/%{name}-%{version}.tar.bz2
Source99:       baselibs.conf
# 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
# PATCH-FIX-UPSTREAM libgail-no-applet.patch bgo#651200 vuntz@opensuse.org -- Remove support for panel applets: those are bonobo applets (libpanel-applet-2), which are gone with GNOME 3.
Patch2:         libgail-no-applet.patch
BuildRequires:  at-spi-devel
BuildRequires:  atk-devel
BuildRequires:  gail-devel
BuildRequires:  gconf2-devel
# Needed for patch1 and patch2
BuildRequires:  gnome-common
BuildRequires:  gtk2-devel
BuildRequires:  libbonobo-devel
BuildRequires:  libbonoboui-devel
BuildRequires:  libgnomeui-devel
%if %{build_applet}
BuildRequires:  pkgconfig(libpanelapplet-2.0)
%endif
Supplements:    packageand(gnome2-SuSE:gail)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%gconf_schemas_prereq

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

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

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

%prep
%setup -q
%if %{build_applet}
%patch1 -p1
%else
%patch2 -p1
%endif

%build
# Needed for patch1 and patch2
autoreconf -fi
%configure --disable-static
make %{?_smp_mflags}

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

%clean
rm -rf %{buildroot}

%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