87e64f9
# first two digits of version
87e64f9
%define release_version %(echo %{version} | awk -F. '{print $1"."$2}')
87e64f9
87e64f9
Name:           accerciser
87e64f9
Version:        3.4.1
87e64f9
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:  gnome-doc-utils
87e64f9
BuildRequires:  gtk3-devel
87e64f9
BuildRequires:  intltool
87e64f9
BuildRequires:  pygobject3-devel
87e64f9
87e64f9
Requires:       ipython
87e64f9
Requires:       libwnck3
87e64f9
Requires:       pyatspi
87e64f9
Requires:       pycairo
87e64f9
Requires:       pygobject3
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
87e64f9
%configure --disable-scrollkeeper
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
87e64f9
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
87e64f9
87e64f9
%postun
87e64f9
if [ $1 -eq 0 ] ; then
87e64f9
    touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
87e64f9
    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
87e64f9
    glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || :
87e64f9
fi
87e64f9
87e64f9
%posttrans
87e64f9
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
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
87e64f9
%{python_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
87e64f9
%{_mandir}/man1/accerciser.1*
87e64f9
87e64f9
87e64f9
%changelog
87e64f9
* Tue Apr 17 2012 Kalev Lember <kalevlember@gmail.com> - 3.4.1-1
87e64f9
- Initial RPM release