author | chrisk |
Mon, 31 Aug 2009 16:23:04 +0000 | |
changeset 16434 | f21f22550fe9 |
parent 16429 | fe72291e50fd |
child 16713 | 3b571c9928ba |
permissions | -rw-r--r-- |
9397 | 1 |
# |
2 |
# spec file for package nimbus |
|
3 |
# |
|
4 |
# Copyright (c) 2006 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 |
9397 | 9 |
# |
16429 | 10 |
|
11 |
%define OSR developed in the open, no OSR needed:0 |
|
12 |
||
9397 | 13 |
Name: nimbus |
14 |
Summary: Engine for GTK2 Nimbus Theme |
|
11390 | 15 |
# NOTE: If the version is bumped the new tarball must be uploaded to the |
16 |
# Sun Download Center. Contact GNOME RE for assistance. |
|
16409 | 17 |
Version: 0.1.3 |
9397 | 18 |
%define tarball_version %{version} |
19 |
Release: 1 |
|
20 |
License: LGPL |
|
21 |
Distribution: Java Desktop System |
|
22 |
Vendor: Sun Microsystems, Inc. |
|
23 |
Group: System/GUI/GNOME |
|
13703
e6076c08b27e
base-specs/nimbus.spec: Fix download URL. Nimbus is in directory nimbus now.
pale
parents:
13685
diff
changeset
|
24 |
Source: http://dlc.sun.com/osol/jds/downloads/extras/nimbus/%{name}-%{tarball_version}.tar.bz2 |
15598 | 25 |
Source1: nimbus-media-play-rtl.png |
9397 | 26 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
27 |
URL: http://www.sun.com/software/javadesktopsystem/ |
|
28 |
#owner:erwannc date:2006-09-20 type:branding |
|
29 |
Patch1: nimbus-01-icon-name-mapping-hack.diff |
|
15598 | 30 |
## %SOURCE1 .png file needs to be upstreamed when the %patch2 |
31 |
## rtl-icons.diff is upstreamed. |
|
32 |
#owner:fujiwara date:2009-04-10 type:bug bugster:6675046 |
|
33 |
Patch2: nimbus-02-rtl-icons.diff |
|
15665 | 34 |
#owner:fujiwara date:2009-04-22 type:bug bugster:6641239 |
35 |
Patch3: nimbus-03-rtl-option-menu.diff |
|
9397 | 36 |
|
37 |
%define gtk2_version 2.4.0 |
|
38 |
%define intltool_version 0.30 |
|
39 |
BuildRequires: gtk2 >= %{gtk2_version} |
|
40 |
BuildRequires: intltool >= %{intltool_version} |
|
41 |
||
42 |
%description |
|
43 |
This package contains the Nimbus theme engine for GTK2 |
|
44 |
||
45 |
%prep |
|
46 |
%setup -q -n %name-%tarball_version |
|
15598 | 47 |
cp %SOURCE1 gtk-engine/gtk-2.0/media-play-rtl.png |
9397 | 48 |
%patch1 -p1 |
15598 | 49 |
%patch2 -p1 |
15665 | 50 |
%patch3 -p1 |
9397 | 51 |
|
52 |
%build |
|
53 |
%ifos linux |
|
54 |
if [ -x /usr/bin/getconf ]; then |
|
55 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
56 |
fi |
|
57 |
%else |
|
58 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
|
59 |
%endif |
|
60 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
61 |
CPUS=1 |
|
62 |
fi |
|
63 |
||
64 |
libtoolize --force |
|
65 |
aclocal $ACLOCAL_FLAGS -I . |
|
66 |
automake -a -c -f |
|
67 |
autoconf |
|
9926 | 68 |
export CFLAGS="%optflags" |
69 |
export LDFLAGS="%_ldflags" |
|
9397 | 70 |
./autogen.sh --prefix=%{_prefix} \ |
9926 | 71 |
--libdir=%{_libdir} \ |
9397 | 72 |
--sysconfdir=%{_sysconfdir} |
73 |
make -j $CPUS |
|
74 |
cd - |
|
75 |
||
76 |
%install |
|
77 |
make DESTDIR=$RPM_BUILD_ROOT install |
|
78 |
rm $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/*/engines/*.a |
|
79 |
rm $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/*/engines/*.la |
|
80 |
||
81 |
%clean |
|
82 |
rm -rf $RPM_BUILD_ROOT |
|
83 |
||
84 |
%files |
|
85 |
%defattr(-, root, root) |
|
86 |
%{_libdir}/gtk-2.0/*/engines/*.so |
|
87 |
%{_datadir}/themes/* |
|
88 |
%{_datadir}/icons/* |
|
89 |
%{_datadir}/locale/* |
|
90 |
%{_datadir}/pixmaps/* |
|
91 |
||
92 |
%changelog |
|
15665 | 93 |
* Wed Apr 22 2009 - [email protected] |
94 |
- Add patch nimbus-03-rtl-option-menu.diff CR 6641239. Fixes RTL for |
|
95 |
GtkComboBox and GtkOptionMenu. |
|
15598 | 96 |
* Fri Apr 10 2009 - [email protected] |
97 |
- Add patch nimbus-02-rtl-icons.diff CR 6675046 |
|
98 |
- Add media-play-rtl.png in ext-sources. |
|
13122 | 99 |
* Thu Aug 14 2008 - [email protected] |
100 |
- bumped to 0.0.17 |
|
9926 | 101 |
* Fri May 18 2007 - [email protected] |
102 |
- set CFLAGS/LDFLAGS and configure options such that we can use this spec |
|
103 |
file for the 64-bit build too |
|
9397 | 104 |
* Fri Jul 21 2006 - [email protected] |
105 |
- Add patch to comment out the redefine of an enum. |
|
106 |
* Mon May 12 2006 Erwann Chenede - <[email protected]> |
|
107 |
- initial implementation of the spec file |