Sync from SUSE:ALP:Source:Standard:1.0 libxkbui revision 1225b01422afbae4c172594a323dde99

This commit is contained in:
Adrian Schröter 2023-07-31 13:37:38 +02:00
commit 493b7928ba
6 changed files with 159 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 @@
libxkbui1
libxkbui-devel
requires -libxkbui-<targettype>
requires "libxkbui1-<targettype> = <version>"

BIN
libxkbui-X11R7.1-1.0.2.tar.bz2 (Stored with Git LFS) Normal file

Binary file not shown.

30
libxkbui.changes Normal file
View File

@ -0,0 +1,30 @@
-------------------------------------------------------------------
Wed Apr 26 08:44:22 UTC 2023 - Jan Engelhardt <jengelh@inai.de>
- Modernize specfile constructs
-------------------------------------------------------------------
Tue Apr 25 14:26:17 UTC 2023 - Frederic Crozat <fcrozat@suse.com>
- Add baselibs.conf as source to specfile.
-------------------------------------------------------------------
Tue Apr 16 07:15:32 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 08:54:18 UTC 2012 - sndirsch@suse.com
- specfile cleanup
-------------------------------------------------------------------
Tue Feb 7 22:17:49 UTC 2012 - jengelh@medozas.de
- Split xorg-x11-libs into separate packages

13
libxkbui.diff Normal file
View File

@ -0,0 +1,13 @@
Index: src/XKBui.c
===================================================================
--- src/XKBui.c.orig
+++ src/XKBui.c
@@ -104,7 +104,7 @@ XkbDescPtr xkb;
char buf[20];
sprintf(buf,"#%02x%02x%02x",(sdef.red>>8)&0xff,
(sdef.green>>8)&0xff,
- (sdef.blue>>8)&&0xff);
+ (sdef.blue>>8)&0xff);
if (XAllocNamedColor(view->dpy,view->opts.cmap,buf,&sdef,&xdef)) {
xkb->geom->colors[i].pixel= sdef.pixel;
#ifdef DEBUG

86
libxkbui.spec Normal file
View File

@ -0,0 +1,86 @@
#
# spec file for package libxkbui
#
# Copyright (c) 2023 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/
#
Name: libxkbui
%define lname libxkbui1
Version: 1.0.2
Release: 0
Summary: X11 keyboard UI presentation library
License: MIT
Group: Development/Libraries/C and C++
URL: http://xorg.freedesktop.org/
#Git-Clone: git://anongit.freedesktop.org/xorg/lib/libxkbui
#Git-Web: http://cgit.freedesktop.org/xorg/lib/libxkbui/
Source: http://ftp.x.org/pub/X11R7.1/src/lib/%{name}-X11R7.1-%{version}.tar.bz2
Source1: baselibs.conf
Patch1: libxkbui.diff
#git#BuildRequires: autoconf >= 2.57, automake, libtool
BuildRequires: pkgconfig
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xkbfile)
BuildRequires: pkgconfig(xt)
%description
libxkbui provides an interface to easily present XKB layouts as
graphical widgets.
%package -n %lname
Summary: X11 keyboard UI presentation library
Group: System/Libraries
%description -n %lname
libxkbui provides an interface to easily present XKB layouts as
graphical widgets.
%package devel
Summary: Development files for the X11 keyboard UI presentation library
Group: Development/Libraries/C and C++
Requires: %lname = %version
%description devel
libxkbui provides an interface to easily present XKB layouts as
graphical widgets.
This package contains the development headers for the library found
in %lname.
%prep
%autosetup -n %name-X11R7.1-%version -p0
%build
%configure --disable-static
%make_build
%install
%make_install
rm -f "%buildroot/%_libdir"/*.la
%post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig
%files -n %lname
%_libdir/libxkbui.so.1*
%files devel
%_includedir/X11/*
%_libdir/libxkbui.so
%_libdir/pkgconfig/xkbui.pc
%changelog