base-specs/gnome-backgrounds.spec
author dcarbery
Fri, 04 Jan 2008 18:10:30 +0000
changeset 11390 5d4f02562c57
parent 10598 2be9bf4377fc
child 11491 a18850f120cf
permissions -rw-r--r--
2008-01-04 Damien Carbery <[email protected]> * base-specs/blueprint.spec, base-specs/gnome-backgrounds.spec, base-specs/nautilus.spec, base-specs/nimbus.spec, base-specs/opensolaris-gdm-themes.spec, base-specs/ospm.spec, base-specs/sun-gdm-themes.spec, SUNWsolaris-devel-docs.spec, SUNWgnome-dtlogin-integration.spec SUNWgnome-print.spec, closed/SUNWgnome-solaris-branding.spec: Add note to remind people to upload new tarballs to the Sun Download Center, or ask GNOME RE for assistance.

#
# spec file for package gnome-backgrounds
#
# Copyright 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: erwannc
#
Name:			gnome-backgrounds
License:		GPL
Group:			System/GUI/GNOME
Version:		2.20.0
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.20/%{name}-%{version}.tar.bz2
%if %option_with_sun_branding
# NOTE: If the version is bumped the new tarball must be uploaded to the
#       Sun Download Center. Contact GNOME RE for assistance.
Source1:		http://dlc.sun.com/osol/jds/downloads/extras/opensolaris-backgrounds-0.2.tar.bz2
#owner:erwannc date:2005-12-02 type:branding
Patch1:			gnome-backgrounds-01-sun-backgrounds.diff 
%endif
%if %option_with_indiana_branding
Source1:		GNOMEBluePreview.png
#owner:erwannc date:2007-10-02 type:branding
Patch1:			gnome-backgrounds-01-indiana-backgrounds.diff 
%endif
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
%if %option_with_sun_branding
bzcat %SOURCE1 | tar xf -
%patch1 -p1
%endif
%if %option_with_indiana_branding
%patch1 -p1
cp %SOURCE1 indiana/
%endif
# 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
* Wed Oct  3 2007 - [email protected]
- add indiana background(s) patch and Source
* Fri Sep 28 2007 - [email protected]
- do not install sun branded desktop wallpapers when sun branding is
  not requested
* Tue Sep 18 2007 - [email protected]
- Bump to 2.20.0.
* Mon Jul 02 2007 - [email protected]
- Bump to 2.18.3.
* Mon Nov 27 2006 - [email protected]
- Bump to 2.16.2.
* Mon Oct 02 2006 - [email protected]
- Bump to 2.16.1.
* Tue Aug 22 2006 - [email protected]
- Bump to 2.15.92.
* Fri Jul 21 2006 - [email protected]
- Bump to 2.14.2.1.
* 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