diff --git a/.gitignore b/.gitignore index e69de29..6caa124 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/accerciser-3.4.1.tar.xz diff --git a/accerciser.spec b/accerciser.spec new file mode 100644 index 0000000..626cda4 --- /dev/null +++ b/accerciser.spec @@ -0,0 +1,84 @@ +# first two digits of version +%define release_version %(echo %{version} | awk -F. '{print $1"."$2}') + +Name: accerciser +Version: 3.4.1 +Release: 1%{?dist} +Summary: Interactive Python accessibility explorer for the GNOME desktop + +License: BSD +URL: https://live.gnome.org/Accerciser +Source0: http://download.gnome.org/sources/accerciser/%{release_version}/accerciser-%{version}.tar.xz + +BuildArch: noarch + +BuildRequires: at-spi2-core-devel +BuildRequires: desktop-file-utils +BuildRequires: gnome-doc-utils +BuildRequires: gtk3-devel +BuildRequires: intltool +BuildRequires: pygobject3-devel + +Requires: ipython +Requires: libwnck3 +Requires: pyatspi +Requires: pycairo +Requires: pygobject3 + +%description +Accerciser is an interactive Python accessibility explorer for the GNOME +desktop. It uses AT-SPI to inspect and control widgets, allowing you to check +if an application is providing correct information to assistive technologies +and automated test frameworks. Accerciser has a simple plugin framework which +you can use to create custom views of accessibility information. + + +%prep +%setup -q + + +%build +%configure --disable-scrollkeeper +make %{?_smp_mflags} + + +%install +make install DESTDIR=$RPM_BUILD_ROOT + +%find_lang accerciser --with-gnome + + +%check +desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/accerciser.desktop + + +%post +touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : + +%postun +if [ $1 -eq 0 ] ; then + touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : + gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : + glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || : +fi + +%posttrans +gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : +glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || : + + +%files -f accerciser.lang +%doc AUTHORS COPYING NEWS README +%{_bindir}/accerciser +%{python_sitelib}/accerciser/ +%{_datadir}/accerciser/ +%{_datadir}/applications/accerciser.desktop +%{_datadir}/glib-2.0/schemas/org.a11y.Accerciser.gschema.xml +%{_datadir}/icons/hicolor/*/apps/accerciser.png +%{_datadir}/icons/hicolor/scalable/apps/accerciser.svg +%{_mandir}/man1/accerciser.1* + + +%changelog +* Tue Apr 17 2012 Kalev Lember - 3.4.1-1 +- Initial RPM release diff --git a/sources b/sources index e69de29..104c736 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +fba7edb13dd80ef63e6044b411a6a84f accerciser-3.4.1.tar.xz