commit eb2f89b60f3b8abc8d7f57987370e90126f2095c Author: Adrian Schröter Date: Mon Oct 14 15:01:03 2024 +0200 Sync from SUSE:ALP:Source:Standard:1.0 liblbxutil revision 43d999604ee844a3e68ff7cc6d430bc4 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..fecc750 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/baselibs.conf b/baselibs.conf new file mode 100644 index 0000000..c593286 --- /dev/null +++ b/baselibs.conf @@ -0,0 +1,4 @@ +liblbxutil1 +liblbxutil-devel + requires -liblbxutil- + requires "liblbxutil1- = " diff --git a/liblbxutil-1.1.0.tar.bz2 b/liblbxutil-1.1.0.tar.bz2 new file mode 100644 index 0000000..fdbc490 --- /dev/null +++ b/liblbxutil-1.1.0.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c6b6ff7858ec619cafa8205debca6bf78c5610a2844a782ed643c7fd017cf8ae +size 268278 diff --git a/liblbxutil.changes b/liblbxutil.changes new file mode 100644 index 0000000..89aca29 --- /dev/null +++ b/liblbxutil.changes @@ -0,0 +1,32 @@ +------------------------------------------------------------------- +Wed Jan 8 17:48:26 UTC 2020 - Stefan Dirsch + +- 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 diff --git a/liblbxutil.spec b/liblbxutil.spec new file mode 100644 index 0000000..3ba78b5 --- /dev/null +++ b/liblbxutil.spec @@ -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 diff --git a/u_fno-common.patch b/u_fno-common.patch new file mode 100644 index 0000000..55fcba7 --- /dev/null +++ b/u_fno-common.patch @@ -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 + #include + #include +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; +