Fixed brlapi multilib
Resolves: rhbz#1915335
This commit is contained in:
parent
8ea7cb3b36
commit
5e7e3f9068
9
brlapi-config.h
Normal file
9
brlapi-config.h
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
#include <bits/wordsize.h>
|
||||||
|
|
||||||
|
#if __WORDSIZE == 32
|
||||||
|
#include "config-32.h"
|
||||||
|
#elif __WORDSIZE == 64
|
||||||
|
#include "config-64.h"
|
||||||
|
#else
|
||||||
|
#error "Unknown word size"
|
||||||
|
#endif
|
9
brlapi-forbuild.h
Normal file
9
brlapi-forbuild.h
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
#include <bits/wordsize.h>
|
||||||
|
|
||||||
|
#if __WORDSIZE == 32
|
||||||
|
#include "forbuild-32.h"
|
||||||
|
#elif __WORDSIZE == 64
|
||||||
|
#include "forbuild-64.h"
|
||||||
|
#else
|
||||||
|
#error "Unknown word size"
|
||||||
|
#endif
|
18
brltty.spec
18
brltty.spec
@ -33,11 +33,13 @@
|
|||||||
|
|
||||||
Name: brltty
|
Name: brltty
|
||||||
Version: %{pkg_version}
|
Version: %{pkg_version}
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
URL: http://brltty.app/
|
URL: http://brltty.app/
|
||||||
Source0: http://brltty.app/archive/%{name}-%{version}.tar.xz
|
Source0: http://brltty.app/archive/%{name}-%{version}.tar.xz
|
||||||
Source1: brltty.service
|
Source1: brltty.service
|
||||||
|
Source2: brlapi-config.h
|
||||||
|
Source3: brlapi-forbuild.h
|
||||||
Patch1: brltty-6.3-loadLibrary.patch
|
Patch1: brltty-6.3-loadLibrary.patch
|
||||||
# libspeechd.h moved in latest speech-dispatch (NOT sent upstream)
|
# libspeechd.h moved in latest speech-dispatch (NOT sent upstream)
|
||||||
Patch2: brltty-6.3-libspeechd.patch
|
Patch2: brltty-6.3-libspeechd.patch
|
||||||
@ -411,6 +413,16 @@ rm -f ${RPM_BUILD_ROOT}%{_datadir}/gdm/greeter/autostart/xbrlapi.desktop
|
|||||||
# make brltty-config executable
|
# make brltty-config executable
|
||||||
chmod 755 ${RPM_BUILD_ROOT}%{_bindir}/brltty-config.sh
|
chmod 755 ${RPM_BUILD_ROOT}%{_bindir}/brltty-config.sh
|
||||||
|
|
||||||
|
# fix multilib
|
||||||
|
pushd %{buildroot}%{_includedir}/brltty
|
||||||
|
for f in config forbuild
|
||||||
|
do
|
||||||
|
mv ./$f.h ./$f-$(getconf LONG_BIT).h
|
||||||
|
done
|
||||||
|
install -p -m 0644 %{SOURCE2} ./config.h
|
||||||
|
install -p -m 0644 %{SOURCE3} ./forbuild.h
|
||||||
|
popd
|
||||||
|
|
||||||
# handle locales
|
# handle locales
|
||||||
%find_lang %{name}
|
%find_lang %{name}
|
||||||
cp -p %{name}.lang ../
|
cp -p %{name}.lang ../
|
||||||
@ -549,6 +561,10 @@ fi
|
|||||||
%config(noreplace) %verify(not size md5 mtime) %{_sysconfdir}/brltty/Initramfs/cmdline
|
%config(noreplace) %verify(not size md5 mtime) %{_sysconfdir}/brltty/Initramfs/cmdline
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jun 22 2021 Jaroslav Škarvada <jskarvad@redhat.com> - 6.3-3
|
||||||
|
- Fixed brlapi multilib
|
||||||
|
Resolves: rhbz#1915335
|
||||||
|
|
||||||
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 6.3-2
|
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 6.3-2
|
||||||
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user