File at-spi2-core.spec of Package at-spi2-core

#
# spec file for package at-spi2-core (Version 0.1.1)
#
# 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:           at-spi2-core
Version:        0.1.1
Release:        1
Summary:        Assistive Technology Service Provider Interface - D-Bus based implementation
License:        GPL v2 or later
Group:          System/Libraries
Url:            http://www.gnome.org/
Source0:        %{name}-%{version}.tar.bz2
BuildRequires:  dbus-1-glib-devel
BuildRequires:  gtk2-devel
BuildRequires:  update-desktop-files
# dbus-daemon is needed to have this work fine
Requires:       dbus-1
# This package will Obsoletes/Provides at-spi in the future, but right now
# we only provide the package for testing purposes, so we only use Conflicts.
Conflicts:      at-spi
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This library is a general interface for applications to make use of the
accessibility toolkit. This version is based on dbus.

%package devel
License:        GPL v2 or later
Summary:        Assistive Technology Service Provider Interface - D-Bus based implementation - Development Files
Group:          Development/Libraries/GNOME
Requires:       %{name} = %{version}
Requires:       atk-devel
Requires:       dbus-1-devel
Requires:       gtk2-devel
# This package will Obsoletes/Provides at-spi in the future, but right now
# we only provide the package for testing purposes, so we only use Conflicts.
Conflicts:      at-spi-devel

%description devel
This library is a general interface for applications to make use of the
accessibility toolkit. This version is based on dbus.

%prep
%setup -q

%build
%configure \
        --disable-static
%__make %{?jobs:-j%jobs}

%install
%makeinstall
find %{buildroot} -type f -name "*.la" -delete -print
%suse_update_desktop_file at-spi-registryd

%clean
rm -rf %{buildroot}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%doc AUTHORS COPYING INSTALL README
%{_datadir}/%{name}/
%{_sysconfdir}/xdg/autostart/at-spi-registryd.desktop
%{_libdir}/libdbind.so.*
%{_libdir}/libdroute.so.*
%{_libexecdir}/at-spi-registryd
%{_datadir}/dbus-1/services/org.freedesktop.atspi.Registry.service

%files devel
%defattr(-,root,root)
%{_includedir}/dbind-0.1/
%{_includedir}/droute-0.1/
%{_libdir}/libdbind.so
%{_libdir}/libdroute.so
%{_libdir}/pkgconfig/dbind-0.1.pc
%{_libdir}/pkgconfig/droute-0.1.pc

%changelog
openSUSE Build Service is sponsored by