diff --git a/libbraille-0.19.0-gcc-14.patch b/libbraille-0.19.0-gcc-14.patch new file mode 100644 index 0000000..9078ca9 --- /dev/null +++ b/libbraille-0.19.0-gcc-14.patch @@ -0,0 +1,14 @@ +diff -urp libbraille-0.19.0.orig/backend/baum/brl.c libbraille-0.19.0/backend/baum/brl.c +--- libbraille-0.19.0.orig/backend/baum/brl.c 2006-03-03 18:31:25.000000000 -0600 ++++ libbraille-0.19.0/backend/baum/brl.c 2024-04-21 12:02:18.174577670 -0500 +@@ -29,8 +29,8 @@ + static char (*drvinit_func) (brli_term *term, const char *pathname); + static char (*drvclose_func) (brli_term *term); + static int (*write_func) (brli_term *term, char *bytes, int size); +-static int (*read_byte_func) (brli_term *term, char *byte, int timeout); +-static int (*read_bytes_func) (brli_term *term, char *bytes, int size, int timeout); ++static int (*read_byte_func) (brli_term *term, unsigned char *byte, int timeout); ++static int (*read_bytes_func) (brli_term *term, unsigned char *bytes, int size, int timeout); + + #define ESCAPE 0x1B + #define TSP_DATA_SIZE 5 \ No newline at end of file diff --git a/libbraille.spec b/libbraille.spec index 7f0b44c..33574c8 100644 --- a/libbraille.spec +++ b/libbraille.spec @@ -1,19 +1,18 @@ Name: libbraille Version: 0.19.0 -Release: 3mamba +Release: 4mamba Summary: A library which makes it possible to easily develop for Braille displays Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco -URL: http://libbraille.org/ +URL: https://libbraille.org/ Source: http://prdownloads.sourceforge.net/libbraille/libbraille-%{version}.tar.gz +Patch0: libbraille-0.19.0-gcc-14.patch License: LGPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel -BuildRequires: libudev-devel BuildRequires: libusb-compat-devel -BuildRequires: libusb-devel ## AUTOBUILDREQ-END %description @@ -33,6 +32,7 @@ This package contains static libraries and header files needed for development. %prep %setup -q sed -i "s,| arm-\* |,| aarch64-\* | arm-\* |," config.sub libltdl/config.sub +%patch 0 -p1 -b .gcc-14 %build %configure @@ -60,12 +60,14 @@ sed -i "s,| arm-\* |,| aarch64-\* | arm-\* |," config.sub libltdl/config.sub %defattr(-,root,root) %dir %{_includedir} %{_libdir}/libbraille.a -%{_libdir}/libbraille.la %{_libdir}/libbraille.so %{_includedir}/*.h %doc ChangeLog README TODO %changelog +* Fri Nov 29 2024 Silvan Calarco 0.19.0-4mamba +- fixed URL; closes #1 + * Sat May 08 2021 Silvan Calarco 0.19.0-3mamba - rebuilt with aarch64 build fix and debug package