2007-01-08 17:48:33 +01:00
|
|
|
#
|
2011-05-02 15:21:55 +02:00
|
|
|
# spec file for package libxklavier
|
2007-01-08 17:48:33 +01:00
|
|
|
#
|
2012-01-18 09:45:51 +01:00
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-08 17:48:33 +01:00
|
|
|
#
|
2008-09-12 22:17:54 +02:00
|
|
|
# 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.
|
|
|
|
|
2007-01-08 17:48:33 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-01-26 11:39:37 +01:00
|
|
|
|
2007-01-08 17:48:33 +01:00
|
|
|
Name: libxklavier
|
2012-01-18 09:45:51 +01:00
|
|
|
Version: 5.2
|
|
|
|
Release: 0
|
2008-02-08 18:17:43 +01:00
|
|
|
Summary: Library with X keyboard related functions
|
2012-01-26 11:39:37 +01:00
|
|
|
License: LGPL-2.0+
|
2012-01-18 09:45:51 +01:00
|
|
|
Group: Development/Libraries/X11
|
2008-01-25 17:42:19 +01:00
|
|
|
Url: http://www.freedesktop.org/Software/LibXklavier
|
2012-01-18 09:45:51 +01:00
|
|
|
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
|
2007-01-08 17:48:33 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
This library allows you to simplify XKB-related development.
|
|
|
|
|
|
|
|
%package devel
|
2008-02-08 18:17:43 +01:00
|
|
|
Summary: Include Files and Libraries mandatory for Development
|
2007-01-08 17:48:33 +01:00
|
|
|
Group: Development/Libraries/X11
|
2012-01-18 09:45:51 +01:00
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Requires: glibc-devel
|
|
|
|
Requires: typelib-1_0-Xkl-1_0 = %{version}
|
2007-01-08 17:48:33 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains all necessary include files and libraries needed
|
|
|
|
to develop applications that require these.
|
|
|
|
|
2010-01-18 13:57:02 +01:00
|
|
|
%package -n libxklavier16
|
2008-02-08 18:17:43 +01:00
|
|
|
Summary: Library with X keyboard related functions
|
2012-01-18 09:45:51 +01:00
|
|
|
Group: System/Libraries
|
2011-10-06 23:28:27 +02:00
|
|
|
Requires: iso-codes
|
2009-03-26 23:58:29 +01:00
|
|
|
Provides: %{name} = %{version}
|
|
|
|
Obsoletes: %{name} < %{version}
|
2008-02-08 18:17:43 +01:00
|
|
|
|
2010-01-18 13:57:02 +01:00
|
|
|
%description -n libxklavier16
|
2008-02-08 18:17:43 +01:00
|
|
|
This library allows you to simplify XKB-related development.
|
|
|
|
|
2012-01-18 09:45:51 +01:00
|
|
|
%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.
|
|
|
|
|
2007-01-08 17:48:33 +01:00
|
|
|
%package doc
|
2008-02-08 18:17:43 +01:00
|
|
|
Summary: Additional Package Documentation for libxklavier
|
2007-01-08 17:48:33 +01:00
|
|
|
Group: Development/Libraries/X11
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
This library allows you to simplify XKB-related development.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2012-01-18 09:45:51 +01:00
|
|
|
%patch0 -p1
|
2007-01-08 17:48:33 +01:00
|
|
|
|
|
|
|
%build
|
2009-01-27 02:19:05 +01:00
|
|
|
%configure --with-pic\
|
2007-03-06 18:58:37 +01:00
|
|
|
--with-xkb-base=/usr/share/X11/xkb\
|
2007-02-15 18:30:41 +01:00
|
|
|
--disable-static
|
2007-01-08 17:48:33 +01:00
|
|
|
make %{?jobs:-j%jobs}
|
|
|
|
|
|
|
|
%install
|
2009-03-26 23:58:29 +01:00
|
|
|
%makeinstall
|
2009-01-27 02:19:05 +01:00
|
|
|
%{__rm} -vf %{buildroot}%{_libdir}/*.la
|
2007-01-08 17:48:33 +01:00
|
|
|
|
2010-01-18 13:57:02 +01:00
|
|
|
%post -n libxklavier16 -p /sbin/ldconfig
|
2007-01-08 17:48:33 +01:00
|
|
|
|
2010-01-18 13:57:02 +01:00
|
|
|
%postun -n libxklavier16 -p /sbin/ldconfig
|
2007-01-08 17:48:33 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2010-01-18 13:57:02 +01:00
|
|
|
%files -n libxklavier16
|
2008-02-10 10:37:13 +01:00
|
|
|
%defattr(-,root,root)
|
2009-03-26 23:58:29 +01:00
|
|
|
%doc AUTHORS COPYING.LIB CREDITS ChangeLog NEWS README
|
2012-01-18 09:45:51 +01:00
|
|
|
%{_libdir}/libxklavier.so.*
|
|
|
|
|
|
|
|
%files -n typelib-1_0-Xkl-1_0
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/girepository-1.0/Xkl-1.0.typelib
|
2007-01-08 17:48:33 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr (-, root, root)
|
2012-01-18 09:45:51 +01:00
|
|
|
%{_includedir}/libxklavier/
|
|
|
|
%{_libdir}/libxklavier.so
|
|
|
|
%{_libdir}/pkgconfig/libxklavier.pc
|
|
|
|
%{_datadir}/gir-1.0/Xkl-1.0.gir
|
2007-01-08 17:48:33 +01:00
|
|
|
|
|
|
|
%files doc
|
|
|
|
%defattr (-, root, root)
|
|
|
|
%{_datadir}/gtk-doc/html/libxklavier
|
|
|
|
|
2007-03-06 18:58:37 +01:00
|
|
|
%changelog
|