87e64f
# first two digits of version
87e64f
%define release_version %(echo %{version} | awk -F. '{print $1"."$2}')
87e64f
87e64f
Name:           accerciser
228230
Version:        3.13.92
228230
Release:        1%{?dist}
87e64f
Summary:        Interactive Python accessibility explorer for the GNOME desktop
87e64f
87e64f
License:        BSD
87e64f
URL:            https://live.gnome.org/Accerciser
87e64f
Source0:        http://download.gnome.org/sources/accerciser/%{release_version}/accerciser-%{version}.tar.xz
87e64f
87e64f
BuildArch:      noarch
87e64f
87e64f
BuildRequires:  at-spi2-core-devel
87e64f
BuildRequires:  desktop-file-utils
87e64f
BuildRequires:  gtk3-devel
87e64f
BuildRequires:  intltool
Richard Hughes f03cb5
BuildRequires:  itstool
87e64f
BuildRequires:  pygobject3-devel
Richard Hughes 9e29e3
BuildRequires:  python3
Richard Hughes 5cfdc1
BuildRequires:  python3-devel
87e64f
87e64f
Requires:       libwnck3
314d8a
Requires:       python3-cairo
314d8a
Requires:       python3-gobject
314d8a
Requires:       python3-ipython-console
314d8a
Requires:       python3-pyatspi
87e64f
87e64f
%description
87e64f
Accerciser is an interactive Python accessibility explorer for the GNOME
87e64f
desktop. It uses AT-SPI to inspect and control widgets, allowing you to check
87e64f
if an application is providing correct information to assistive technologies
87e64f
and automated test frameworks. Accerciser has a simple plugin framework which
87e64f
you can use to create custom views of accessibility information.
87e64f
87e64f
87e64f
%prep
87e64f
%setup -q
87e64f
87e64f
87e64f
%build
3664a0
%configure
87e64f
make %{?_smp_mflags}
87e64f
87e64f
87e64f
%install
87e64f
make install DESTDIR=$RPM_BUILD_ROOT
87e64f
87e64f
%find_lang accerciser --with-gnome
87e64f
87e64f
87e64f
%check
87e64f
desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/accerciser.desktop
87e64f
87e64f
87e64f
%post
36c78c
for d in hicolor HighContrast ; do
36c78c
    touch --no-create %{_datadir}/icons/$d &>/dev/null || :
36c78c
done
87e64f
87e64f
%postun
87e64f
if [ $1 -eq 0 ] ; then
36c78c
    for d in hicolor HighContrast ; do
36c78c
        touch --no-create %{_datadir}/icons/$d &>/dev/null || :
36c78c
        gtk-update-icon-cache %{_datadir}/icons/$d &>/dev/null || :
36c78c
    done
87e64f
    glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || :
87e64f
fi
87e64f
87e64f
%posttrans
36c78c
for d in hicolor HighContrast ; do
36c78c
    gtk-update-icon-cache %{_datadir}/icons/$d &>/dev/null || :
