Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37558072
en ru br
ALT Linux repos
S:5.4-alt1
5.0: 3.9-alt1
4.1: 3.7-alt0.M41.1
4.0: 3.2-alt1
3.0: 2.0-alt1

Group :: System/Libraries
RPM: libxklavier

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%def_disable static
%define ver_major 3.9

Name: libxklavier
Version: %ver_major
Release: alt1

Summary: libXklavier library
License: %lgpl2plus
Group: System/Libraries
Url: http://www.freedesktop.org/wiki/Software/LibXklavier
Source: %gnome_ftp/%name/%ver_major/%name-%version.tar.bz2
Source1: %name-3.6.map

Patch1: %name-3.9-alt-linking.patch
Patch2: %name-3.9-alt-versioning.patch

Packager: GNOME Maintainers Team <gnome at packages.altlinux.org>

# From configure.in

%define libxml_ver 2.0.0
%define glib_ver 2.16.0

BuildPreReq: rpm-build-licenses
BuildPreReq: rpm-build-gnome

# From configure.in

BuildPreReq: gtk-doc libX11-devel libxkbfile-devel
BuildPreReq: libxml2-devel >= %libxml_ver
BuildPreReq: glib2-devel >= %glib_ver
BuildPreReq: iso-codes-devel libX11-devel

BuildPreReq: xkbcomp libXi-devel >= 1.1.3

%description
This library allows you simplify XKB-related development.

%package devel
Summary: Libraries, includes, etc to develop libxklavier applications
Group: Development/C
Requires: %name = %version-%release

%description devel
Libraries, include files, etc you can use to develop libxklavier applications.

%package devel-doc
Summary: Development documentation for libxklavier
Group: Development/C
BuildArch: noarch
Conflicts: %name < %version

%description devel-doc
This package contains documentation for libxklavier

%define _gtk_docdir %_datadir/gtk-doc/html

%prep
%setup -q

# Setup versioning

%patch1 -p1
%patch2 -p1
cp -a %SOURCE1 %name/

# no automake-1.10 yet

subst 's/1\.10/1.9.6/' configure.in

%build
touch config.rpath
%autoreconf
%configure \
   %{subst_enable static} \
   --enable-xkb-support \
   --enable-xmodmap-support \
   --with-xkb-base=%_datadir/X11/xkb \
   --with-xkb-bin-base=%_bindir \
   --with-xmodmap-base=%_datadir/xmodmap

%make_build

%install
%make_install DESTDIR=%buildroot install

%files
%doc AUTHORS ChangeLog CREDITS NEWS README
%_libdir/*.so.*

%files devel
%_includedir/*
%_libdir/*.so
%_pkgconfigdir/*

%files devel-doc
%_gtk_docdir/%name

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin