rarian.spec revision 11068
#
# spec file for package rarian
#
# Copyright (c) 2007 Sun Microsystems, Inc.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Owner: mattman
#
# bugdb: bugzilla.freedesktop.org
#
Name: rarian
License: GPL
Group: System/GUI/GNOME
Version: 0.5.8
Release: 1
Distribution: Java Desktop System
Vendor: Sun Microsystems, Inc.
Summary: Documentation meta-data library
Source: http://ftp.gnome.org/pub/GNOME/sources/%{name}/0.5/%{name}-%{version}.tar.bz2
URL: www.freedesktop.org
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Autoreqprov: on
%description
Rarian (formerly Spoon) is a documentation meta-data library, designed as a
replacement for Scrollkeeper.
%prep
%setup -q
%build
%ifos linux
if [ -x /usr/bin/getconf ]; then
CPUS=`getconf _NPROCESSORS_ONLN`
fi
%else
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
%endif
if test "x$CPUS" = "x" -o $CPUS = 0; then
CPUS=1
fi
#libtoolize --force
#glib-gettextize -f
#intltoolize --force --copy
#aclocal $ACLOCAL_FLAGS
#autoheader
#automake -a -c -f
#autoconf
./configure \
--prefix=%{_prefix} \
--datadir=%{_datadir} \
--libexecdir=%{_libexecdir} \
--localstatedir=/var
make -j $CPUS
%install
make install DESTDIR=$RPM_BUILD_ROOT
rm $RPM_BUILD_ROOT%{_libdir}/librarian.*a
%clean
rm -rf $RPM_BUILD_ROOT
%changelog
* Wed Aug 15 2007 - damien.carbery@sun.com
- Bump to 0.5.8. Remove upstream patch, 01-solaris-build.
* Wed Aug 01 2007 - damien.carbery@sun.com
- Initial version.