Home | History | Annotate | Download | only in gnome-2-16
      1 #
      2 # spec file for package gnome-backgrounds
      3 #
      4 # Copyright (c) 2005 Sun Microsystems, Inc.
      5 # This file and all modifications and additions to the pristine
      6 # package are under the same license as the package itself.
      7 #
      8 # Owner: erwannc
      9 #
     10 Name:			gnome-backgrounds
     11 License:		GPL
     12 Group:			System/GUI/GNOME
     13 Version:		2.16.1
     14 Release:		3
     15 Distribution:		Java Desktop System
     16 Vendor:			Sun Microsystems, Inc.
     17 Summary:		Selection of backgrounds for the GNOME desktop
     18 Source:			http://ftp.gnome.org/pub/GNOME/sources/%{name}/2.16/%{name}-%{version}.tar.bz2
     19 Source1:		opensolaris-backgrounds-0.2.tar.bz2
     20 Patch1:			gnome-backgrounds-01-sun-backgrounds.diff 
     21 URL:			http://www.gnome.org
     22 BuildRoot:		%{_tmppath}/%{name}-%{version}-build
     23 BuildArchitectures:     noarch
     24 Docdir:			%{_defaultdocdir}/%{name}
     25 Autoreqprov:		on
     26 
     27 Requires:	glib2
     28 BuildRequires:  intltool
     29 BuildRequires:  glib2
     30 
     31 %description
     32 Selection of backgrounds for the GNOME desktop.
     33 
     34 %prep
     35 %setup -q
     36 bzcat %SOURCE1 | tar xf -
     37 %patch1 -p1
     38 # Fix 326430.
     39 for po in po/*.po; do
     40   dos2unix -ascii $po $po
     41 done
     42 
     43 %build
     44 %ifos linux
     45 if [ -x /usr/bin/getconf ]; then
     46   CPUS=`getconf _NPROCESSORS_ONLN`
     47 fi
     48 %else
     49   CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
     50 %endif
     51 if test "x$CPUS" = "x" -o $CPUS = 0; then
     52   CPUS=1
     53 fi
     54 
     55 libtoolize --force
     56 intltoolize --copy --force --automake
     57 aclocal $ACLOCAL_FLAGS 
     58 automake -a -c -f
     59 autoconf
     60 CFLAGS="$RPM_OPT_FLAGS" \
     61   ./configure \
     62 	--prefix=%{_prefix} \
     63 	--sysconfdir=%{_sysconfdir} \
     64 	--mandir=%{_mandir}
     65 make -j $CPUS
     66 
     67 %install
     68 make -i install DESTDIR=$RPM_BUILD_ROOT
     69 
     70 %clean
     71 rm -rf $RPM_BUILD_ROOT
     72 
     73 %files
     74 %defattr (-, root, root)
     75 %{_datadir}/gnome-background-properties
     76 %{_datadir}/pixmaps/backgrounds/
     77 %{_datadir}/locale/*/LC_MESSAGES/*.mo
     78 
     79 %changelog
     80 * Mon Oct 02 2006 - damien.carbery@sun.com
     81 - Bump to 2.16.1.
     82 
     83 * Tue Aug 22 2006 - damien.carbery@sun.com
     84 - Bump to 2.15.92.
     85 
     86 * Fri Jul 21 2006 - damien.carbery@sun.com
     87 - Bump to 2.14.2.1.
     88 
     89 * Thu Apr 13 2006 - damien.carbery@sun.com
     90 - Bump to 2.14.1.
     91 
     92 * Thu Apr 13 2006 - dermot.mccluskey@sun.com
     93 - replace sed with dos2unix to work around ^M problem in SVN
     94 
     95 * Mon Mar 13 2006 - damien.carbery@sun.com
     96 - Bump to 2.14.0.
     97 
     98 * Wed Mar  1 2006 - laca@sun.com
     99 - use sed instead of dos2unix for converting the po files, because dos2unix
    100   corrupts some UTF-8 strings
    101 
    102 * Wed Mar  1 2006 - damien.carbery@sun.com
    103 - Bump to 2.13.92.
    104 
    105 * Tue Feb 14 2006 - damien.carbery@sun.com
    106 - Bump to 2.13.91.
    107 
    108 * Tue Jan 31 2006 - damien.carbery@sun.com
    109 - Bump to 2.13.90.
    110 - Add intltoolize call.
    111 
    112 * Tue Jan 10 2006 - damien.carbery@sun.com
    113 - dos2unix vi.po to fix 326430.
    114 
    115 * Wed Dec 21 2005 - damien.carbery@sun.com
    116 - Bump to 2.12.2.
    117 
    118 * Mon Aug 15 2005 - damien.carbery@sun.com
    119 - Bump to 2.10.2.
    120 
    121 * Fri Mar 20 2005 - glynn.foster@sun.com
    122 - Install the sun backgrounds here
    123 
    124 * Fri Mar 13 2005 - glynn.foster@sun.com
    125 - Initial import of gnome-backgrounds
    126