Compare commits
10 Commits
c0770dec65
...
3e23ad918c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3e23ad918c | ||
|
|
42efad402f | ||
|
|
787ece826d | ||
|
|
da73a0f031 | ||
|
|
2c5f4f2168 | ||
|
|
04d5d1814a | ||
|
|
b0ecee78fa | ||
|
|
528b6c3507 | ||
|
|
81f23c884f | ||
|
|
1e020e545a |
Binary file not shown.
@ -1,9 +1,9 @@
|
|||||||
diff --git a/Bindings/Java/NativeLibrary.java b/Bindings/Java/NativeLibrary.java
|
diff --git a/Bindings/Java/NativeComponent.java b/Bindings/Java/NativeComponent.java
|
||||||
index 8a3b003..c404bf2 100644
|
index 2e6304a..cf6c9b0 100644
|
||||||
--- a/Bindings/Java/NativeLibrary.java
|
--- a/Bindings/Java/NativeComponent.java
|
||||||
+++ b/Bindings/Java/NativeLibrary.java
|
+++ b/Bindings/Java/NativeComponent.java
|
||||||
@@ -21,7 +21,15 @@ public class NativeLibrary {
|
@@ -23,7 +23,15 @@ public class NativeComponent extends Component {
|
||||||
}
|
private native static void initializeNativeData ();
|
||||||
|
|
||||||
static {
|
static {
|
||||||
- System.loadLibrary("brlapi_java");
|
- System.loadLibrary("brlapi_java");
|
||||||
@ -16,6 +16,6 @@ index 8a3b003..c404bf2 100644
|
|||||||
+ throw new UnsatisfiedLinkError("brlapi_java library load failed");
|
+ throw new UnsatisfiedLinkError("brlapi_java library load failed");
|
||||||
+ }
|
+ }
|
||||||
+ }
|
+ }
|
||||||
new NativeLibrary().initializeNativeData();
|
initializeNativeData();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
20
brltty-6.6-cython3.patch
Normal file
20
brltty-6.6-cython3.patch
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
--- python2/Bindings/Python/brlapi.pyx 2023-07-17 07:55:47.000000000 -0700
|
||||||
|
+++ python2/Bindings/Python/brlapi.pyx.new 2023-08-15 09:06:23.675136077 -0700
|
||||||
|
@@ -453,6 +453,7 @@
|
||||||
|
c_brlapi.brlapi_protocolExceptionInit(self.h)
|
||||||
|
if self.fd == -1:
|
||||||
|
c_brlapi.free(self.h)
|
||||||
|
+ self.h = NULL
|
||||||
|
raise ConnectionError(self.settings.host, self.settings.auth)
|
||||||
|
|
||||||
|
def closeConnection(self):
|
||||||
|
@@ -465,7 +466,8 @@
|
||||||
|
"""Release resources used by the connection"""
|
||||||
|
if self.fd != -1:
|
||||||
|
c_brlapi.brlapi__closeConnection(self.h)
|
||||||
|
- c_brlapi.free(self.h)
|
||||||
|
+ if self.h != NULL:
|
||||||
|
+ c_brlapi.free(self.h)
|
||||||
|
|
||||||
|
property host:
|
||||||
|
"""To get authorized to connect, libbrlapi has to tell the BrlAPI server a secret key, for security reasons. This is the path to the file which holds it; it will hence have to be readable by the application."""
|
||||||
BIN
brltty-6.6.tar.xz
Normal file
BIN
brltty-6.6.tar.xz
Normal file
Binary file not shown.
62
brltty.spec
62
brltty.spec
@ -1,4 +1,4 @@
|
|||||||
%define api_ver 0.8.0
|
%define api_ver 0.8.5
|
||||||
%define tcl_version tcl8.6
|
%define tcl_version tcl8.6
|
||||||
%{!?tcl_sitearch: %global tcl_sitearch %{_prefix}/%{_lib}/%{tcl_version}}
|
%{!?tcl_sitearch: %global tcl_sitearch %{_prefix}/%{_lib}/%{tcl_version}}
|
||||||
|
|
||||||
@ -6,7 +6,7 @@
|
|||||||
%bcond_with speech
|
%bcond_with speech
|
||||||
|
|
||||||
Name: brltty
|
Name: brltty
|
||||||
Version: 6.1
|
Version: 6.6
|
||||||
Release: 1
|
Release: 1
|
||||||
Summary: Braille display driver for Linux/Unix
|
Summary: Braille display driver for Linux/Unix
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
@ -15,15 +15,17 @@ Source0: http://brltty.app/archive/%{name}-%{version}.tar.xz
|
|||||||
|
|
||||||
Source1: brltty.service
|
Source1: brltty.service
|
||||||
|
|
||||||
#patch0~2 from fedora
|
Patch0: brltty-6.3-loadLibrary.patch
|
||||||
Patch0: brltty-6.1-loadLibrary.patch
|
|
||||||
|
|
||||||
%if %{with speech}
|
%if %{with speech}
|
||||||
Patch1: brltty-5.0-libspeechd.patch
|
Patch1: brltty-6.3-libspeechd.patch
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
BuildRequires: brltty tcl-brltty byacc glibc-kernheaders bluez-libs-devel systemd gettext gdb
|
Patch2: brltty-6.6-cython3.patch
|
||||||
|
|
||||||
|
BuildRequires: byacc glibc-kernheaders bluez-libs-devel systemd gettext
|
||||||
BuildRequires: python3-devel autoconf at-spi2-core-devel alsa-lib-devel
|
BuildRequires: python3-devel autoconf at-spi2-core-devel alsa-lib-devel
|
||||||
|
BuildRequires: automake polkit-devel doxygen python3-docutils
|
||||||
|
|
||||||
%if %{with espeak}
|
%if %{with espeak}
|
||||||
BuildRequires: espeak-ng-devel
|
BuildRequires: espeak-ng-devel
|
||||||
@ -155,19 +157,19 @@ done
|
|||||||
%install
|
%install
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_libdir}/ocaml/stublibs
|
mkdir -p $RPM_BUILD_ROOT%{_libdir}/ocaml/stublibs
|
||||||
%make_install JAVA_JAR_DIR=%{_jnidir} JAVA_JNI_DIR=%{_libdir}/brltty JAVA_JNI=yes
|
%make_install JAVA_JAR_DIR=%{_jnidir} JAVA_JNI_DIR=%{_libdir}/brltty JAVA_JNI=yes
|
||||||
|
|
||||||
|
pushd Authorization/Polkit
|
||||||
|
make install
|
||||||
|
popd
|
||||||
|
|
||||||
install -m 0644 Documents/brltty.conf ${RPM_BUILD_ROOT}%{_sysconfdir}
|
install -m 0644 Documents/brltty.conf ${RPM_BUILD_ROOT}%{_sysconfdir}
|
||||||
install -D -p -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_unitdir}/brltty.service
|
install -D -p -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_unitdir}/brltty.service
|
||||||
chmod 755 ${RPM_BUILD_ROOT}%{_bindir}/brltty-config
|
chmod 755 ${RPM_BUILD_ROOT}%{_bindir}/brltty-config.sh
|
||||||
|
|
||||||
rm -rf $RPM_BUILD_ROOT/%{_libdir}/libbrlapi.a
|
rm -rf $RPM_BUILD_ROOT/%{_libdir}/libbrlapi.a
|
||||||
|
|
||||||
%find_lang %{name}
|
%find_lang %{name}
|
||||||
cp -p %{name}.lang ../
|
cp -p %{name}.lang ../
|
||||||
cp -a %{_libdir}/libbrlapi.so.* %{buildroot}%{_libdir}
|
|
||||||
cp -a %{_libdir}/tcl8.6/brlapi-* %{buildroot}%{_libdir}/tcl8.6
|
|
||||||
|
|
||||||
/usr/bin/2to3 -wn ${RPM_BUILD_ROOT}/etc/brltty/Contraction/latex-access.ctb
|
|
||||||
sed -i 's|/usr/bin/python|/usr/bin/python3|g' ${RPM_BUILD_ROOT}/etc/brltty/Contraction/latex-access.ctb
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
|
||||||
@ -218,6 +220,7 @@ fi
|
|||||||
%{_sysconfdir}/X11/Xsession.d/90xbrlapi
|
%{_sysconfdir}/X11/Xsession.d/90xbrlapi
|
||||||
|
|
||||||
%{_datadir}/polkit-1/actions/org.a11y.brlapi.policy
|
%{_datadir}/polkit-1/actions/org.a11y.brlapi.policy
|
||||||
|
%{_datadir}/polkit-1/rules.d/org.a11y.brlapi.rules
|
||||||
%exclude %{_datadir}/gdm/greeter/autostart/xbrlapi.desktop
|
%exclude %{_datadir}/gdm/greeter/autostart/xbrlapi.desktop
|
||||||
|
|
||||||
%{_unitdir}/brltty.service
|
%{_unitdir}/brltty.service
|
||||||
@ -225,15 +228,15 @@ fi
|
|||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%{_libdir}/libbrlapi.so
|
%{_libdir}/libbrlapi.so
|
||||||
|
%{_libdir}/pkgconfig/brltty.pc
|
||||||
%{_includedir}/brltty
|
%{_includedir}/brltty
|
||||||
%{_includedir}/brlapi*.h
|
%{_includedir}/brlapi*.h
|
||||||
|
|
||||||
|
|
||||||
%files docs
|
%files docs
|
||||||
%defattr(644,root,root)
|
%defattr(644,root,root)
|
||||||
%doc doc/*
|
%doc Drivers/Speech/SpeechDispatcher/README
|
||||||
#%doc Drivers/Speech/SpeechDispatcher/README
|
%doc Drivers/Braille/XWindow/README
|
||||||
#%doc Drivers/Braille/XWindow/README
|
|
||||||
%doc Documents/*
|
%doc Documents/*
|
||||||
%doc %{_mandir}/man[15]/brltty.*
|
%doc %{_mandir}/man[15]/brltty.*
|
||||||
%doc %{_mandir}/man1/xbrlapi.*
|
%doc %{_mandir}/man1/xbrlapi.*
|
||||||
@ -244,7 +247,6 @@ fi
|
|||||||
|
|
||||||
%files -n tcl-%{name}
|
%files -n tcl-%{name}
|
||||||
%{tcl_sitearch}/brlapi-%{api_ver}
|
%{tcl_sitearch}/brlapi-%{api_ver}
|
||||||
%{tcl_sitearch}/brlapi-0.6.7
|
|
||||||
|
|
||||||
%files -n python3-%{name}
|
%files -n python3-%{name}
|
||||||
%{python3_sitearch}/brlapi.cpython-*.so
|
%{python3_sitearch}/brlapi.cpython-*.so
|
||||||
@ -269,6 +271,34 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Sep 05 2023 yaoxin <yao_xin001@hoperun.com> - 6.6-1
|
||||||
|
- Update to 6.6
|
||||||
|
|
||||||
|
* Fri Apr 15 2022 gaihuiying <eaglegai@163.com> - 6.1-5
|
||||||
|
- Type:bugfix
|
||||||
|
- Id:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:delete useless files
|
||||||
|
fix to support python3.10
|
||||||
|
|
||||||
|
* Thu Jul 22 2021 lijingyuan <lijingyuan3@huawei.com> - 6.1-4
|
||||||
|
- Type:requirement
|
||||||
|
- Id:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:Cancel gdb in buildrequires
|
||||||
|
|
||||||
|
* Thu May 27 2021 lijingyuan <lijingyuan3@huawei.com> - 6.1-3
|
||||||
|
- Type:bugfix
|
||||||
|
- Id:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:Add the compilation dependency of automake.
|
||||||
|
|
||||||
|
* Tue Dec 15 2020 xihaochen <xihaochen@huawei.com> - 6.1-2
|
||||||
|
- Type:requirement
|
||||||
|
- Id:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:remove sensitive words
|
||||||
|
|
||||||
* Thu Jul 23 2020 gaihuiying <gaihuiying1@huawei.com> - 6.1-1
|
* Thu Jul 23 2020 gaihuiying <gaihuiying1@huawei.com> - 6.1-1
|
||||||
- Type:requirement
|
- Type:requirement
|
||||||
- Id:NA
|
- Id:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user