Группа :: Доступность
Пакет: accerciser
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%def_enable snapshot
%define ver_major 3.40
%define xdg_name org.gnome.accerciser
Name: accerciser
Version: %ver_major.0
Release: alt2
Summary: Interactive Python accessibility explorer
Group: Accessibility
License: BSD-3-Clause
Url: https://wiki.gnome.org/Apps/Accerciser
%if_disabled snapshot
Source: ftp://ftp.gnome.org/pub/gnome/sources/%name/%ver_major/%name-%version.tar.xz
%else
Source: %name-%version.tar
%endif
BuildArch: noarch
Requires: python3-module-%name = %version-%release
Requires: at-spi2-core
%add_python3_path %_datadir/%name
%add_python3_req_skip gi.repository.GLib
%add_python3_req_skip gi.repository.Gio
BuildRequires(pre): rpm-build-python3 rpm-build-gir
BuildRequires: rpm-build-gnome /usr/bin/appstream-util
BuildRequires: yelp-tools libgtk+3-devel python3-module-pygobject3-devel
BuildRequires: desktop-file-utils libat-spi2-core-devel
BuildRequires: python3-module-ipython
%{?_enable_snapshot:BuildRequires: libappstream-glib-devel}
%description
An interactive Python accessibility explorer for the GNOME desktop.
It uses AT-SPI2 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.
Accerciser uses libwnck designed to work in X11 only.
%package -n python3-module-%name
Summary: Python module for accerciser
Group: Development/Python3
BuildArch: noarch
Requires: typelib(Gtk) = 3.0 typelib(Wnck) = 3.0
%description -n python3-module-%name
An interactive Python accessibility explorer.
This package contains Python module for accerciser.
%prep
%setup
%{?_enable_snapshot:ln -s README.md README}
%build
NOCONFIGURE=1 ./autogen.sh
%configure PYTHON=%__python3
%make_build
%install
%makeinstall_std
desktop-file-install --dir %buildroot%_desktopdir \
--add-category=X-Development-Accessibility \
%buildroot%_desktopdir/%name.desktop
%find_lang --with-gnome %name
%files -f %name.lang
%_bindir/*
%_datadir/%name
%_desktopdir/%name.desktop
%_man1dir/*
%_datadir/glib-2.0/schemas/*
%_datadir/icons/hicolor/*/*/%name.png
%_datadir/icons/hicolor/scalable/apps/accerciser.svg
%_datadir/icons/hicolor/symbolic/apps/accerciser-symbolic.svg
%_datadir/metainfo/accerciser.appdata.xml
%doc AUTHORS README* COPYING NEWS
%files -n python3-module-%name
%python3_sitelibdir/%name/
%changelog
…
Полный changelog можно просмотреть здесь
%define ver_major 3.40
%define xdg_name org.gnome.accerciser
Name: accerciser
Version: %ver_major.0
Release: alt2
Summary: Interactive Python accessibility explorer
Group: Accessibility
License: BSD-3-Clause
Url: https://wiki.gnome.org/Apps/Accerciser
%if_disabled snapshot
Source: ftp://ftp.gnome.org/pub/gnome/sources/%name/%ver_major/%name-%version.tar.xz
%else
Source: %name-%version.tar
%endif
BuildArch: noarch
Requires: python3-module-%name = %version-%release
Requires: at-spi2-core
%add_python3_path %_datadir/%name
%add_python3_req_skip gi.repository.GLib
%add_python3_req_skip gi.repository.Gio
BuildRequires(pre): rpm-build-python3 rpm-build-gir
BuildRequires: rpm-build-gnome /usr/bin/appstream-util
BuildRequires: yelp-tools libgtk+3-devel python3-module-pygobject3-devel
BuildRequires: desktop-file-utils libat-spi2-core-devel
BuildRequires: python3-module-ipython
%{?_enable_snapshot:BuildRequires: libappstream-glib-devel}
%description
An interactive Python accessibility explorer for the GNOME desktop.
It uses AT-SPI2 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.
Accerciser uses libwnck designed to work in X11 only.
%package -n python3-module-%name
Summary: Python module for accerciser
Group: Development/Python3
BuildArch: noarch
Requires: typelib(Gtk) = 3.0 typelib(Wnck) = 3.0
%description -n python3-module-%name
An interactive Python accessibility explorer.
This package contains Python module for accerciser.
%prep
%setup
%{?_enable_snapshot:ln -s README.md README}
%build
NOCONFIGURE=1 ./autogen.sh
%configure PYTHON=%__python3
%make_build
%install
%makeinstall_std
desktop-file-install --dir %buildroot%_desktopdir \
--add-category=X-Development-Accessibility \
%buildroot%_desktopdir/%name.desktop
%find_lang --with-gnome %name
%files -f %name.lang
%_bindir/*
%_datadir/%name
%_desktopdir/%name.desktop
%_man1dir/*
%_datadir/glib-2.0/schemas/*
%_datadir/icons/hicolor/*/*/%name.png
%_datadir/icons/hicolor/scalable/apps/accerciser.svg
%_datadir/icons/hicolor/symbolic/apps/accerciser-symbolic.svg
%_datadir/metainfo/accerciser.appdata.xml
%doc AUTHORS README* COPYING NEWS
%files -n python3-module-%name
%python3_sitelibdir/%name/
%changelog
…
Полный changelog можно просмотреть здесь