Name: gnome-common
License: GPL
Group: System/Libraries
BuildArchitectures: noarch
Version: 2.4.0
Release: 31
Distribution: Java Desktop System, Release 3
Vendor: Sun Microsystems, Inc.
Summary: Multiply used files used by the GNOME 2.0 platform
Source: http://ftp.gnome.org/pub/GNOME/sources/gnome-common/2.4/%{name}-%{version}.tar.bz2
Source1: l10n-configure.sh
Patch1: gnome-common-01-automake.diff
Patch2: gnome-common-02-solarisfind.diff
URL: http://www.gnome.org
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Docdir: %{_defaultdocdir}/%{name}
Autoreqprov: on
%description
gnome-common includes files used by pretty much every GNOME 2.0 application.
%prep
%setup -q
bash -x %SOURCE1
%patch1 -p1
%patch2 -p1
%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
aclocal
automake -a -c -f
autoconf
CFLAGS="$RPM_OPT_FLAGS" ./configure $MYARCH_FLAGS \
--enable-platform-gnome-2 \
--prefix=%{_prefix} \
--sysconfdir=%{_sysconfdir}
make -j $CPUS
%install
make prefix=$RPM_BUILD_ROOT%{_prefix} sysconfdir=$RPM_BUILD_ROOT%{_sysconfdir} install
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr (-, root, root)
%{_bindir}/*
%{_datadir}/aclocal/gnome-macros/*
%{_datadir}/aclocal/gnome2-macros/*
%{_datadir}/gnome-common
%changelog
* Thu Jan 27 2005 - [email protected]
- added patch 2 to fix autogen.sh so it works with Solaris find.
* Wed Jan 04 2005 - [email protected]
- added patch 1 to fix bug #6206322
* Wed Jul 07 2004 - [email protected]
- added "-j $CPUS" to make to speed up builds
* Wed Feb 18 2004 - [email protected]
- Distro to Cinnabar
* Tue Oct 21 2003 - [email protected]
- Remove the games m4 macro patch, since we're
moving to 2.4
* Fri Oct 10 2003 - [email protected]
- include %_datadir/gnome-common
- use _datadir instead of _prefix/share
* Mon Oct 06 2003 - [email protected]
- Updated 2.4 tarball for Quicksilver.
* Tue Jul 08 2003 - [email protected]
- Add in some gnome-games m4 macros
* Thu May 13 2003 - [email protected]
- Initial Sun Release