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