Accepting request 100515 from home:vuntz:branches:GNOME:Factory

Update to 5.2

OBS-URL: https://build.opensuse.org/request/show/100515
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/libxklavier?expand=0&rev=23
This commit is contained in:
Dominique Leuenberger 2012-01-18 08:45:51 +00:00 committed by Git OBS Bridge
parent 88010d4c21
commit 669fb54775
5 changed files with 102 additions and 23 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1d7e8a6ed842d415d2f95b827e7d04ecf515ed5be2aaee262a8dd1c5cbe10ff1
size 346858

3
libxklavier-5.2.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7c1f04a80035e03cec992e16b89bc708a32b3578d6e133343d2cb56385d25dfe
size 312864

View File

@ -0,0 +1,34 @@
From 57785c952444e4cb9d13e43d4f9cc9713d66958b Mon Sep 17 00:00:00 2001
From: Martin Pitt <martin.pitt@ubuntu.com>
Date: Mon, 16 Jan 2012 15:00:18 +0000
Subject: Use local include files for building GIR
Add -I argument for g-ir-scanner to use the include files from the local tree
instead of the ones installed in the system.
---
Index: libxklavier-5.2/libxklavier/Makefile.am
===================================================================
--- libxklavier-5.2.orig/libxklavier/Makefile.am
+++ libxklavier-5.2/libxklavier/Makefile.am
@@ -94,7 +94,7 @@ introspection_sources = $(xklavier_heade
Xkl-1.0.gir: libxklavier.la
Xkl_1_0_gir_INCLUDES = GObject-2.0 xlib-2.0
-Xkl_1_0_gir_CFLAGS = $(INCLUDES) $(X_CFLAGS) $(XML_CFLAGS) $(GLIB_CFLAGS) $(XINPUT_CFLAGS)
+Xkl_1_0_gir_CFLAGS = -I$(top_srcdir) $(INCLUDES) $(X_CFLAGS) $(XML_CFLAGS) $(GLIB_CFLAGS) $(XINPUT_CFLAGS)
Xkl_1_0_gir_LIBS = libxklavier.la
Xkl_1_0_gir_FILES = $(xklavier_headers) $(introspection_sources)
INTROSPECTION_GIRS += Xkl-1.0.gir
Index: libxklavier-5.2/libxklavier/Makefile.in
===================================================================
--- libxklavier-5.2.orig/libxklavier/Makefile.in
+++ libxklavier-5.2/libxklavier/Makefile.in
@@ -343,7 +343,7 @@ INTROSPECTION_COMPILER_ARGS = --included
# avoid introspecting private headers
@HAVE_INTROSPECTION_TRUE@introspection_sources = $(xklavier_headers) $(filter %.c, $(libxklavier_la_SOURCES))
@HAVE_INTROSPECTION_TRUE@Xkl_1_0_gir_INCLUDES = GObject-2.0 xlib-2.0
-@HAVE_INTROSPECTION_TRUE@Xkl_1_0_gir_CFLAGS = $(INCLUDES) $(X_CFLAGS) $(XML_CFLAGS) $(GLIB_CFLAGS) $(XINPUT_CFLAGS)
+@HAVE_INTROSPECTION_TRUE@Xkl_1_0_gir_CFLAGS = -I$(top_srcdir) $(INCLUDES) $(X_CFLAGS) $(XML_CFLAGS) $(GLIB_CFLAGS) $(XINPUT_CFLAGS)
@HAVE_INTROSPECTION_TRUE@Xkl_1_0_gir_LIBS = libxklavier.la
@HAVE_INTROSPECTION_TRUE@Xkl_1_0_gir_FILES = $(xklavier_headers) $(introspection_sources)
@HAVE_INTROSPECTION_TRUE@girdir = $(datadir)/gir-1.0

View File

@ -1,3 +1,25 @@
-------------------------------------------------------------------
Wed Jan 18 06:40:17 UTC 2012 - vuntz@opensuse.org
- Update to version 5.2:
+ Optional introspection introduced
+ Some minor fixes (runtime and build-time)
- Add xz BuildRequires because we can't build a package for a
xz-compressed tarball without explicitly specifying that... See
bnc#697467 for more details.
- Add gobject-introspection-devel BuildRequires to build
introspection support.
- Add libxklavier-fix-gir-build.patch to fix build of introspection
support.
- Create typelib-1_0-Xkl-1_0 subpackage for typelib file.
- Add typelib-1_0-Xkl-1_0 Requires to devel subpackage.
- Remove glib2-devel and libxml2-devel Requires from devel
subpackage: they will automatically be added the pkgconfig() way.
- Remove Requires for the XFree86-devel provider from devel
subpackage: it's not needed according to the pkgconfig file.
- Change group of libxklavier16 from Development/Libraries/X11 to
System/Libraries.
-------------------------------------------------------------------
Thu Oct 6 15:47:27 UTC 2011 - vuntz@opensuse.org

View File

@ -1,7 +1,7 @@
#
# spec file for package libxklavier
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -15,38 +15,46 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: libxklavier
BuildRequires: doxygen glib2-devel gtk-doc iso-codes-devel libxml2-devel pkg-config xorg-x11-devel
License: GPLv2+ ; LGPLv2.1+
Group: Development/Libraries/X11
Version: 5.1
Release: 1
Version: 5.2
Release: 0
Summary: Library with X keyboard related functions
Source: %{name}-%{version}.tar.bz2
Source99: baselibs.conf
License: GPL-2.0+ ; LGPL-2.1+
Group: Development/Libraries/X11
Url: http://www.freedesktop.org/Software/LibXklavier
Source: http://download.gnome.org/sources/libxklavier/5.2/%{name}-%{version}.tar.xz
Source99: baselibs.conf
# PATCH-FIX-UPSTREAM libxklavier-fix-gir-build.patch vuntz@opensuse.org -- Fix build of introspection support, taken from git
Patch0: libxklavier-fix-gir-build.patch
BuildRequires: doxygen
BuildRequires: glib2-devel
BuildRequires: gobject-introspection-devel >= 1.30
BuildRequires: gtk-doc
BuildRequires: iso-codes-devel
BuildRequires: libxml2-devel
BuildRequires: pkg-config
BuildRequires: xorg-x11-devel
# Only needed because we don't (and won't) support building xz tarballs by default... See bnc#697467
BuildRequires: xz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This library allows you to simplify XKB-related development.
%package devel
License: GPLv2+ ; LGPLv2.1+
Summary: Include Files and Libraries mandatory for Development
Group: Development/Libraries/X11
Requires: %{name} = %{version} glib2-devel libxml2-devel glibc-devel %(rpm -q --whatprovides XFree86-devel --queryformat '%{NAME}')
Requires: %{name} = %{version}
Requires: glibc-devel
Requires: typelib-1_0-Xkl-1_0 = %{version}
%description devel
This package contains all necessary include files and libraries needed
to develop applications that require these.
%package -n libxklavier16
License: GPLv2+ ; LGPLv2.1+
Summary: Library with X keyboard related functions
Group: Development/Libraries/X11
Group: System/Libraries
Requires: iso-codes
Provides: %{name} = %{version}
Obsoletes: %{name} < %{version}
@ -54,8 +62,17 @@ Obsoletes: %{name} < %{version}
%description -n libxklavier16
This library allows you to simplify XKB-related development.
%package -n typelib-1_0-Xkl-1_0
Summary: Library with X keyboard related functions -- Introspection bindings
Group: System/Libraries
%description -n typelib-1_0-Xkl-1_0
This library allows you to simplify XKB-related development.
This package provides the GObject Introspection bindings for
libxklavier.
%package doc
License: GPLv2+ ; LGPLv2.1+
Summary: Additional Package Documentation for libxklavier
Group: Development/Libraries/X11
Requires: %{name} = %{version}
@ -65,6 +82,7 @@ This library allows you to simplify XKB-related development.
%prep
%setup -q
%patch0 -p1
%build
%configure --with-pic\
@ -86,13 +104,18 @@ rm -rf $RPM_BUILD_ROOT
%files -n libxklavier16
%defattr(-,root,root)
%doc AUTHORS COPYING.LIB CREDITS ChangeLog NEWS README
%{_libdir}/*.so.*
%{_libdir}/libxklavier.so.*
%files -n typelib-1_0-Xkl-1_0
%defattr(-,root,root)
%{_libdir}/girepository-1.0/Xkl-1.0.typelib
%files devel
%defattr (-, root, root)
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_includedir}/libxklavier/
%{_libdir}/libxklavier.so
%{_libdir}/pkgconfig/libxklavier.pc
%{_datadir}/gir-1.0/Xkl-1.0.gir
%files doc
%defattr (-, root, root)