Compare commits

..

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
3e23ad918c
!22 Update to 6.6
From: @starlet-dx 
Reviewed-by: @lyn1001 
Signed-off-by: @lyn1001
2023-09-06 07:05:43 +00:00
starlet-dx
42efad402f Update to 6.6 2023-09-06 09:46:04 +08:00
openeuler-ci-bot
787ece826d
!20 delete useless files and support python3.10
From: @eaglegai 
Reviewed-by: @yanan-rock 
Signed-off-by: @yanan-rock
2022-04-18 03:33:09 +00:00
eaglegai
da73a0f031 delete useless files and support python3.10 2022-04-15 16:45:45 +08:00
openeuler-ci-bot
2c5f4f2168 !16 cancel gdb in buildrequires
From: @lijingyuan007
Reviewed-by: @dwl301
Signed-off-by: @dwl301
2021-07-22 06:26:27 +00:00
lijingyuan007
04d5d1814a cancel gdb in buildrequires 2021-07-22 11:03:46 +08:00
openeuler-ci-bot
b0ecee78fa !15 Add the compilation dependency of automake.
From: @lijingyuan007
Reviewed-by: @orange-snn
Signed-off-by: @orange-snn
2021-06-02 10:23:44 +08:00
lijingyuan007
528b6c3507 Add the compilation dependency of automake. 2021-05-27 14:16:14 +08:00
openeuler-ci-bot
81f23c884f !14 Remove the fedora keyword
From: @haochenstar
Reviewed-by: @orange-snn
Signed-off-by: @orange-snn
2020-12-16 14:23:56 +08:00
haochenstar
1e020e545a remove fedora keyword 2020-12-15 20:58:03 +08:00
6 changed files with 74 additions and 24 deletions

Binary file not shown.

View File

@ -1,9 +1,9 @@
diff --git a/Bindings/Java/NativeLibrary.java b/Bindings/Java/NativeLibrary.java
index 8a3b003..c404bf2 100644
--- a/Bindings/Java/NativeLibrary.java
+++ b/Bindings/Java/NativeLibrary.java
@@ -21,7 +21,15 @@ public class NativeLibrary {
}
diff --git a/Bindings/Java/NativeComponent.java b/Bindings/Java/NativeComponent.java
index 2e6304a..cf6c9b0 100644
--- a/Bindings/Java/NativeComponent.java
+++ b/Bindings/Java/NativeComponent.java
@@ -23,7 +23,15 @@ public class NativeComponent extends Component {
private native static void initializeNativeData ();
static {
- System.loadLibrary("brlapi_java");
@ -16,6 +16,6 @@ index 8a3b003..c404bf2 100644
+ throw new UnsatisfiedLinkError("brlapi_java library load failed");
+ }
+ }
new NativeLibrary().initializeNativeData();
initializeNativeData();
}
}

20
brltty-6.6-cython3.patch Normal file
View 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

Binary file not shown.

View File

@ -1,4 +1,4 @@
%define api_ver 0.8.0
%define api_ver 0.8.5
%define tcl_version tcl8.6
%{!?tcl_sitearch: %global tcl_sitearch %{_prefix}/%{_lib}/%{tcl_version}}
@ -6,7 +6,7 @@
%bcond_with speech
Name: brltty
Version: 6.1
Version: 6.6
Release: 1
Summary: Braille display driver for Linux/Unix
License: LGPLv2+
@ -15,15 +15,17 @@ Source0: http://brltty.app/archive/%{name}-%{version}.tar.xz
Source1: brltty.service
#patch0~2 from fedora
Patch0: brltty-6.1-loadLibrary.patch
Patch0: brltty-6.3-loadLibrary.patch
%if %{with speech}
Patch1: brltty-5.0-libspeechd.patch
Patch1: brltty-6.3-libspeechd.patch
%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: automake polkit-devel doxygen python3-docutils
%if %{with espeak}
BuildRequires: espeak-ng-devel
@ -155,19 +157,19 @@ done
%install
mkdir -p $RPM_BUILD_ROOT%{_libdir}/ocaml/stublibs
%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 -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
%find_lang %{name}
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
@ -218,6 +220,7 @@ fi
%{_sysconfdir}/X11/Xsession.d/90xbrlapi
%{_datadir}/polkit-1/actions/org.a11y.brlapi.policy
%{_datadir}/polkit-1/rules.d/org.a11y.brlapi.rules
%exclude %{_datadir}/gdm/greeter/autostart/xbrlapi.desktop
%{_unitdir}/brltty.service
@ -225,15 +228,15 @@ fi
%files devel
%{_libdir}/libbrlapi.so
%{_libdir}/pkgconfig/brltty.pc
%{_includedir}/brltty
%{_includedir}/brlapi*.h
%files docs
%defattr(644,root,root)
%doc doc/*
#%doc Drivers/Speech/SpeechDispatcher/README
#%doc Drivers/Braille/XWindow/README
%doc Drivers/Speech/SpeechDispatcher/README
%doc Drivers/Braille/XWindow/README
%doc Documents/*
%doc %{_mandir}/man[15]/brltty.*
%doc %{_mandir}/man1/xbrlapi.*
@ -244,7 +247,6 @@ fi
%files -n tcl-%{name}
%{tcl_sitearch}/brlapi-%{api_ver}
%{tcl_sitearch}/brlapi-0.6.7
%files -n python3-%{name}
%{python3_sitearch}/brlapi.cpython-*.so
@ -269,6 +271,34 @@ fi
%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
- Type:requirement
- Id:NA