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