SHA256
1
0
forked from pool/at-spi2-core
at-spi2-core/at-spi2-core.spec

129 lines
3.9 KiB
RPMSpec

#
# spec file for package at-spi2-core
#
# 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/
#
Name: at-spi2-core
Version: 2.1.91
Release: 1
Summary: Assistive Technology Service Provider Interface - D-Bus based implementation
License: GPLv2+
Group: System/Libraries
Url: http://www.gnome.org/
Source0: http://download.gnome.org/sources/at-spi2-core/2.1/%{name}-%{version}.tar.bz2
Source99: %{name}-rpmlintrc
# PATCH-FIX-UPSTREAM at-spi2-core-missing-return.patch bgo#658337 vuntz@opensuse.org -- Missing returns
Patch0: at-spi2-core-missing-return.patch
BuildRequires: glib2-devel
BuildRequires: gobject-introspection-devel
BuildRequires: intltool
BuildRequires: xorg-x11-devel
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(dbus-1)
# dbus-daemon is needed to have this work fine
Requires: dbus-1
# The libraries that were shipped with at-spi2-core were removed, and so
# there's no devel package anymore
Obsoletes: %{name}-devel <= 0.1.1
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
AT-SPI is a general interface for applications to make use of the
accessibility toolkit. This version is based on dbus.
This package contains the AT-SPI registry daemon. It provides a
mechanism for all assistive technologies to discover and interact
with applications running on the desktop.
%package -n libatspi0
License: GPLv2+
Summary: An Accessibility ToolKit
Group: System/Libraries
%description -n libatspi0
The ATK library provides a set of accessibility interfaces. By
supporting the ATK interfaces, an application or toolkit can be used
with screen readers, magnifiers, and alternate input devices.
%package devel
License: GPLv2+
Summary: Include Files and Libraries mandatory for Development
Group: Development/Libraries/GNOME
Requires: libatspi0 = %{version}
Requires: at-spi2-core = %{version}
%description devel
This package contains all necessary include files and libraries needed
to develop applications that require these.
%lang_package
%prep
%setup -q
%patch0 -p1
%if 0%{?BUILD_FROM_VCS}
[ -x ./autogen.sh ] && NOCONFIGURE=1 ./autogen.sh
%endif
%build
%configure \
--libexecdir=%{_libexecdir}/at-spi2 \
--with-dbus-daemondir=/bin \
--disable-static
%__make %{?jobs:-j%jobs}
%install
%makeinstall
%suse_update_desktop_file at-spi-dbus-bus
%find_lang at-spi2-core
find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print
%clean
rm -rf %{buildroot}
%post -n libatspi0 -p /sbin/ldconfig
%postun -n libatspi0 -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc AUTHORS COPYING README
%{_libexecdir}/at-spi2/
%{_sysconfdir}/at-spi2/
%{_sysconfdir}/xdg/autostart/at-spi-dbus-bus.desktop
%{_datadir}/dbus-1/services/org.a11y.atspi.Registry.service
%{_datadir}/dbus-1/services/org.a11y.Bus.service
%files -n libatspi0
%defattr(-, root, root)
%{_libdir}/libatspi.so.0*
%{_libdir}/girepository-1.0/Atspi-2.0.typelib
%files devel
%defattr(-, root, root)
%{_includedir}/at-spi-2.0/
%{_libdir}/libatspi.so
%{_libdir}/pkgconfig/atspi-2.pc
%{_datadir}/gir-1.0/*.gir
%dir %{_datadir}/gtk-doc
%dir %{_datadir}/gtk-doc/html
%doc %{_datadir}/gtk-doc/html/libatspi/
%files lang -f at-spi2-core.lang
%changelog