gnome-backgrounds.spec
author dcarbery
Mon, 23 Oct 2006 12:46:17 +0000
branchgnome-2-14
changeset 19195 352a4716f1f3
parent 7279 e6d86084bb59
child 7706 2582c8fc8329
permissions -rw-r--r--
2006-10-23 Damien Carbery <[email protected]> * docs/ssa/*: Remove these, as they're now up on the JDS project pages under 'Tasks/Single Sys Admin'.

#
# spec file for package gnome-backgrounds
#
# Copyright (c) 2005 Sun Microsystems, Inc.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#

Name:			gnome-backgrounds
License:		GPL
Group:			System/GUI/GNOME
Version:		2.14.1
Release:		3
Distribution:		Java Desktop System
Vendor:			Sun Microsystems, Inc.
Summary:		Selection of backgrounds for the GNOME desktop
Source:			http://ftp.gnome.org/pub/GNOME/sources/%{name}/2.14/%{name}-%{version}.tar.bz2
Source1:		opensolaris-backgrounds-0.2.tar.bz2
Patch1:			gnome-backgrounds-01-sun-backgrounds.diff 
URL:			http://www.gnome.org
BuildRoot:		%{_tmppath}/%{name}-%{version}-build
BuildArchitectures:     noarch
Docdir:			%{_defaultdocdir}/%{name}
Autoreqprov:		on

Requires:	glib2
BuildRequires:  intltool
BuildRequires:  glib2

%description
Selection of backgrounds for the GNOME desktop.

%prep
%setup -q
bzcat %SOURCE1 | tar xf -
%patch1 -p1
# Fix 326430.
for po in po/*.po; do
  dos2unix -ascii $po $po
done

%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
intltoolize --copy --force --automake
aclocal $ACLOCAL_FLAGS 
automake -a -c -f
autoconf
CFLAGS="$RPM_OPT_FLAGS" \
  ./configure \
	--prefix=%{_prefix} \
	--sysconfdir=%{_sysconfdir} \
	--mandir=%{_mandir}
make -j $CPUS

%install
make -i install DESTDIR=$RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr (-, root, root)
%{_datadir}/gnome-background-properties
%{_datadir}/pixmaps/backgrounds/
%{_datadir}/locale/*/LC_MESSAGES/*.mo

%changelog
* Thu Apr 13 2006 - [email protected]
- Bump to 2.14.1.

* Thu Apr 13 2006 - [email protected]
- replace sed with dos2unix to work around ^M problem in SVN

* Mon Mar 13 2006 - [email protected]
- Bump to 2.14.0.

* Wed Mar  1 2006 - [email protected]
- use sed instead of dos2unix for converting the po files, because dos2unix
  corrupts some UTF-8 strings

* Wed Mar  1 2006 - [email protected]
- Bump to 2.13.92.

* Tue Feb 14 2006 - [email protected]
- Bump to 2.13.91.

* Tue Jan 31 2006 - [email protected]
- Bump to 2.13.90.
- Add intltoolize call.

* Tue Jan 10 2006 - [email protected]
- dos2unix vi.po to fix 326430.

* Wed Dec 21 2005 - [email protected]
- Bump to 2.12.2.

* Mon Aug 15 2005 - [email protected]
- Bump to 2.10.2.

* Fri Mar 20 2005 - [email protected]
- Install the sun backgrounds here

* Fri Mar 13 2005 - [email protected]
- Initial import of gnome-backgrounds