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