!2 Initial package
From: @weidongkl Reviewed-by: @wuxu_buque Signed-off-by: @wuxu_buque
This commit is contained in:
commit
ae140e0905
BIN
libgxim-0.5.0.tar.bz2
Normal file
BIN
libgxim-0.5.0.tar.bz2
Normal file
Binary file not shown.
40
libgxim-fix-build.patch
Normal file
40
libgxim-fix-build.patch
Normal file
@ -0,0 +1,40 @@
|
||||
From 274976ff39d9142169a18655f5013e66233ac9c8 Mon Sep 17 00:00:00 2001
|
||||
From: Akira TAGOH <akira@tagoh.org>
|
||||
Date: Wed, 14 Feb 2018 13:20:40 +0900
|
||||
Subject: [PATCH] Fix a build fail
|
||||
|
||||
---
|
||||
libgxim/gximcore.c | 2 --
|
||||
libgxim/gximprotocol10.c | 2 +-
|
||||
2 files changed, 1 insertion(+), 3 deletions(-)
|
||||
|
||||
diff --git a/libgxim/gximcore.c b/libgxim/gximcore.c
|
||||
index a92c413..3955d01 100644
|
||||
--- a/libgxim/gximcore.c
|
||||
+++ b/libgxim/gximcore.c
|
||||
@@ -26,9 +26,7 @@
|
||||
#endif
|
||||
|
||||
#include <glib/gi18n-lib.h>
|
||||
-#ifdef GNOME_ENABLE_DEBUG
|
||||
#include <gdk/gdkx.h>
|
||||
-#endif /* GNOME_ENABLE_DEBUG */
|
||||
#include "gximacc.h"
|
||||
#include "gximconnection.h"
|
||||
#include "gximmarshal.h"
|
||||
diff --git a/libgxim/gximprotocol10.c b/libgxim/gximprotocol10.c
|
||||
index 04887a5..65bd4df 100644
|
||||
--- a/libgxim/gximprotocol10.c
|
||||
+++ b/libgxim/gximprotocol10.c
|
||||
@@ -2073,7 +2073,7 @@ g_xim_protocol10_closure_real_parser_error(GXimProtocol *proto,
|
||||
msg = g_strdup_printf("Unable to parse the protocol %s properly",
|
||||
g_xim_protocol_name(major_opcode));
|
||||
|
||||
- g_xim_messages_error(G_XIM_PROTOCOL_GET_IFACE (proto)->message, msg);
|
||||
+ g_xim_messages_error(G_XIM_PROTOCOL_GET_IFACE (proto)->message, "%s", msg);
|
||||
switch (major_opcode) {
|
||||
case G_XIM_CONNECT:
|
||||
case G_XIM_AUTH_REQUIRED:
|
||||
--
|
||||
2.14.3
|
||||
|
||||
73
libgxim.spec
Normal file
73
libgxim.spec
Normal file
@ -0,0 +1,73 @@
|
||||
Name: libgxim
|
||||
Version: 0.5.0
|
||||
Release: 1
|
||||
License: LGPLv2+
|
||||
URL: http://tagoh.bitbucket.org/libgxim/
|
||||
BuildRequires: intltool, gettext, ruby, rubygems, glib2-devel >= 2.26, gtk2-devel, gcc
|
||||
Source0: http://bitbucket.org/tagoh/%{name}/downloads/%{name}-%{version}.tar.bz2
|
||||
Patch0: %{name}-fix-build.patch
|
||||
|
||||
Summary: GObject-based XIM protocol library
|
||||
|
||||
%description
|
||||
libgxim is a X Input Method protocol library that is implemented by GObject.
|
||||
this library helps you to implement XIM servers or client applications to
|
||||
communicate through XIM protocol without using Xlib API directly, particularly
|
||||
if your application uses GObject-based main loop.
|
||||
|
||||
This package contains the shared library.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for libgxim
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: pkgconfig
|
||||
Requires: glib2-devel >= 2.26.0
|
||||
Requires: gtk2-devel
|
||||
|
||||
%description devel
|
||||
libgxim is a X Input Method protocol library that is implemented by GObject.
|
||||
this library helps you to implement XIM servers or client applications to
|
||||
communicate through XIM protocol without using Xlib API directly, particularly
|
||||
if your application uses GObject-based main loop.
|
||||
|
||||
This package contains the development files to make any applications with
|
||||
libgxim.
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
|
||||
|
||||
%build
|
||||
%configure --disable-static --disable-rebuilds
|
||||
|
||||
make %{?_smp_mflags}
|
||||
|
||||
|
||||
%install
|
||||
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
|
||||
|
||||
# clean up the unnecessary files
|
||||
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
||||
|
||||
%find_lang %{name}
|
||||
|
||||
|
||||
%ldconfig_scriptlets
|
||||
|
||||
%files -f %{name}.lang
|
||||
%doc AUTHORS ChangeLog README
|
||||
%license COPYING
|
||||
%{_libdir}/libgxim.so.*
|
||||
|
||||
%files devel
|
||||
%doc AUTHORS ChangeLog README
|
||||
%license COPYING
|
||||
%{_libdir}/libgxim.so
|
||||
%{_libdir}/pkgconfig/*.pc
|
||||
%{_includedir}/libgxim
|
||||
%{_datadir}/gtk-doc/html/libgxim
|
||||
|
||||
%changelog
|
||||
* Tue Dec 22 2020 weidong <weidong@uniontech.com> - 0.5.0-1
|
||||
- Initial package.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user