03a0eae4fa
- Pass --with-xkb-bin-base=%{_bindir} to configure: we know that xkbcomp is installed there (boo#964360). - Add xkbcomp Requires to libxklavier16: the xkbcomp binary is required for proper functioning of the library. OBS-URL: https://build.opensuse.org/request/show/357213 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/libxklavier?expand=0&rev=34
126 lines
3.6 KiB
RPMSpec
126 lines
3.6 KiB
RPMSpec
#
|
|
# spec file for package libxklavier
|
|
#
|
|
# Copyright (c) 2016 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 http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: libxklavier
|
|
Version: 5.3
|
|
Release: 0
|
|
Summary: Library with X keyboard related functions
|
|
License: LGPL-2.0+
|
|
Group: Development/Libraries/X11
|
|
Url: http://www.freedesktop.org/Software/LibXklavier
|
|
Source: http://download.gnome.org/sources/libxklavier/5.3/%{name}-%{version}.tar.xz
|
|
Source99: baselibs.conf
|
|
BuildRequires: doxygen
|
|
BuildRequires: gobject-introspection-devel >= 1.30
|
|
BuildRequires: gtk-doc
|
|
BuildRequires: iso-codes-devel
|
|
BuildRequires: pkg-config
|
|
BuildRequires: pkgconfig(glib-2.0)
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
|
BuildRequires: pkgconfig(x11)
|
|
BuildRequires: pkgconfig(xi)
|
|
BuildRequires: pkgconfig(xkbfile)
|
|
Requires: xkbcomp
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
This library allows you to simplify XKB-related development.
|
|
|
|
%package devel
|
|
Summary: Include Files and Libraries mandatory for Development
|
|
Group: Development/Libraries/X11
|
|
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
|
|
Summary: Library with X keyboard related functions
|
|
Group: System/Libraries
|
|
Requires: iso-codes
|
|
Provides: %{name} = %{version}
|
|
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
|
|
Summary: Additional Package Documentation for libxklavier
|
|
Group: Development/Libraries/X11
|
|
Requires: %{name} = %{version}
|
|
|
|
%description doc
|
|
This library allows you to simplify XKB-related development.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
%configure \
|
|
--with-pic \
|
|
--with-xkb-base=/usr/share/X11/xkb \
|
|
--with-xkb-bin-base=%{_bindir} \
|
|
--disable-static
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
%make_install
|
|
rm -v %{buildroot}%{_libdir}/*.la
|
|
|
|
%post -n libxklavier16 -p /sbin/ldconfig
|
|
|
|
%postun -n libxklavier16 -p /sbin/ldconfig
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%files -n libxklavier16
|
|
%defattr(-,root,root)
|
|
%doc AUTHORS COPYING.LIB CREDITS ChangeLog NEWS README
|
|
%{_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}/libxklavier/
|
|
%{_libdir}/libxklavier.so
|
|
%{_libdir}/pkgconfig/libxklavier.pc
|
|
%{_datadir}/gir-1.0/Xkl-1.0.gir
|
|
|
|
%files doc
|
|
%defattr (-, root, root)
|
|
%{_datadir}/gtk-doc/html/libxklavier
|
|
|
|
%changelog
|