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