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