9397
|
1 |
#
|
|
2 |
# spec file for package blueprint
|
|
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: blueprint
|
|
11 |
Summary: Engine for GTK2 Blue Print Theme
|
11390
|
12 |
# NOTE: If the version is bumped the new tarball must be uploaded to the
|
|
13 |
# Sun Download Center. Contact GNOME RE for assistance.
|
9397
|
14 |
%ifos solaris
|
10299
|
15 |
Version: 0.9.20
|
9397
|
16 |
%define tarball_version %{version}
|
|
17 |
%else
|
|
18 |
Version: 0.9.16
|
|
19 |
%define tarball_version %{version}-os
|
|
20 |
%endif
|
|
21 |
Release: 41
|
|
22 |
License: LGPL
|
|
23 |
Distribution: Java Desktop System
|
|
24 |
Vendor: Sun Microsystems, Inc.
|
|
25 |
Group: System/GUI/GNOME
|
|
26 |
Source: http://dlc.sun.com/osol/jds/downloads/extras/%{name}-%{tarball_version}.tar.bz2
|
|
27 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
28 |
URL: http://www.sun.com/software/javadesktopsystem/
|
|
29 |
|
|
30 |
%define gtk2_version 2.4.0
|
|
31 |
%define intltool_version 0.30
|
|
32 |
BuildRequires: gtk2 >= %{gtk2_version}
|
|
33 |
BuildRequires: intltool >= %{intltool_version}
|
|
34 |
|
|
35 |
%description
|
|
36 |
This package contains the Blueprint theme engine for GTK2
|
|
37 |
|
|
38 |
%prep
|
|
39 |
%setup -q -n %name-%tarball_version
|
|
40 |
|
|
41 |
%build
|
|
42 |
%ifos linux
|
|
43 |
if [ -x /usr/bin/getconf ]; then
|
|
44 |
CPUS=`getconf _NPROCESSORS_ONLN`
|
|
45 |
fi
|
|
46 |
%else
|
|
47 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
|
48 |
%endif
|
|
49 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
50 |
CPUS=1
|
|
51 |
fi
|
|
52 |
|
|
53 |
libtoolize --force
|
10395
|
54 |
intltoolize --force --copy --automake
|
9397
|
55 |
aclocal $ACLOCAL_FLAGS -I .
|
|
56 |
automake -a -c -f
|
|
57 |
autoconf
|
9926
|
58 |
export CFLAGS="%optflags"
|
|
59 |
export LDFLAGS="%_ldflags"
|
|
60 |
./configure --prefix=%{_prefix} \
|
|
61 |
--libdir=%{_libdir} \
|
9397
|
62 |
--sysconfdir=%{_sysconfdir}
|
|
63 |
make -j $CPUS
|
|
64 |
cd -
|
|
65 |
|
|
66 |
%install
|
|
67 |
make DESTDIR=$RPM_BUILD_ROOT install
|
|
68 |
mkdir -p $RPM_BUILD_ROOT%{_defaultdocdir}/blueprint-engine
|
|
69 |
cp -p AUTHORS COPYING ChangeLog NEWS README $RPM_BUILD_ROOT%{_defaultdocdir}/blueprint-engine
|
|
70 |
|
|
71 |
# Hack to install images into %{_datadir}/pixmaps with blueprint prefix
|
|
72 |
mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps
|
|
73 |
mkdir -p /tmp/blueprint-pixmaps
|
|
74 |
installfiles=`find icons/48x48 -name "*.png"`
|
|
75 |
for i in $installfiles; do
|
9926
|
76 |
echo -- Installing $i to %{_datadir}/pixmaps with blueprint- prefix ;
|
|
77 |
i_base=`basename $i`
|
|
78 |
cp $i $RPM_BUILD_ROOT%{_datadir}/pixmaps/blueprint-${i_base}
|
9397
|
79 |
done;
|
|
80 |
|
|
81 |
rm $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/*/engines/*.a
|
|
82 |
rm $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/*/engines/*.la
|
|
83 |
|
|
84 |
%clean
|
|
85 |
rm -rf $RPM_BUILD_ROOT
|
|
86 |
|
|
87 |
%files
|
|
88 |
%defattr(-, root, root)
|
|
89 |
%doc AUTHORS COPYING ChangeLog NEWS README
|
|
90 |
%{_defaultdocdir}/blueprint-engine/ChangeLog
|
|
91 |
%{_defaultdocdir}/blueprint-engine/AUTHORS
|
|
92 |
%{_defaultdocdir}/blueprint-engine/COPYING
|
|
93 |
%{_defaultdocdir}/blueprint-engine/README
|
|
94 |
%{_defaultdocdir}/blueprint-engine/NEWS
|
|
95 |
%{_libdir}/gtk-2.0/*/engines/*.so
|
|
96 |
%{_datadir}/themes/*
|
|
97 |
%{_datadir}/icons/*
|
|
98 |
%{_datadir}/locale/*
|
|
99 |
%{_datadir}/pixmaps/*
|
|
100 |
|
|
101 |
%changelog
|
10395
|
102 |
* Wed Aug 29 2007 - [email protected]
|
|
103 |
- Add intltoolize calls to update intltool scripts.
|
9926
|
104 |
* Fri May 18 2007 - [email protected]
|
|
105 |
- set CFLAGS/LDFLAGS and configure options such that we can use this spec
|
|
106 |
file for the 64-bit build too
|
|
107 |
- write a nicer loop for copying icons with blueprint- prefix
|
9397
|
108 |
* Fri Jun 23 2006 - [email protected]
|
|
109 |
- Change "cp -a" to "cp -p" so it works with Solaris cp command.
|
|
110 |
* Thu Feb 10 2005 - [email protected]
|
|
111 |
- Bumped the tarball to include icons required to fix
|
|
112 |
#5088581.
|
|
113 |
* Mon Jan 31 2005 - [email protected]
|
|
114 |
- Updated %build to stop build error
|
|
115 |
* Fri Jan 28 2005 - [email protected]
|
|
116 |
- Bumped the tarball which includes the fix for #5088581 and
|
|
117 |
merged blueprint-01-g11n-icon.diff in the tarball.
|
|
118 |
* Fri Jan 28 2005 - [email protected]
|
|
119 |
- Updated %build to add automake
|
|
120 |
* Wed Jan 12 2005 - [email protected]
|
|
121 |
- Removed blueprint-01-g11n-alllinguas.diff. Use l10n-configure.sh
|
|
122 |
- Added blueprint-01-g11n-icon.diff to fix 5083114
|
|
123 |
* Thu Sep 16 2004 - [email protected]
|
|
124 |
- Added blueprint-01-g11n-alllinguas.diff to include cs,hu linguas
|
|
125 |
* Thu Jul 08 2004 - [email protected]
|
|
126 |
- Updated l10n content to blueprint-l10n-po-1.2.tar.bz2
|
|
127 |
* Wed Jul 07 2004 - [email protected]
|
|
128 |
- ported to rpm4
|
|
129 |
* Wed Jul 07 2004 - [email protected]
|
|
130 |
- added "-j $CPUS" to make to speed up builds
|
|
131 |
* Wed Jun 2 2004 - [email protected]
|
|
132 |
- Bump to 0.9.5
|
|
133 |
* Wed May 12 2004 - [email protected]
|
|
134 |
- Updated l10n content to blueprint-l10n-po-1.1.tar.bz2
|
|
135 |
* Wed Mar 31 2004 - [email protected]
|
|
136 |
- replace tar jxf with the more solaris friendly
|
|
137 |
bzcat piped through tar
|
|
138 |
* Mon Mar 29 2004 - [email protected]
|
|
139 |
- Adding blueprint-l10n-po-1.0.tar.bz2 l10n content
|
|
140 |
* Fri Mar 12 2004 Niall Power <[email protected]>
|
|
141 |
- remove "rm -rf" evil from the install stage
|
|
142 |
* Mon Feb 16 2004 Niall Power <[email protected]>
|
|
143 |
- add ACLOCAL_FLAGS to aclocal invocation
|
|
144 |
- do not use the -printf argument with find - it
|
|
145 |
doesn't work on Solaris (pipe through sed instead)
|
|
146 |
* Fri Jan 19 2004 Takao Fujiwara <[email protected]>
|
|
147 |
- Modified blueprint.spec for i18n
|
|
148 |
* Thu Aug 14 2003 - <[email protected]>
|
|
149 |
- remove *.a, *.la
|
|
150 |
* Wed Jul 02 2003 Erwann Chenede - <[email protected]>
|
|
151 |
- cleanup + icons theme addition
|
|
152 |
* Mon May 12 2003 Erwann Chenede - <[email protected]>
|
|
153 |
- initial implementation of the spec file
|
|
154 |
|