Blame SPECS/pyatspi.spec

cfee94
%global debug_package %{nil}
cfee94
cfee94
Name:           pyatspi
cfee94
Version:        2.26.0
cfee94
Release:        3%{?dist}
cfee94
Summary:        Python bindings for at-spi
cfee94
cfee94
Group:          Development/Languages
cfee94
License:        LGPLv2 and GPLv2
cfee94
URL:            http://www.linuxfoundation.org/en/AT-SPI_on_D-Bus
cfee94
#VCS: git:git://git.gnome.org/pyatspi
cfee94
Source0:        http://download.gnome.org/sources/pyatspi/2.26/%{name}-%{version}.tar.xz
cfee94
cfee94
BuildRequires:  python2-devel
cfee94
# For tests
cfee94
BuildRequires:  pkgconfig(dbus-1) >= 1.0
cfee94
BuildRequires:  pkgconfig(glib-2.0)
cfee94
BuildRequires:  pkgconfig(dbus-glib-1) >= 0.7.0
cfee94
BuildRequires:  pkgconfig(gobject-2.0) >= 2.0.0
cfee94
BuildRequires:  pkgconfig(gmodule-2.0) >= 2.0.0
cfee94
BuildRequires:  pkgconfig(libxml-2.0) >= 2.0.0
cfee94
BuildRequires:  pkgconfig(atk) >= 2.11.2
cfee94
BuildRequires:  pkgconfig(gtk+-2.0) >= 2.10.0
cfee94
BuildRequires:  pkgconfig(pygobject-3.0) >= 2.90.1
cfee94
BuildRequires:  python-dbus
cfee94
BuildRequires:  python-enum34
cfee94
cfee94
%if !0%{?rhel}
cfee94
BuildRequires:  python3-devel
cfee94
BuildRequires:  python3-dbus
cfee94
%endif
cfee94
cfee94
BuildArch:      noarch
cfee94
cfee94
%global _description\
cfee94
at-spi allows assistive technologies to access GTK-based\
cfee94
applications. Essentially it exposes the internals of applications for\
cfee94
automation, so tools such as screen readers, magnifiers, or even\
cfee94
scripting interfaces can query and interact with GUI controls.\
cfee94
\
cfee94
This package includes a python2 client library for at-spi.\
cfee94
cfee94
cfee94
%description %_description
cfee94
cfee94
%package -n python2-pyatspi
cfee94
Summary: %summary
cfee94
Requires:       at-spi2-core
cfee94
Requires:       python-gobject
cfee94
%{?python_provide:%python_provide python2-pyatspi}
cfee94
# Remove before F30
cfee94
Provides: pyatspi%{?_isa} = %{version}-%{release}
cfee94
Obsoletes: pyatspi < %{version}-%{release}
cfee94
cfee94
%description -n python2-pyatspi %_description
cfee94
cfee94
%if !0%{?rhel}
cfee94
%package -n python3-pyatspi
cfee94
Summary:        Python3 bindings for at-spi
cfee94
Requires:       at-spi2-core
cfee94
Requires:       python3-gobject
cfee94
cfee94
%description -n python3-pyatspi
cfee94
at-spi allows assistive technologies to access GTK-based
cfee94
applications. Essentially it exposes the internals of applications for
cfee94
automation, so tools such as screen readers, magnifiers, or even
cfee94
scripting interfaces can query and interact with GUI controls.
cfee94
cfee94
This package includes a python3 client library for at-spi.
cfee94
%endif
cfee94
cfee94
cfee94
%prep
cfee94
%autosetup -p1
cfee94
cfee94
%if !0%{?rhel}
cfee94
# Make a copy of the source tree for building the python3 module
cfee94
rm -rf %{py3dir}
cfee94
cp -a . %{py3dir}
cfee94
%endif
cfee94
cfee94
cfee94
%build
cfee94
# Build the python2 module
cfee94
%configure --with-python=python2 --enable-tests
cfee94
make
cfee94
cfee94
%if !0%{?rhel}
cfee94
# Build the python3 module
cfee94
pushd %{py3dir}
cfee94
%configure --with-python=python3 --enable-tests
cfee94
make
cfee94
popd
cfee94
%endif
cfee94
cfee94
cfee94
%install
cfee94
%make_install
cfee94
cfee94
%if !0%{?rhel}
cfee94
pushd %{py3dir}
cfee94
%make_install
cfee94
popd
cfee94
cfee94
# Fix up the shebang for python3 example
cfee94
cp -a examples python3-examples
cfee94
sed -i '1s|^#!/usr/bin/python|#!%{__python3}|' python3-examples/magFocusTracker.py
cfee94
%endif
cfee94
cfee94
%check
cfee94
# Done by the 'build' step, with --enable-tests
cfee94
cfee94
cfee94
%files -n python2-pyatspi
cfee94
%license COPYING COPYING.GPL
cfee94
%doc AUTHORS README
cfee94
%doc examples/magFocusTracker.py
cfee94
%{python2_sitelib}/pyatspi/
cfee94
cfee94
%if !0%{?rhel}
cfee94
%files -n python3-pyatspi
cfee94
%license COPYING COPYING.GPL
cfee94
%doc AUTHORS README
cfee94
%doc python3-examples/magFocusTracker.py
cfee94
%{python3_sitelib}/pyatspi/
cfee94
%endif
cfee94
cfee94
cfee94
%changelog
cfee94
* Mon Jun 11 2018 Ray Strode <rstrode@redhat.com> - 2.26.0-3
cfee94
- Require python-gobject instead of python2-gobject
cfee94
  Related: #1569757
