Sync from SUSE:SLFO:Main libbraille revision 6bde0c72de398cf2576d1b0c8ee5f725
This commit is contained in:
commit
59ecd5fa99
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
68
libbraille-0.19.0-visibility.patch
Normal file
68
libbraille-0.19.0-visibility.patch
Normal file
@ -0,0 +1,68 @@
|
|||||||
|
Index: configure.ac
|
||||||
|
===================================================================
|
||||||
|
--- configure.ac.orig 2006-03-04 01:31:27.000000000 +0100
|
||||||
|
+++ configure.ac 2009-10-07 01:53:26.000000000 +0200
|
||||||
|
@@ -208,6 +208,44 @@ AC_SUBST(JAVA_INC)
|
||||||
|
AC_SUBST(JAVA_INC_NATIVE)
|
||||||
|
AM_CONDITIONAL(JAVAWRAPPER, test x$enable_java = xyes)
|
||||||
|
|
||||||
|
+dnl ************************************************************
|
||||||
|
+dnl Enable hiding of internal symbols in library to reduce its size and
|
||||||
|
+dnl speed dynamic linking of applications. This currently is only supported
|
||||||
|
+dnl on gcc >= 4.0 and SunPro C.
|
||||||
|
+dnl
|
||||||
|
+AC_MSG_CHECKING([whether to enable hidden symbols in the library])
|
||||||
|
+AC_ARG_ENABLE(hidden-symbols,
|
||||||
|
+AC_HELP_STRING([--enable-hidden-symbols],[Hide internal symbols in library])
|
||||||
|
+AC_HELP_STRING([--disable-hidden-symbols],[Leave all symbols with default visibility in library]),
|
||||||
|
+[ case "$enableval" in
|
||||||
|
+ no)
|
||||||
|
+ AC_MSG_RESULT(no)
|
||||||
|
+ ;;
|
||||||
|
+ *)
|
||||||
|
+ AC_MSG_CHECKING([whether $CC supports it])
|
||||||
|
+ if test "$GCC" = yes ; then
|
||||||
|
+ if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
|
||||||
|
+ AC_MSG_RESULT(yes)
|
||||||
|
+ AC_DEFINE(BRAILLE_API, [__attribute__ ((visibility ("default")))], [to make a symbol visible])
|
||||||
|
+ CFLAGS="$CFLAGS -fvisibility=hidden"
|
||||||
|
+ else
|
||||||
|
+ AC_MSG_RESULT(no)
|
||||||
|
+ fi
|
||||||
|
+
|
||||||
|
+ else
|
||||||
|
+ dnl Test for SunPro cc
|
||||||
|
+ if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
|
||||||
|
+ AC_MSG_RESULT(yes)
|
||||||
|
+ AC_DEFINE(BRAILLE_API, [__global], [to make a symbol visible])
|
||||||
|
+ CFLAGS="$CFLAGS -xldscope=hidden"
|
||||||
|
+ else
|
||||||
|
+ AC_MSG_RESULT(no)
|
||||||
|
+ fi
|
||||||
|
+ fi
|
||||||
|
+ ;;
|
||||||
|
+ esac ],
|
||||||
|
+ AC_MSG_RESULT(no)
|
||||||
|
+)
|
||||||
|
# Finally create all the generated files
|
||||||
|
# The configure script takes "file.in" and substitutes variables to produce
|
||||||
|
# "file". In this case we are just generating the Makefiles, but this could
|
||||||
|
Index: include/braille.h
|
||||||
|
===================================================================
|
||||||
|
--- include/braille.h.orig 2006-03-04 01:31:25.000000000 +0100
|
||||||
|
+++ include/braille.h 2009-10-07 02:08:27.000000000 +0200
|
||||||
|
@@ -25,13 +25,7 @@ extern "C" {
|
||||||
|
// that uses this DLL. This way any other project whose source files include this file see
|
||||||
|
// LIBBRAILLE_API functions as being imported from a DLL, wheras this DLL sees symbols
|
||||||
|
// defined with this macro as being exported.
|
||||||
|
-#ifdef WIN32
|
||||||
|
-#ifdef LIBBRAILLE_EXPORTS
|
||||||
|
-#define BRAILLE_API __declspec(dllexport)
|
||||||
|
-#else
|
||||||
|
-#define BRAILLE_API __declspec(dllimport)
|
||||||
|
-#endif
|
||||||
|
-#else
|
||||||
|
+#ifndef BRAILLE_API
|
||||||
|
#define BRAILLE_API
|
||||||
|
#endif
|
||||||
|
|
BIN
libbraille-0.19.0.tar.gz
(Stored with Git LFS)
Normal file
BIN
libbraille-0.19.0.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
70
libbraille.changes
Normal file
70
libbraille.changes
Normal file
@ -0,0 +1,70 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Oct 19 13:12:57 UTC 2021 - pgajdos@suse.com
|
||||||
|
|
||||||
|
- fix shlib-policy-name-error [bsc#1191761]
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue May 5 10:51:25 UTC 2020 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||||
|
|
||||||
|
- Let the distro decide if it wants to disable python2 bindings
|
||||||
|
(bcond_without python2). Enabled by default, unless overwritten
|
||||||
|
by the builder.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Mar 17 09:48:54 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Fix building with py2 directly only
|
||||||
|
- Convert to pkgconf style dependencies
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Apr 10 23:10:18 UTC 2018 - jengelh@inai.de
|
||||||
|
|
||||||
|
- Ensure neutrality of descriptions. Update summaries.
|
||||||
|
- Remove pointless --with-pic (static libs only).
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Mar 28 16:10:46 UTC 2018 - dimstar@opensuse.org
|
||||||
|
|
||||||
|
- Explicitly call autoreconf in libltdl: Fix build with automake
|
||||||
|
1.16.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Nov 22 08:48:48 UTC 2016 - pgajdos@suse.com
|
||||||
|
|
||||||
|
- fix links in spec file, use *.gz
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Feb 9 01:33:49 UTC 2012 - jengelh@medozas.de
|
||||||
|
|
||||||
|
- Simply regeneration of autotools-generated files
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Nov 13 14:19:07 UTC 2011 - jengelh@medozas.de
|
||||||
|
|
||||||
|
- Remove redundant/unwanted tags/section (cf. specfile guidelines)
|
||||||
|
- Use %_smp_mflags for parallel building
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Nov 13 09:13:56 UTC 2011 - coolo@suse.com
|
||||||
|
|
||||||
|
- add libtool as explicit buildrequire to avoid implicit dependency from prjconf
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Apr 8 17:32:55 CEST 2010 - vuntz@opensuse.org
|
||||||
|
|
||||||
|
- Clean up package for inclusion in Factory.
|
||||||
|
- Rename libbraille-python package to python-braille, with
|
||||||
|
appropriate Provides/Obsoletes.
|
||||||
|
- Pass --enable-fake and --enable-usb to configure.
|
||||||
|
- Create a fake subpackage for the graphical display.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Oct 8 22:38:23 CEST 2009 - crrodriguez@suse.de
|
||||||
|
|
||||||
|
- fix build and support symbol visibility
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Aug 9 01:03:10 CEST 2007 - crrodriguez@suse.de
|
||||||
|
|
||||||
|
- fix some packaging errors
|
||||||
|
|
151
libbraille.spec
Normal file
151
libbraille.spec
Normal file
@ -0,0 +1,151 @@
|
|||||||
|
#
|
||||||
|
# spec file for package libbraille
|
||||||
|
#
|
||||||
|
# Copyright (c) 2021 SUSE LLC
|
||||||
|
#
|
||||||
|
# All modifications and additions to the file contributed by third parties
|
||||||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
|
# upon. The license for this file, and modifications and additions to the
|
||||||
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
|
# license for the pristine package is not an Open Source License, in which
|
||||||
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
# Python2 is EOL; let the distro decide if they will want to build py2 support. TW does not
|
||||||
|
%bcond_without python2
|
||||||
|
%define libsfx 0-14
|
||||||
|
|
||||||
|
Name: libbraille
|
||||||
|
Version: 0.19.0
|
||||||
|
Release: 0
|
||||||
|
Summary: Access to Braille Displays and Terminals
|
||||||
|
License: LGPL-2.1-only
|
||||||
|
URL: https://sourceforge.net/projects/libbraille/files/libbraille/
|
||||||
|
Source: http://downloads.sourceforge.net/project/libbraille/libbraille/libbraille-%{version}/libbraille-%{version}.tar.gz
|
||||||
|
# PATCH-MISSING-TAG -- See http://en.opensuse.org/Packaging/Patches
|
||||||
|
Patch0: libbraille-0.19.0-visibility.patch
|
||||||
|
BuildRequires: gcc-c++
|
||||||
|
BuildRequires: libtool
|
||||||
|
BuildRequires: libusb-devel
|
||||||
|
BuildRequires: pkgconfig
|
||||||
|
BuildRequires: swig
|
||||||
|
BuildRequires: pkgconfig(glib-2.0)
|
||||||
|
BuildRequires: pkgconfig(gtk+-2.0)
|
||||||
|
%if %{with python2}
|
||||||
|
BuildRequires: pkgconfig(python2)
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%description
|
||||||
|
Libbraille is a computer shared library which makes it possible to
|
||||||
|
develop for Braille displays. It provides an API to
|
||||||
|
write text on the display, directly draw dots, or get the value of
|
||||||
|
keys pressed on the Braille keyboard.
|
||||||
|
|
||||||
|
%package -n libbraille%{libsfx}
|
||||||
|
Summary: Access to Braille Displays and Terminals
|
||||||
|
|
||||||
|
%description -n libbraille%{libsfx}
|
||||||
|
Libbraille is a computer shared library which makes it possible to
|
||||||
|
develop for Braille displays. It provides an API to
|
||||||
|
write text on the display, directly draw dots, or get the value of
|
||||||
|
keys pressed on the Braille keyboard.
|
||||||
|
|
||||||
|
%package fake%{libsfx}
|
||||||
|
Summary: Fake graphical display for libbraille
|
||||||
|
Requires: %{name} = %{version}
|
||||||
|
Supplements: (%{name} and gtk2)
|
||||||
|
|
||||||
|
%description fake%{libsfx}
|
||||||
|
Libbraille is a computer shared library which makes it possible to
|
||||||
|
develop for Braille displays. It provides an API to
|
||||||
|
write text on the display, directly draw dots, or get the value of
|
||||||
|
keys pressed on the Braille keyboard.
|
||||||
|
|
||||||
|
This package contains a fake graphical virtual display.
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: Development files for libbraille
|
||||||
|
Requires: %{name} = %{version}
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
Libbraille is a computer shared library which makes it possible to
|
||||||
|
develop for Braille displays. It provides an API to
|
||||||
|
write text on the display, directly draw dots, or get the value of
|
||||||
|
keys pressed on the Braille keyboard.
|
||||||
|
|
||||||
|
%package -n python2-braille
|
||||||
|
Summary: Python bindings for libbraille
|
||||||
|
Provides: %{name}-python = %{version}
|
||||||
|
Obsoletes: %{name}-python < %{version}
|
||||||
|
Provides: python-braille = %{version}-%{release}
|
||||||
|
Obsoletes: python-braille < %{version}-%{release}
|
||||||
|
|
||||||
|
%description -n python2-braille
|
||||||
|
Libbraille is a computer shared library which makes it possible to
|
||||||
|
develop for Braille displays. It provides an API to
|
||||||
|
write text on the display, directly draw dots, or get the value of
|
||||||
|
keys pressed on the Braille keyboard.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q
|
||||||
|
%patch0
|
||||||
|
|
||||||
|
%build
|
||||||
|
autoreconf -fi
|
||||||
|
(cd libltdl; autoreconf -fi)
|
||||||
|
export CFLAGS="%{optflags} -fno-strict-aliasing "
|
||||||
|
export CXXFLAGS="%{optflags} -fno-strict-aliasing"
|
||||||
|
%configure \
|
||||||
|
--disable-static \
|
||||||
|
--disable-rpath \
|
||||||
|
--enable-hidden-symbols \
|
||||||
|
--enable-fake \
|
||||||
|
--enable-usb \
|
||||||
|
%if %{with python2}
|
||||||
|
--enable-python \
|
||||||
|
%endif
|
||||||
|
%nil
|
||||||
|
%make_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%make_install
|
||||||
|
find %{buildroot} -type f -name "*.la" -delete -print
|
||||||
|
|
||||||
|
%post -n libbraille%{libsfx} -p /sbin/ldconfig
|
||||||
|
%postun -n libbraille%{libsfx} -p /sbin/ldconfig
|
||||||
|
%post fake%{libsfx} -p /sbin/ldconfig
|
||||||
|
%postun fake%{libsfx} -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%files
|
||||||
|
%license COPYING
|
||||||
|
%doc AUTHORS ChangeLog README TODO
|
||||||
|
%config(noreplace) %{_sysconfdir}/libbraille.conf
|
||||||
|
%{_bindir}/*
|
||||||
|
%{_datadir}/libbraille
|
||||||
|
|
||||||
|
%files -n libbraille%{libsfx}
|
||||||
|
%dir %{_libdir}/libbraille
|
||||||
|
%{_libdir}/libbraille/*.so.*
|
||||||
|
%exclude %{_libdir}/libbraille/fake-0.so.*
|
||||||
|
%{_libdir}/*.so.*
|
||||||
|
|
||||||
|
%files fake%{libsfx}
|
||||||
|
%{_libdir}/libbraille/fake-0.so.*
|
||||||
|
|
||||||
|
%if %{with python2}
|
||||||
|
%files -n python2-braille
|
||||||
|
%{python2_sitearch}/_braille.so*
|
||||||
|
%{python2_sitelib}/braille.py*
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%{_includedir}/*.h
|
||||||
|
%{_libdir}/*.so
|
||||||
|
%{_libdir}/libbraille/*.so
|
||||||
|
|
||||||
|
%changelog
|
Loading…
x
Reference in New Issue
Block a user