Sync from SUSE:SLFO:Main liblbxutil revision 43d999604ee844a3e68ff7cc6d430bc4

This commit is contained in:
Adrian Schröter 2024-05-03 15:14:06 +02:00
commit 4629524ddf
6 changed files with 201 additions and 0 deletions

23
.gitattributes vendored Normal file
View 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

4
baselibs.conf Normal file
View File

@ -0,0 +1,4 @@
liblbxutil1
liblbxutil-devel
requires -liblbxutil-<targettype>
requires "liblbxutil1-<targettype> = <version>"

BIN
liblbxutil-1.1.0.tar.bz2 (Stored with Git LFS) Normal file

Binary file not shown.

32
liblbxutil.changes Normal file
View File

@ -0,0 +1,32 @@
-------------------------------------------------------------------
Wed Jan 8 17:48:26 UTC 2020 - Stefan Dirsch <sndirsch@suse.com>
- u_fno-common.patch
* fix build with gcc's -fno-common option (boo#1160278)
- added baselibs.conf as source to specfile
-------------------------------------------------------------------
Mon Apr 15 12:32:17 UTC 2013 - mmeister@suse.com
- Added url as source.
Please see http://en.opensuse.org/SourceUrls
-------------------------------------------------------------------
Sun Feb 17 17:21:53 UTC 2013 - jengelh@inai.de
- Use more robust make install call
-------------------------------------------------------------------
Tue Sep 25 06:49:02 UTC 2012 - sndirsch@suse.com
- specfile cleanup
-------------------------------------------------------------------
Sun Feb 12 02:08:04 UTC 2012 - jengelh@medozas.de
- Provide package descriptions and update homepage URL
-------------------------------------------------------------------
Tue Feb 7 22:17:49 UTC 2012 - jengelh@medozas.de
- Split xorg-x11-libs into separate packages

94
liblbxutil.spec Normal file
View File

@ -0,0 +1,94 @@
#
# spec file for package liblbxutil
#
# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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/
#
Name: liblbxutil
%define lname liblbxutil1
Version: 1.1.0
Release: 0
Summary: Low Bandwith X extension utility routines
License: MIT
Group: Development/Libraries/C and C++
Url: http://xorg.freedesktop.org/
#Git-Clone: git://anongit.freedesktop.org/xorg/lib/liblbxutil
#Git-Web: http://cgit.freedesktop.org/xorg/lib/liblbxutil/
Source: http://xorg.freedesktop.org/archive/individual/lib/%{name}-%{version}.tar.bz2
Source1: baselibs.conf
Patch0: u_fno-common.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
#git#BuildRequires: autoconf >= 2.57, automake, libtool
BuildRequires: pkgconfig
BuildRequires: pkgconfig(xextproto) >= 7.0.99.1
BuildRequires: pkgconfig(xorg-macros) >= 1.3
BuildRequires: pkgconfig(xproto)
BuildRequires: pkgconfig(zlib)
%description
liblbxutil is a library of routines for LBX (Low Bandwidth X)
extension support shared between the lbxproxy program and an
LBX-supporting X server.
%package -n %lname
Summary: Low Bandwith X extension utility routines
Group: System/Libraries
%description -n %lname
liblbxutil is a library of routines for LBX (Low Bandwidth X)
extension support shared between the lbxproxy program and an
LBX-supporting X server.
%package devel
Summary: Development files for the Low Bandwith X extension routines
Group: Development/Libraries/C and C++
Requires: %lname = %version
%description devel
liblbxutil is a library of routines for LBX (Low Bandwidth X)
extension support shared between the lbxproxy program and an
LBX-supporting X server.
This package contains the development headers for the library found
in %lname.
%prep
%setup -q
%patch0 -p1
%build
%configure --disable-static
make %{?_smp_mflags}
%install
make install DESTDIR="%buildroot"
rm -f "%buildroot/%_libdir"/*.la
%post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig
%files -n %lname
%defattr(-,root,root)
%_libdir/liblbxutil.so.1*
%files devel
%defattr(-,root,root)
%_includedir/X11/*
%_libdir/liblbxutil.so
%_libdir/pkgconfig/lbxutil.pc
%changelog

45
u_fno-common.patch Normal file
View File

@ -0,0 +1,45 @@
diff -u -r liblbxutil-1.1.0/src/lbx_zlib/lbx_zlib.c liblbxutil-1.1.0/src/lbx_zlib/lbx_zlib.c
--- liblbxutil-1.1.0/src/lbx_zlib/lbx_zlib.c 2009-11-03 06:55:28.000000000 +0100
+++ liblbxutil-1.1.0/src/lbx_zlib/lbx_zlib.c 2020-01-08 18:42:27.748352503 +0100
@@ -55,7 +55,7 @@
#ifdef WIN32
#define _WILLWINSOCK_
#endif
-#define _BSD_SOURCE
+#define DEFAULT_SOURCE
#include <X11/Xos.h>
#include <X11/Xfuncs.h>
#include <stdio.h>
diff -u -r liblbxutil-1.1.0/src/lbx_zlib/lbx_zlib.h liblbxutil-1.1.0/src/lbx_zlib/lbx_zlib.h
--- liblbxutil-1.1.0/src/lbx_zlib/lbx_zlib.h 2009-11-03 06:52:21.000000000 +0100
+++ liblbxutil-1.1.0/src/lbx_zlib/lbx_zlib.h 2020-01-08 18:38:26.711719446 +0100
@@ -136,9 +136,9 @@
#endif
/* lbx_zlib.c */
-unsigned long stream_out_compressed;
-unsigned long stream_out_uncompressed;
-unsigned long stream_out_plain;
-unsigned long stream_in_compressed;
-unsigned long stream_in_uncompressed;
-unsigned long stream_in_plain;
+extern unsigned long stream_out_compressed;
+extern unsigned long stream_out_uncompressed;
+extern unsigned long stream_out_plain;
+extern unsigned long stream_in_compressed;
+extern unsigned long stream_in_uncompressed;
+extern unsigned long stream_in_plain;
diff -u -r liblbxutil-1.1.0/src/lbx_zlib/reqstats.c liblbxutil-1.1.0/src/lbx_zlib/reqstats.c
--- liblbxutil-1.1.0/src/lbx_zlib/reqstats.c 2009-11-03 06:39:14.000000000 +0100
+++ liblbxutil-1.1.0/src/lbx_zlib/reqstats.c 2020-01-08 18:40:15.229805230 +0100
@@ -43,8 +43,8 @@
#define LBX_CODE 136 /* XXX - this should not be hardcoded - on todo list */
-extern unsigned long stream_in_compressed;
-extern unsigned long stream_in_plain;
+unsigned long stream_in_compressed;
+unsigned long stream_in_plain;
extern unsigned long stream_in_packet_header_bytes;
extern unsigned long stream_in_uncompressed_bytes;