cfee94
cfee94
* Wed Jun 06 2018 Richard Hughes <rhughes@redhat.com> - 2.26.0-2
cfee94
- Update to 2.26.0
cfee94
- Resolves: #1569757
cfee94
cfee94
* Tue Jan 17 2017 Kalev Lember <klember@redhat.com> - 2.20.3-1
cfee94
- Update to 2.20.3
cfee94
cfee94
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.20.2-2
cfee94
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
cfee94
cfee94
* Mon May 09 2016 Kalev Lember <klember@redhat.com> - 2.20.2-1
cfee94
- Update to 2.20.2
cfee94
cfee94
* Wed Apr 13 2016 Kalev Lember <klember@redhat.com> - 2.20.1-1
cfee94
- Update to 2.20.1
cfee94
cfee94
* Tue Mar 22 2016 Kalev Lember <klember@redhat.com> - 2.20.0-1
cfee94
- Update to 2.20.0
cfee94
cfee94
* Tue Mar 01 2016 Richard Hughes <rhughes@redhat.com> - 2.19.91-1
cfee94
- Update to 2.19.91
cfee94
cfee94
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.18.0-3
cfee94
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
cfee94
cfee94
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.18.0-2
cfee94
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
cfee94
cfee94
* Mon Sep 21 2015 Kalev Lember <klember@redhat.com> - 2.18.0-1
cfee94
- Update to 2.18.0
cfee94
cfee94
* Mon Aug 17 2015 Kalev Lember <klember@redhat.com> - 2.17.90-1
cfee94
- Update to 2.17.90
cfee94
- Use make_install macro
cfee94
cfee94
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.16.0-2
cfee94
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
cfee94
cfee94
* Tue Mar 24 2015 Kalev Lember <kalevlember@gmail.com> - 2.16.0-1
cfee94
- Update to 2.16.0
cfee94
- Use license macro for the COPYING files
cfee94
cfee94
* Tue Feb 17 2015 Richard Hughes <rhughes@redhat.com> - 2.15.90-1
cfee94
- Update to 2.15.90
cfee94
cfee94
* Tue Feb 03 2015 Richard Hughes <rhughes@redhat.com> - 2.15.4-1
cfee94
- Update to 2.15.4
cfee94
cfee94
* Fri Dec 19 2014 Richard Hughes <rhughes@redhat.com> - 2.15.3-1
cfee94
- Update to 2.15.3
cfee94
cfee94
* Mon Sep 22 2014 Kalev Lember <kalevlember@gmail.com> - 2.14.0-1
cfee94
- Update to 2.14.0
cfee94
cfee94
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.12.0-3
cfee94
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
cfee94
cfee94
* Tue May 27 2014 Kalev Lember <kalevlember@gmail.com> - 2.12.0-2
cfee94
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
cfee94
cfee94
* Mon Mar 24 2014 Kalev Lember <kalevlember@gmail.com> - 2.12.0-1
cfee94
- Update to 2.12.0
cfee94
cfee94
* Tue Mar 18 2014 Richard Hughes <rhughes@redhat.com> - 2.11.92-1
cfee94
- Update to 2.11.92
cfee94
cfee94
* Wed Feb 19 2014 Richard Hughes <rhughes@redhat.com> - 2.11.90-1
cfee94
- Update to 2.11.90
cfee94
cfee94
* Tue Dec 17 2013 Richard Hughes <rhughes@redhat.com> - 2.11.3-1
cfee94
- Update to 2.11.3
cfee94
cfee94
* Tue Nov 19 2013 Richard Hughes <rhughes@redhat.com> - 2.11.2-1
cfee94
- Update to 2.11.2
cfee94
cfee94
* Wed Sep 25 2013 Kalev Lember <kalevlember@gmail.com> - 2.10.0-1
cfee94
- Update to 2.10.0
cfee94
cfee94
* Tue Sep 17 2013 Kalev Lember <kalevlember@gmail.com> - 2.9.92-1
cfee94
- Update to 2.9.92
cfee94
cfee94
* Thu Aug 22 2013 Kalev Lember <kalevlember@gmail.com> - 2.9.90-1
cfee94
- Update to 2.9.90
cfee94
cfee94
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.9.3-2
cfee94
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
cfee94
cfee94
* Thu Jun 20 2013 Kalev Lember <kalevlember@gmail.com> - 2.9.3-1
cfee94
- Update to 2.9.3
cfee94
cfee94
* Sun Jun 02 2013 Kalev Lember <kalevlember@gmail.com> - 2.9.2-1
cfee94
- Update to 2.9.2
cfee94
cfee94
* Mon Apr 15 2013 Rui Matos <rmatos@redhat.com> - 2.8.0-2
cfee94
- Don't depend on python3 in RHEL
cfee94
cfee94
* Mon Mar 25 2013 Kalev Lember <kalevlember@gmail.com> - 2.8.0-1
cfee94
- Update to 2.8.0
cfee94
cfee94
* Wed Mar 20 2013 Kalev Lember <kalevlember@gmail.com> - 2.7.91-1
cfee94
- Update to 2.7.91
cfee94
cfee94
* Sat Feb 23 2013 Kalev Lember <kalevlember@gmail.com> - 2.7.5-2
cfee94
- Build python3-pyatspi with Python 3 support
cfee94
cfee94
* Wed Feb 06 2013 Kalev Lember <kalevlember@gmail.com> - 2.7.5-1
cfee94
- Update to 2.7.5
cfee94
cfee94
* Fri Nov 09 2012 Kalev Lember <kalevlember@gmail.com> - 2.7.1-1
cfee94
- Update to 2.7.1
cfee94
- Include magFocusTracker.py example in documentation
cfee94
cfee94
* Wed Jul 18 2012 Kalev Lember <kalevlember@gmail.com> - 2.5.4-1
cfee94
- Update to 2.5.4
cfee94
- Removed python_sitelib definition; no longer needed with recent rpmbuild
cfee94
cfee94
* Thu Jun 28 2012 Kalev Lember <kalevlember@gmail.com> - 2.5.3-1
cfee94
- Update to 2.5.3
cfee94
cfee94
* Sat May 05 2012 Kalev Lember <kalevlember@gmail.com> - 2.5.1-1
cfee94
- Update to 2.5.1
cfee94
cfee94
* Wed Mar 28 2012 Richard Hughes <hughsient@gmail.com> - 2.4.0-1
cfee94
- Update to 2.4.0
cfee94
cfee94
* Wed Mar 21 2012 Kalev Lember <kalevlember@gmail.com> - 2.3.92-1
cfee94
- Update to 2.3.92
cfee94
cfee94
* Mon Mar  5 2012 Matthias Clasen <mclasen@redhat.com> - 2.3.91-1
cfee94
- Update to 2.3.91
cfee94
cfee94
* Tue Feb  7 2012 Matthias Clasen <mclasen@redhat.com> - 2.3.5-1
cfee94
- Update to 2.3.5
cfee94
cfee94
* Tue Jan 17 2012 Matthias Clasen <mclasen@redhat.com> - 2.3.4-1
cfee94
- Update to 2.3.4
cfee94
cfee94
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.1-2
cfee94
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
cfee94
cfee94
* Tue Oct 18 2011 Matthias Clasen <mclasen@redhat.com> - 2.2.1-1
cfee94
- Update to 2.2.1
cfee94
cfee94
* Wed Sep 28 2011 Matthias Clasen <mclasen@redhat.com> - 2.2.0-1
cfee94
- Update to 2.2.0
cfee94
cfee94
* Tue Sep 20 2011 Matthias Clasen <mclasen@redhat.com> - 2.1.91-1
cfee94
- Update to 2.1.91
cfee94
cfee94
* Mon Jul 25 2011 Matthias Clasen <mclasen@redhat.com> - 2.1.4-1
cfee94
- Update to 2.1.4
cfee94
cfee94
* Thu Jun 16 2011 Tomas Bzatek <tbzatek@redhat.com> - 2.1.2-1
cfee94
- Update to 2.1.2
cfee94
cfee94
* Wed May 11 2011 Tomas Bzatek <tbzatek@redhat.com> - 2.1.1-1
cfee94
- Update to 2.1.1
cfee94
cfee94
* Tue Apr 26 2011 Matthias Clasen <mclasen@redhat.com> - 2.0.1-1
cfee94
- Update to 2.0.1
cfee94
cfee94
* Mon Apr  4 2011 Matthias Clasen <mclasen@redhat.com> - 2.0.0-1
cfee94
- Update to 2.0.0
cfee94
cfee94
* Tue Mar 22 2011 Matthias Clasen <mclasen@redhat.com> - 1.91.92-1
cfee94
- Update to 1.91.92
cfee94
cfee94
* Mon Mar  7 2011 Matthias Clasen <mclasen@redhat.com> - 1.91.91-1
cfee94
- Update to 1.91.91
cfee94
cfee94
* Tue Feb 22 2011 Matthias Clasen <mclasen@redhat.com> - 1.91.90-1
cfee94
- Update to 1.91.90
cfee94
cfee94
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.91.6-2
cfee94
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
cfee94
cfee94
* Wed Feb  2 2011 Christopher Aillon <caillon@redhat.com> - 1.91.6-1
cfee94
- Update to 1.91.6
cfee94
cfee94
* Tue Jan 11 2011 Matthias Clasen <mclasen@redhat.com> - 1.91.5-1
cfee94
- Update to 1.91.5
cfee94
cfee94
* Thu Dec  2 2010 Matthias Clasen <mclasen@redhat.com> - 1.91.3-1
cfee94
- Update to 1.91.3
cfee94
cfee94
* Tue Oct  5 2010 Matthias Clasen <mclasen@redhat.com> - 1.91.0-1
cfee94
- Update to 1.91.0
cfee94
cfee94
* Wed Sep 29 2010 Matthias Clasen <mclasen@redhat.com> - 0.4.0-1
cfee94
- Update to 0.4.0
cfee94
cfee94
* Mon Sep 20 2010 Matthias Clasen <mclasen@redhat.com> - 0.3.91-2
cfee94
- Require python-xlib and and gnome-python2-gconf (#635484)
cfee94
cfee94
* Tue Aug 31 2010 Matthias Clasen <mclasen@redhat.com> - 0.3.91-1
cfee94
- Update to 0.3.91
cfee94
cfee94
* Wed Aug 18 2010 Matthias Clasen <mclasen@redhat.com> - 0.3.90-1
cfee94
- Update to 0.3.90
cfee94
cfee94
* Mon Aug  2 2010 Matthias Clasen <mclasen@redhat.com> - 0.3.6-1
cfee94
- Update to 0.3.6
cfee94
cfee94
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.3.4-2
cfee94
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
cfee94
cfee94
* Tue Jun 29 2010 Matthias Clasen <mclasen@redhat.com> - 0.3.4-1
cfee94
- Update to 0.3.4
cfee94
cfee94
* Tue Jun  8 2010 Matthias Clasen <mclasen@redhat.com> - 0.3.3-1
cfee94
- Update to 0.3.3
cfee94
cfee94
* Fri May 28 2010 Matthias Clasen <mclasen@redhat.com> - 0.3.2-1
cfee94
- Update to 0.3.2
cfee94
cfee94
* Sat May 15 2010 Matthias Clasen <mclasen@redhat.com> - 0.3.1.1-1
cfee94
- Update to 0.3.1.1
cfee94
cfee94
* Tue Mar 30 2010 Matthias Clasen <mclasen@redhat.com> - 0.1.8-1
cfee94
- Update to 0.1.8
cfee94
cfee94
* Sat Feb 20 2010 Matthias Clasen <mclasen@redhat.com> - 0.1.7-1
cfee94
- Update to 0.1.7
cfee94
cfee94
* Wed Feb 10 2010 Tomas Bzatek <tbzatek@redhat.com> - 0.1.6-1
cfee94
- Update to 0.1.6
cfee94
cfee94
* Wed Feb  3 2010 Matthias Clasen <mclasen@redhat.com> - 0.1.5-2
cfee94
- Relocate
cfee94
cfee94
* Sun Jan 17 2010 Matthias Clasen <mclasen@redhat.com> - 0.1.5-1
cfee94
- Update to 0.1.5
cfee94
cfee94
* Thu Jan  7 2010 Matthias Clasen <mclasen@redhat.com> - 0.1.4-3
cfee94
- Incorporate review feedback
cfee94
cfee94
* Thu Jan  7 2010 Matthias Clasen <mclasen@redhat.com> - 0.1.4-2
cfee94
- Fix License field
cfee94
- Change CORBA/DBus switching method
cfee94
cfee94
* Tue Dec 22 2009 Matthias Clasen <mclasen@redhat.com> - 0.1.4-1
cfee94
- Update to 0.1.4
cfee94
cfee94
* Sat Dec  5 2009 Matthias Clasen <mclasen@redhat.com> - 0.1.3-1
cfee94
- Initial packaging