author | dcarbery |
Fri, 24 Nov 2006 16:37:59 +0000 | |
branch | 217update |
changeset 19096 | d542fc2c823e |
parent 8529 | ace8e9b8a2b7 |
child 8974 | 4fff55910269 |
permissions | -rw-r--r-- |
312 | 1 |
# |
2 |
# spec file for package blueprint |
|
116 | 3 |
# |
5518 | 4 |
# Copyright (c) 2005 Sun Microsystems, Inc. |
116 | 5 |
# This file and all modifications and additions to the pristine |
6 |
# package are under the same license as the package itself. |
|
7 |
# |
|
8529 | 8 |
# Owner: erwannc |
9 |
# |
|
116 | 10 |
Name: blueprint |
1325 | 11 |
Summary: Engine for GTK2 Blue Print Theme |
4669
64229e1be6f4
rollback to Erwann's version with the %ifos'd Version tag :/
laca
parents:
4645
diff
changeset
|
12 |
%ifos solaris |
6095 | 13 |
Version: 0.9.16-os |
6923 | 14 |
%define tarball_version %{version} |
4669
64229e1be6f4
rollback to Erwann's version with the %ifos'd Version tag :/
laca
parents:
4645
diff
changeset
|
15 |
%else |
5336 | 16 |
Version: 0.9.16 |
6923 | 17 |
%define tarball_version %{version}-os |
4669
64229e1be6f4
rollback to Erwann's version with the %ifos'd Version tag :/
laca
parents:
4645
diff
changeset
|
18 |
%endif |
5518 | 19 |
Release: 41 |
1022 | 20 |
License: LGPL |
5518 | 21 |
Distribution: Java Desktop System |
677 | 22 |
Vendor: Sun Microsystems, Inc. |
312 | 23 |
Group: System/GUI/GNOME |
6923 | 24 |
Source: %{name}-%{tarball_version}.tar.bz2 |
116 | 25 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
5518 | 26 |
URL: http://www.sun.com/software/javadesktopsystem/ |
229 | 27 |
|
3628 | 28 |
%define gtk2_version 2.4.0 |
29 |
%define intltool_version 0.30 |
|
677 | 30 |
BuildRequires: gtk2 >= %{gtk2_version} |
1925 | 31 |
BuildRequires: intltool >= %{intltool_version} |
229 | 32 |
|
116 | 33 |
%description |
5518 | 34 |
This package contains the Blueprint theme engine for GTK2 |
116 | 35 |
|
36 |
%prep |
|
6923 | 37 |
%setup -q -n %name-%tarball_version |
116 | 38 |
|
39 |
%build |
|
3263 | 40 |
%ifos linux |
41 |
if [ -x /usr/bin/getconf ]; then |
|
42 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
43 |
fi |
|
44 |
%else |
|
3846 | 45 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
3263 | 46 |
%endif |
47 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
48 |
CPUS=1 |
|
49 |
fi |
|
50 |
||
5518 | 51 |
libtoolize --force |
52 |
aclocal $ACLOCAL_FLAGS -I . |
|
4958 | 53 |
automake -a -c -f |
4976 | 54 |
autoconf |
312 | 55 |
CFLAGS="$RPM_OPT_FLAGS" |
56 |
./configure --prefix=%{_prefix} \ |
|
57 |
--libdir=%{_prefix}/%_lib \ |
|
58 |
--sysconfdir=%{_sysconfdir} |
|
3263 | 59 |
make -j $CPUS |
116 | 60 |
cd - |
61 |
||
62 |
%install |
|
63 |
make DESTDIR=$RPM_BUILD_ROOT install |
|
64 |
mkdir -p $RPM_BUILD_ROOT%{_defaultdocdir}/blueprint-engine |
|
7506 | 65 |
cp -p AUTHORS COPYING ChangeLog NEWS README $RPM_BUILD_ROOT%{_defaultdocdir}/blueprint-engine |
116 | 66 |
|
1325 | 67 |
# Hack to install images into %{_datadir}/pixmaps with blueprint prefix |
68 |
mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps |
|
69 |
mkdir -p /tmp/blueprint-pixmaps |
|
70 |
installfiles=`find icons/48x48 -name "*.png"` |
|
71 |
for i in $installfiles; do |
|
72 |
echo '-- moving '$i ; |
|
73 |
cp $i /tmp/blueprint-pixmaps ; |
|
74 |
done; |
|
1714 | 75 |
installfiles=`find /tmp/blueprint-pixmaps -name "*.png" |sed 's/^\/tmp\/blueprint-pixmaps\///'` |
76 |
||
1325 | 77 |
for i in $installfiles; do |
78 |
echo '-- Installing '$i ; |
|
79 |
mv /tmp/blueprint-pixmaps/$i $RPM_BUILD_ROOT%{_datadir}/pixmaps/blueprint-$i ; |
|
80 |
done ; |
|
81 |
rm -rf /tmp/blueprint-pixmaps/ |
|
3628 | 82 |
rm $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/*/engines/*.a |
83 |
rm $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/*/engines/*.la |
|
1325 | 84 |
|
116 | 85 |
%clean |
86 |
rm -rf $RPM_BUILD_ROOT |
|
87 |
||
88 |
%files |
|
89 |
%defattr(-, root, root) |
|
405 | 90 |
%doc AUTHORS COPYING ChangeLog NEWS README |
116 | 91 |
%{_defaultdocdir}/blueprint-engine/ChangeLog |
92 |
%{_defaultdocdir}/blueprint-engine/AUTHORS |
|
93 |
%{_defaultdocdir}/blueprint-engine/COPYING |
|
94 |
%{_defaultdocdir}/blueprint-engine/README |
|
95 |
%{_defaultdocdir}/blueprint-engine/NEWS |
|
1058 | 96 |
%{_libdir}/gtk-2.0/*/engines/*.so |
405 | 97 |
%{_datadir}/themes/* |
397 | 98 |
%{_datadir}/icons/* |
1570 | 99 |
%{_datadir}/locale/* |
1325 | 100 |
%{_datadir}/pixmaps/* |
116 | 101 |
|
102 |
%changelog |
|
7506 | 103 |
* Fri Jun 23 2006 - [email protected] |
104 |
- Change "cp -a" to "cp -p" so it works with Solaris cp command. |
|
5047 | 105 |
* Thu Feb 10 2005 - [email protected] |
106 |
- Bumped the tarball to include icons required to fix |
|
107 |
#5088581. |
|
4976 | 108 |
* Mon Jan 31 2005 - [email protected] |
109 |
- Updated %build to stop build error |
|
4960 | 110 |
* Fri Jan 28 2005 - [email protected] |
111 |
- Bumped the tarball which includes the fix for #5088581 and |
|
112 |
merged blueprint-01-g11n-icon.diff in the tarball. |
|
4958 | 113 |
* Fri Jan 28 2005 - [email protected] |
114 |
- Updated %build to add automake |
|
4821 | 115 |
* Wed Jan 12 2005 - [email protected] |
116 |
- Removed blueprint-01-g11n-alllinguas.diff. Use l10n-configure.sh |
|
117 |
- Added blueprint-01-g11n-icon.diff to fix 5083114 |
|
3978
dc8c07ebb4af
Updating blueprint.spec to include blueprint-01-g11n-alllinguas.diff patch
yk150259
parents:
3858
diff
changeset
|
118 |
* Thu Sep 16 2004 - [email protected] |
dc8c07ebb4af
Updating blueprint.spec to include blueprint-01-g11n-alllinguas.diff patch
yk150259
parents:
3858
diff
changeset
|
119 |
- Added blueprint-01-g11n-alllinguas.diff to include cs,hu linguas |
3279
5d64ee516a02
Bumped l10n tarball revision from 1.1 to 1.2 in all spec-files.
damiend
parents:
3263
diff
changeset
|
120 |
* Thu Jul 08 2004 - [email protected] |
5d64ee516a02
Bumped l10n tarball revision from 1.1 to 1.2 in all spec-files.
damiend
parents:
3263
diff
changeset
|
121 |
- Updated l10n content to blueprint-l10n-po-1.2.tar.bz2 |
3628 | 122 |
* Wed Jul 07 2004 - [email protected] |
123 |
- ported to rpm4 |
|
3263 | 124 |
* Wed Jul 07 2004 - [email protected] |
125 |
- added "-j $CPUS" to make to speed up builds |
|
2987 | 126 |
* Wed Jun 2 2004 - [email protected] |
127 |
- Bump to 0.9.5 |
|
2736
bd6e69980863
Updated all spec files to reflect 1.1 version l10n tarballs delivered into
damiend
parents:
2667
diff
changeset
|
128 |
* Wed May 12 2004 - [email protected] |
bd6e69980863
Updated all spec files to reflect 1.1 version l10n tarballs delivered into
damiend
parents:
2667
diff
changeset
|
129 |
- Updated l10n content to blueprint-l10n-po-1.1.tar.bz2 |
2355 | 130 |
* Wed Mar 31 2004 - [email protected] |
131 |
- replace tar jxf with the more solaris friendly |
|
132 |
bzcat piped through tar |
|
2350 | 133 |
* Mon Mar 29 2004 - [email protected] |
134 |
- Adding blueprint-l10n-po-1.0.tar.bz2 l10n content |
|
2187 | 135 |
* Fri Mar 12 2004 Niall Power <[email protected]> |
136 |
- remove "rm -rf" evil from the install stage |
|
1714 | 137 |
* Mon Feb 16 2004 Niall Power <[email protected]> |
138 |
- add ACLOCAL_FLAGS to aclocal invocation |
|
139 |
- do not use the -printf argument with find - it |
|
140 |
doesn't work on Solaris (pipe through sed instead) |
|
1570 | 141 |
* Fri Jan 19 2004 Takao Fujiwara <[email protected]> |
142 |
- Modified blueprint.spec for i18n |
|
1058 | 143 |
* Thu Aug 14 2003 - <[email protected]> |
144 |
- remove *.a, *.la |
|
405 | 145 |
* Wed Jul 02 2003 Erwann Chenede - <[email protected]> |
146 |
- cleanup + icons theme addition |
|
116 | 147 |
* Mon May 12 2003 Erwann Chenede - <[email protected]> |
148 |
- initial implementation of the spec file |
|
405 | 149 |