11491
|
1 |
#
|
|
2 |
# spec file for package opensolaris-backgrounds
|
|
3 |
#
|
|
4 |
# Copyright 2008 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 |
#
|
16434
|
8 |
%define owner erwannc
|
17881
|
9 |
|
|
10 |
%define OSR developed in the open, no OSR needed:n/a
|
|
11 |
|
11491
|
12 |
Name: opensolaris-backgrounds
|
|
13 |
License: GPL
|
|
14 |
Group: System/GUI/GNOME
|
17370
|
15 |
Version: 0.8
|
11491
|
16 |
Release: 1
|
|
17 |
Distribution: Java Desktop System
|
|
18 |
Vendor: Sun Microsystems, Inc.
|
|
19 |
Summary: Selection of backgrounds for the OpenSolaris desktop
|
16024
|
20 |
Source: http://dlc.sun.com/osol/jds/downloads/extras/opensolaris-branding/%{name}-%{version}.tar.bz2
|
11491
|
21 |
URL: http://www.opensolaris.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 OpenSolaris desktop.
|
|
33 |
|
|
34 |
%prep
|
|
35 |
%setup -q
|
|
36 |
|
|
37 |
%build
|
|
38 |
%ifos linux
|
|
39 |
if [ -x /usr/bin/getconf ]; then
|
|
40 |
CPUS=`getconf _NPROCESSORS_ONLN`
|
|
41 |
fi
|
|
42 |
%else
|
|
43 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
|
44 |
%endif
|
|
45 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
46 |
CPUS=1
|
|
47 |
fi
|
|
48 |
|
|
49 |
CFLAGS="$RPM_OPT_FLAGS" \
|
|
50 |
./configure \
|
|
51 |
--prefix=%{_prefix} \
|
|
52 |
--sysconfdir=%{_sysconfdir} \
|
|
53 |
--mandir=%{_mandir}
|
|
54 |
make -j $CPUS
|
|
55 |
|
|
56 |
%install
|
|
57 |
make -i install DESTDIR=$RPM_BUILD_ROOT
|
|
58 |
|
|
59 |
%clean
|
|
60 |
rm -rf $RPM_BUILD_ROOT
|
|
61 |
|
|
62 |
%files
|
|
63 |
%defattr (-, root, root)
|
|
64 |
%{_datadir}/gnome-background-properties
|
|
65 |
%{_datadir}/pixmaps/backgrounds/
|
|
66 |
%{_datadir}/locale/*/LC_MESSAGES/*.mo
|
|
67 |
|
|
68 |
%changelog
|
13327
|
69 |
* Fir Aug 29 2008 - [email protected]
|
|
70 |
- Bump to 0.4.
|
11491
|
71 |
* Mon Jan 21 2008 - [email protected]
|
|
72 |
- Initial version
|