36c78c
done
87e64f
glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || :
87e64f
87e64f
87e64f
%files -f accerciser.lang
87e64f
%doc AUTHORS COPYING NEWS README
87e64f
%{_bindir}/accerciser
Richard Hughes 5cfdc1
%{python3_sitelib}/accerciser/
87e64f
%{_datadir}/accerciser/
87e64f
%{_datadir}/applications/accerciser.desktop
87e64f
%{_datadir}/glib-2.0/schemas/org.a11y.Accerciser.gschema.xml
87e64f
%{_datadir}/icons/hicolor/*/apps/accerciser.png
87e64f
%{_datadir}/icons/hicolor/scalable/apps/accerciser.svg
36c78c
%{_datadir}/icons/HighContrast/scalable/apps/accerciser.svg
87e64f
%{_mandir}/man1/accerciser.1*
87e64f
87e64f
87e64f
%changelog
228230
* Tue Sep 16 2014 Kalev Lember <kalevlember@gmail.com> - 3.13.92-1
228230
- Update to 3.13.92
228230
4f436f
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.12.0-3
4f436f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
4f436f
ffd089
* Wed May 28 2014 Kalev Lember <kalevlember@gmail.com> - 3.12.0-2
ffd089
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
ffd089
cec3db
* Mon Mar 24 2014 Kalev Lember <kalevlember@gmail.com> - 3.12.0-1
cec3db
- Update to 3.12.0
cec3db
Richard Hughes 43ea3a
* Wed Mar 19 2014 Richard Hughes <rhughes@redhat.com> - 3.11.92.1-1
Richard Hughes 43ea3a
- Update to 3.11.92.1
Richard Hughes 43ea3a
Richard Hughes 955efa
* Tue Mar 18 2014 Richard Hughes <rhughes@redhat.com> - 3.11.92-1
Richard Hughes 955efa
- Update to 3.11.92
Richard Hughes 955efa
Richard Hughes 58271c
* Tue Mar 04 2014 Richard Hughes <rhughes@redhat.com> - 3.11.91-1
Richard Hughes 58271c
- Update to 3.11.91
Richard Hughes 58271c
Richard Hughes fd50c4
* Tue Feb 18 2014 Richard Hughes <rhughes@redhat.com> - 3.11.90-1
Richard Hughes fd50c4
- Update to 3.11.90
Richard Hughes fd50c4
b3a0cc
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.8.2-2
b3a0cc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
b3a0cc
Richard Hughes 1c9a1b
* Tue May 14 2013 Richard Hughes <rhughes@redhat.com> - 3.8.2-1
Richard Hughes 1c9a1b
- Update to 3.8.2
Richard Hughes 1c9a1b
314d8a
* Wed Apr 10 2013 Kalev Lember <kalevlember@gmail.com> - 3.8.0-2
314d8a
- Update the dependencies for python3
36c78c
- Add HighContrast icons and scriptlets
314d8a
Richard Hughes 73052d
* Tue Mar 26 2013 Richard Hughes <rhughes@redhat.com> - 3.8.0-1
Richard Hughes 73052d
- Update to 3.8.0
Richard Hughes 73052d
Richard Hughes 3b6721
* Wed Mar 20 2013 Richard Hughes <rhughes@redhat.com> - 3.7.92-1
Richard Hughes 3b6721
- Update to 3.7.92
Richard Hughes 3b6721
Richard Hughes 6d8666
* Mon Mar 18 2013 Richard Hughes <rhughes@redhat.com> - 3.7.91-1
Richard Hughes 6d8666
- Update to 3.7.91
Richard Hughes 6d8666
091a26
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.7.4-2
091a26
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
091a26
Richard Hughes 574e0a
* Wed Jan 16 2013 Richard Hughes <hughsient@gmail.com> - 3.7.4-1
Richard Hughes 574e0a
- Update to 3.7.4
Richard Hughes 574e0a
Richard Hughes 2ceebf
* Wed Jan 09 2013 Richard Hughes <hughsient@gmail.com> - 3.7.3-1
Richard Hughes 2ceebf
- Update to 3.7.3
Richard Hughes 2ceebf
3664a0
* Tue Nov 13 2012 Kalev Lember <kalevlember@gmail.com> - 3.6.2-1
3664a0
- Update to 3.6.2
3664a0
Richard Hughes 06c968
* Tue Sep 25 2012 Richard Hughes <hughsient@gmail.com> - 3.6.0-1
Richard Hughes 06c968
- Update to 3.6.0
Richard Hughes 06c968
Richard Hughes 34956f
* Wed Sep 19 2012 Richard Hughes <hughsient@gmail.com> - 3.5.92-1
Richard Hughes 34956f
- Update to 3.5.92
Richard Hughes 34956f
Richard Hughes c61a91
* Tue Sep 04 2012 Richard Hughes <hughsient@gmail.com> - 3.5.91-1
Richard Hughes c61a91
- Update to 3.5.91
Richard Hughes c61a91
54f5a0
* Thu Aug 30 2012 Kalev Lember <kalevlember@gmail.com> - 3.5.90-2
54f5a0
- Update the runtime deps for ipython package rename
54f5a0
Richard Hughes 82df34
* Tue Aug 21 2012 Richard Hughes <hughsient@gmail.com> - 3.5.90-1
Richard Hughes 82df34
- Update to 3.5.90
Richard Hughes 82df34
Richard Hughes a10cdd
* Tue Aug 07 2012 Richard Hughes <hughsient@gmail.com> - 3.5.5-1
Richard Hughes a10cdd
- Update to 3.5.5
Richard Hughes a10cdd
7d5436
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.5.3-2
7d5436
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
7d5436
dff4b4
* Thu Jun 28 2012 Kalev Lember <kalevlember@gmail.com> - 3.5.3-1
dff4b4
- Update to 3.5.3
dff4b4
87e64f
* Tue Apr 17 2012 Kalev Lember <kalevlember@gmail.com> - 3.4.1-1
87e64f
- Initial RPM release