diff --git a/qt-at-spi-qt-at-spi-v0.3.1.tar.gz b/qt-at-spi-qt-at-spi-v0.3.1.tar.gz new file mode 100644 index 0000000..9ae9092 Binary files /dev/null and b/qt-at-spi-qt-at-spi-v0.3.1.tar.gz differ diff --git a/qt-at-spi.sh b/qt-at-spi.sh new file mode 100644 index 0000000..840bf33 --- /dev/null +++ b/qt-at-spi.sh @@ -0,0 +1,5 @@ +# sample snippet, drop into any of +# /etc/profile.d/, /etc/kde/env/, or ~/.kde/env/ +# to enable Qt Accessiblity support, per qt-at-spi README +QT_ACCESSIBILITY=1 +export QT_ACCESSIBILITY diff --git a/qt-at-spi.spec b/qt-at-spi.spec new file mode 100644 index 0000000..1a7f8a1 --- /dev/null +++ b/qt-at-spi.spec @@ -0,0 +1,60 @@ +Name: qt-at-spi +Version: 0.3.1 +Release: 1 +Summary: Qt plugin that bridges Qt's accessibility API to AT-SPI2 + +License: LGPLv2+ +URL: https://gitorious.org/qt-at-spi +Source0: qt-at-spi-qt-at-spi-v%{version}.tar.gz +Source1: qt-at-spi.sh + +BuildRequires: gcc-c++ pkgconfig(atspi-2) pkgconfig(QtDBus) >= 4.8.0 pkgconfig(QtGui) pkgconfig(QtXml) + +%{?_qt4:Requires: %{_qt4}%{?_isa} >= %{_qt4_version}} + +%description +This is a Qt plugin that bridges Qt's accessibility API to AT-SPI2. +With recent versions of AT-SPI2 this should make Qt applications accessible +with the help of tools such as Gnome's Orca screen-reader. + +%package help +Summary: Documentation for %{name} +BuildArch: noarch +%description help +%{summary}. + + +%prep +%setup -q -n %{name}-%{name} + +install -m644 -p %{SOURCE1} . + + +%build +%{qmake_qt4} +%make_build + +# build docs +pushd doc +qdoc3 qatspi.qdocconf +popd + + +%install +make install INSTALL_ROOT=%{buildroot} + + +%files +%doc README +%doc qt-at-spi.sh +%license LICENSE +%dir %{_qt4_plugindir}/accessiblebridge/ +%{_qt4_plugindir}/accessiblebridge/libqspiaccessiblebridge.so + +%files help +%doc doc/html/* + + +%changelog +* Thu Feb 18 2021 weidong - 0.3.1-1 +- Initial package