19272
|
1 |
#
|
|
2 |
# spec file for package gnome-backgrounds
|
|
3 |
#
|
19693
|
4 |
# Copyright (c) 2005 Sun Microsystems, Inc.
|
19272
|
5 |
# This file and all modifications and additions to the pristine
|
|
6 |
# package are under the same license as the package itself.
|
|
7 |
#
|
|
8 |
|
|
9 |
|
19340
|
10 |
Name: gnome-backgrounds
|
|
11 |
License: GPL
|
|
12 |
Group: System/GUI/GNOME
|
|
13 |
Version: 2.10.1
|
|
14 |
Release: 2
|
19693
|
15 |
Distribution: Java Desktop System
|
19340
|
16 |
Vendor: Sun Microsystems, Inc.
|
|
17 |
Summary: Selection of backgrounds for the GNOME desktop
|
19693
|
18 |
Source: http://ftp.gnome.org/pub/GNOME/sources/%{name}/2.10/%{name}-%{version}.tar.bz2
|
19933
|
19 |
Source1: opensolaris-backgrounds-0.1.tar.bz2
|
19340
|
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
|
19272
|
26 |
|
19383
|
27 |
Requires: glib2
|
19272
|
28 |
BuildRequires: intltool
|
19383
|
29 |
BuildRequires: glib2
|
19272
|
30 |
|
|
31 |
%description
|
|
32 |
Selection of backgrounds for the GNOME desktop.
|
|
33 |
|
|
34 |
%prep
|
|
35 |
%setup -q
|
19719
|
36 |
bzcat %SOURCE1 | tar xf -
|
19340
|
37 |
%patch1 -p1
|
19846
|
38 |
# Hack to remove ^M in last line of vi.po. Broken in version 2.10.1
|
|
39 |
perl -pi -e 's/
|
|
40 |
$//' po/vi.po
|
19272
|
41 |
|
|
42 |
%build
|
|
43 |
%ifos linux
|
|
44 |
if [ -x /usr/bin/getconf ]; then
|
|
45 |
CPUS=`getconf _NPROCESSORS_ONLN`
|
|
46 |
fi
|
|
47 |
%else
|
|
48 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
|
49 |
%endif
|
|
50 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
51 |
CPUS=1
|
|
52 |
fi
|
|
53 |
|
|
54 |
libtoolize --force
|
|
55 |
aclocal $ACLOCAL_FLAGS
|
|
56 |
automake -a -c -f
|
|
57 |
autoconf
|
|
58 |
CFLAGS="$RPM_OPT_FLAGS" \
|
|
59 |
./configure \
|
|
60 |
--prefix=%{_prefix} \
|
|
61 |
--sysconfdir=%{_sysconfdir} \
|
|
62 |
--mandir=%{_mandir}
|
|
63 |
make -j $CPUS
|
|
64 |
|
|
65 |
%install
|
|
66 |
make -i install DESTDIR=$RPM_BUILD_ROOT
|
|
67 |
|
|
68 |
%clean
|
|
69 |
rm -rf $RPM_BUILD_ROOT
|
|
70 |
|
|
71 |
%files
|
|
72 |
%defattr (-, root, root)
|
|
73 |
%{_datadir}/gnome-background-properties
|
|
74 |
%{_datadir}/pixmaps/backgrounds/
|
19340
|
75 |
%{_datadir}/locale/*/LC_MESSAGES/*.mo
|
19272
|
76 |
|
|
77 |
%changelog
|
19340
|
78 |
* Fri Mar 20 2005 - [email protected]
|
|
79 |
- Install the sun backgrounds here
|
|
80 |
|
19272
|
81 |
* Fri Mar 13 2005 - [email protected]
|
|
82 |
- Initial import of gnome-backgrounds
|