author | dcarbery |
Fri, 24 Nov 2006 16:56:15 +0000 | |
changeset 8628 | c3b3c1d14139 |
parent 8568 | 333eb618eecf |
child 8947 | 30af4edb275b |
permissions | -rw-r--r-- |
5518 | 1 |
# spec file for package gnome-menus |
2 |
# |
|
3 |
# Copyright (c) 2005 Sun Microsystems, Inc. |
|
4 |
# This file and all modifications and additions to the pristine |
|
5 |
# package are under the same license as the package itself. |
|
8465 | 6 |
# Owner: gman |
5518 | 7 |
# |
8 |
Name: gnome-menus |
|
9 |
License: LGPL |
|
10 |
Group: System/GUI/GNOME |
|
8628
c3b3c1d14139
Merged 217update branch changes r9777:9830 into trunk branch.
dcarbery
parents:
8568
diff
changeset
|
11 |
Version: 2.17.2 |
7160 | 12 |
Release: 3 |
5518 | 13 |
Distribution: Java Desktop System |
14 |
Vendor: Sun Microsystems, Inc. |
|
15 |
Summary: Implementation of Desktop Menu Specification for GNOME |
|
8628
c3b3c1d14139
Merged 217update branch changes r9777:9830 into trunk branch.
dcarbery
parents:
8568
diff
changeset
|
16 |
Source: http://ftp.gnome.org/pub/GNOME/sources/%{name}/2.17/%{name}-%{version}.tar.bz2 |
7867 | 17 |
Patch1: gnome-menus-01-quickstart.diff |
18 |
Patch2: gnome-menus-02-application-submenu-rename.diff |
|
19 |
Patch3: gnome-menus-03-preferences.diff |
|
8568 | 20 |
# date:2006-08-16 bugster:6460249 owner:harrylu type:feature |
7921 | 21 |
Patch4: gnome-menus-04-support-alacarte.diff |
5518 | 22 |
URL: http://www.gnome.org |
23 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
24 |
Docdir: %{_defaultdocdir}/%{name} |
|
25 |
Autoreqprov: on |
|
26 |
Prereq: /sbin/ldconfig |
|
27 |
Prereq: GConf |
|
28 |
||
29 |
%define gnome_vfs_version 2.8.2 |
|
5943 | 30 |
%define pygtk2_version 2.7.0 |
6193 | 31 |
%define python_version 2.4 |
5518 | 32 |
|
5943 | 33 |
Requires: pygtk2 >= %{pygtk2_version} |
34 |
BuildRequires: pygtk2 >= %{pygtk2_version} |
|
5518 | 35 |
BuildRequires: gnome-vfs >= %{gnome_common_version} |
36 |
BuildRequires: intltool |
|
37 |
||
38 |
%description |
|
39 |
This package implements the freedesktop.org desktop menu specification for the GNOME |
|
40 |
desktop. Also contained in this package, are the menu layout configuration files, .directory |
|
41 |
and assorted menu utility programs. |
|
42 |
||
43 |
%package devel |
|
44 |
Summary: Implementation of Desktop Menu Specification for GNOME |
|
45 |
Group: System/Libraries/GNOME |
|
46 |
Autoreqprov: on |
|
47 |
Requires: %name = %version |
|
48 |
Requires: gnome-vfs-devel >= %{gnome_vfs_version} |
|
49 |
||
50 |
%description devel |
|
51 |
This package implements the freedesktop.org desktop menu specification for the GNOME |
|
52 |
desktop. Also contained in this package, are the menu layout configuration files, .directory |
|
53 |
and assorted menu utility programs. |
|
54 |
||
55 |
%prep |
|
56 |
%setup -q |
|
7867 | 57 |
%patch1 -p1 |
7151 | 58 |
%patch2 -p1 |
7160 | 59 |
%patch3 -p1 |
7921 | 60 |
%patch4 -p1 |
5518 | 61 |
|
62 |
%build |
|
63 |
%ifos linux |
|
64 |
if [ -x /usr/bin/getconf ]; then |
|
65 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
66 |
fi |
|
67 |
%else |
|
68 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
|
69 |
%endif |
|
70 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
71 |
CPUS=1 |
|
72 |
fi |
|
73 |
||
74 |
aclocal $ACLOCAL_FLAGS |
|
75 |
automake -a -c -f |
|
76 |
autoconf |
|
77 |
./configure --prefix=%{_prefix} \ |
|
78 |
--sysconfdir=%{_sysconfdir} \ |
|
79 |
--mandir=%{_mandir} |
|
6193 | 80 |
make -j $CPUS \ |
81 |
pyexecdir=%{_libdir}/python%{python_version}/vendor-packages \ |
|
82 |
pythondir=%{_libdir}/python%{python_version}/vendor-packages |
|
5518 | 83 |
|
84 |
%install |
|
6193 | 85 |
make DESTDIR=$RPM_BUILD_ROOT install \ |
86 |
pyexecdir=%{_libdir}/python%{python_version}/vendor-packages \ |
|
87 |
pythondir=%{_libdir}/python%{python_version}/vendor-packages |
|
5625 | 88 |
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';' |
89 |
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';' |
|
90 |
find $RPM_BUILD_ROOT -type f -name "*.pyo" -exec rm -f {} ';' |
|
91 |
find $RPM_BUILD_ROOT -type f -name "*.pyc" -exec rm -f {} ';' |
|
5518 | 92 |
# FIXME: Giga-hack part 1 of 2 follows... |
93 |
# file /etc/xdg/menus/applications.menu conflicts with desktop-data-SLES |
|
94 |
# Only on SuSE Linux !! |
|
95 |
%ifos linux |
|
96 |
mv $RPM_BUILD_ROOT%{_sysconfdir}/xdg/menus/applications.menu \ |
|
97 |
$RPM_BUILD_ROOT%{_sysconfdir}/xdg/menus/applications.menu.new |
|
98 |
%endif |
|
99 |
||
100 |
%post |
|
101 |
/sbin/ldconfig |
|
102 |
# FIXME: Giga-hack part 2 of 2 follows... |
|
103 |
# file /etc/xdg/menus/applications.menu conflicts with desktop-data-SLES |
|
104 |
MENU=/etc/xdg/menus/applications.menu |
|
105 |
cp $MENU $MENU.SuSE |
|
106 |
cp $MENU.new $MENU |
|
107 |
||
108 |
%postun |
|
109 |
/sbin/ldconfig |
|
110 |
||
111 |
%clean |
|
112 |
rm -rf $RPM_BUILD_ROOT |
|
113 |
||
114 |
%files |
|
115 |
%defattr(-,root,root) |
|
116 |
%{_bindir}/* |
|
117 |
%{_libdir}/libgnome-menu.so.* |
|
118 |
%{_datadir}/desktop-directories/* |
|
119 |
%config %{_sysconfdir}/xdg/menus/* |
|
120 |
%{_datadir}/locale/*/LC_MESSAGES/*.mo |
|
5575 | 121 |
%{_datadir}/applications/*.desktop |
122 |
%{_datadir}/gnome-menus |
|
5625 | 123 |
%{_libdir}/python2.4/ |
5518 | 124 |
|
125 |
%files devel |
|
126 |
%defattr(-, root, root) |
|
127 |
%{_libdir}/pkgconfig/* |
|
128 |
%{_libdir}/libgnome-menu.so |
|
129 |
%{_includedir}/gnome-menus/* |
|
130 |
||
131 |
%changelog |
|
8628
c3b3c1d14139
Merged 217update branch changes r9777:9830 into trunk branch.
dcarbery
parents:
8568
diff
changeset
|
132 |
* Wed Nov 22 2006 - [email protected] |
c3b3c1d14139
Merged 217update branch changes r9777:9830 into trunk branch.
dcarbery
parents:
8568
diff
changeset
|
133 |
- Bump to 2.17.2. |
c3b3c1d14139
Merged 217update branch changes r9777:9830 into trunk branch.
dcarbery
parents:
8568
diff
changeset
|
134 |
|
8248 | 135 |
* Tue Oct 03 2006 - [email protected] |
136 |
- Bump to 2.16.1. |
|
137 |
||
8061 | 138 |
* Mon Sep 04 2006 - [email protected] |
139 |
- Bump to 2.16.0. |
|
140 |
||
7921 | 141 |
* Thu Aug 16 2006 - [email protected] |
142 |
- add patch gnome-menus-04-support-alacarte.diff to fix bug 6460249. |
|
143 |
||
7875 | 144 |
* Tue Aug 08 2006 - [email protected] |
145 |
- Bump to 2.15.91. |
|
146 |
||
7867 | 147 |
* Tue Aug 08 2006 - [email protected] |
148 |
- Remove alacarte patch, and reorder. |
|
149 |
||
7743 | 150 |
* Mon Jul 24 2006 - [email protected] |
151 |
- Bump to 2.15.90. |
|
152 |
||
7201 | 153 |
* Wed May 03 2006 - [email protected] |
154 |
- Remove Accessibility submenu from preferences |
|
7151 | 155 |
* Fri Apr 28 2006 - [email protected] |
7160 | 156 |
- Add patch to rename some submenus, like |
157 |
Universal Access, and Developer Tools. |
|
158 |
||
159 |
* Fri Apr 28 2006 - [email protected] |
|
7151 | 160 |
- Add quickstart.menu, along with ability to edit |
161 |
in the simple menu editor. |
|
162 |
||
7117 | 163 |
* Fri Apr 21 2006 - [email protected] |
164 |
- Add alacarte patch which adds exec in terminal |
|
165 |
and no display options needed for the menu editor. |
|
166 |
||
7062 | 167 |
* Thu Apr 13 2006 - [email protected] |
168 |
- Bump to 2.14.0. |
|
169 |
||
6628 | 170 |
* Fri Jan 21 2006 - [email protected] |
171 |
- Bump to 2.13.5. |
|
172 |
||
6200 | 173 |
* Thu Oct 27 2005 - [email protected] |
174 |
- move python stuff from site-packages to vendor-packages |
|
175 |
||
5895 | 176 |
* Sat Sep 17 2005 - [email protected] |
177 |
- Bump to 2.12.0 |
|
178 |
||
5575 | 179 |
* Wed Aug 24 2005 - [email protected] |
180 |
- remove upstream patch |
|
181 |
||
5528
8eaf8a1cb170
* *.spec: Bump to latest available versions for 2.11 work.
dc144907
parents:
5518
diff
changeset
|
182 |
* Mon Aug 15 2005 - [email protected] |
8eaf8a1cb170
* *.spec: Bump to latest available versions for 2.11 work.
dc144907
parents:
5518
diff
changeset
|
183 |
- Bump to 2.11.91. |
8eaf8a1cb170
* *.spec: Bump to latest available versions for 2.11 work.
dc144907
parents:
5518
diff
changeset
|
184 |
|
5518 | 185 |
* Fri May 13 2005 - [email protected] |
186 |
- Add unisntalled-pc files since they are needed on Solaris to build. |
|
187 |
||
188 |
* Tue May 10 2005 - [email protected] |
|
189 |
- Initial spec file for gnome-menus |