19082N/A#
19082N/A# spec file for package libxklavier
19082N/A#
20903N/A# Copyright (c) 2010, 2012, Oracle and/or its affiliates. All rights reserved.
19082N/A# This file and all modifications and additions to the pristine
19082N/A# package are under the same license as the package itself.
19082N/A#
19082N/A# Owner: ja208388
19082N/A#
19082N/A
19082N/AName: libxklavier
19082N/ALicense: LGPLv2+
19082N/AGroup: Development/Libraries
20916N/AVersion: 5.2.1
19082N/ARelease: 1
19082N/AVendor: http://www.freedesktop.org/
19082N/ASummary: libXklavier library
19082N/AUrl: http://gswitchit.sourceforge.net/
20916N/ASource: http://download.gnome.org/sources/%{name}/5.2/%{name}-%{version}.tar.xz
19082N/A# date:2010-08-02 owner:ja208388 type:bug
19082N/APatch1: libxklavier-01-compile-makefile.diff
19082N/ABuildroot: %{_tmppath}/%{name}-%{version}-%{release}-root
19082N/A
19082N/ABuildRequires: gtk-doc
19082N/ABuildRequires: dbus-glib >= 0.34
19082N/A
19082N/A%description
19082N/AThis library allows you simplify XKB-related development.
19082N/A
19082N/A%package devel
19082N/ASummary: Libraries, includes, etc to develop libxklavier applications
19082N/AGroup: Development/Libraries
19082N/ARequires: %{name} = %{version}
19082N/A
19082N/A%description devel
19082N/AThis package contains the header files, static libraries and development
19082N/Adocumentation for %{name}. If you like to develop programs using %{name},
19082N/Ayou will need to install %{name}-devel.
19082N/A
19082N/A%prep
19082N/A%setup -q
19082N/A%patch1 -p1
19082N/A
19082N/A%build
19082N/A%ifos linux
19082N/Aif [ -x /usr/bin/getconf ]; then
19082N/A CPUS=`getconf _NPROCESSORS_ONLN`
19082N/Afi
19082N/A%else
19082N/A CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
19082N/A%endif
19082N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
19082N/A CPUS=1
19082N/Afi
19082N/A
19082N/ACFLAGS="$RPM_OPT_FLAGS"
19082N/A
19082N/Aaclocal $ACLOCAL_FLAGS
19082N/Alibtoolize --force --copy
19082N/Aautoheader
19082N/Aautoconf
19082N/Aautomake
19082N/A./configure --prefix=%{_prefix} \
19082N/A --sysconfdir=%{_sysconfdir} \
19082N/A --mandir=%{_mandir} \
19082N/A --libdir=%{_libdir} \
19082N/A --bindir=%{_bindir}
19082N/Amake -j $CPUS
19082N/A
19082N/A%install
19082N/Aexport GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
19082N/Amake DESTDIR=$RPM_BUILD_ROOT install
19082N/Aunset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
19082N/Arm $RPM_BUILD_ROOT%{_libdir}/*.a $RPM_BUILD_ROOT%{_libdir}/*.la
19082N/A
19082N/A
19082N/A%files
19082N/A%defattr(-, root, root)
19082N/A
19082N/A%doc AUTHORS ChangeLog NEWS README COPYING.LIB
19082N/A%{_libdir}/lib*.so*
19082N/A%{_datadir}/libxklavier
19082N/A%{_mandir}/man3/*
19082N/A
19082N/A%files devel
19082N/A%defattr(-, root, root)
19082N/A
19082N/A%{_libdir}/pkgconfig/*.pc
19082N/A%{_includedir}/*
19082N/A%{_datadir}/gtk-doc/html/libxklavier
19082N/A
19082N/A%changelog
20916N/A* Thu May 17 2012 - brian.cameron@oracle.com
20916N/A- Bump to 5.2.1.
20903N/A* Wed May 02 2012 - brian.cameron@oracle.com
20903N/A- Bump to 5.2.
20783N/A* Wed Jul 06 2011 - brian.cameron@oracle.com
20783N/A- Bump to 5.1.
19082N/A* Mon Aug 02 2010 - javier.acosta@sun.com
19082N/A- Initial version