19693
|
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 |
#
|
19239
|
8 |
Name: gnome-menus
|
|
9 |
License: LGPL
|
|
10 |
Group: System/GUI/GNOME
|
|
11 |
Version: 2.10.1
|
19297
|
12 |
Release: 2
|
19693
|
13 |
Distribution: Java Desktop System
|
19239
|
14 |
Vendor: Sun Microsystems, Inc.
|
|
15 |
Summary: Implementation of Desktop Menu Specification for GNOME
|
19693
|
16 |
Source: http://ftp.gnome.org/pub/GNOME/sources/%{name}/2.10/%{name}-%{version}.tar.bz2
|
19277
|
17 |
Patch1: gnome-menus-01-uninstalled_pc.diff
|
19239
|
18 |
URL: http://www.gnome.org
|
|
19 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
20 |
Docdir: %{_defaultdocdir}/%{name}
|
|
21 |
Autoreqprov: on
|
19693
|
22 |
Prereq: /sbin/ldconfig
|
|
23 |
Prereq: GConf
|
19239
|
24 |
|
|
25 |
%define gnome_vfs_version 2.8.2
|
|
26 |
|
|
27 |
BuildRequires: gnome-vfs >= %{gnome_common_version}
|
|
28 |
BuildRequires: intltool
|
|
29 |
|
|
30 |
%description
|
|
31 |
This package implements the freedesktop.org desktop menu specification for the GNOME
|
|
32 |
desktop. Also contained in this package, are the menu layout configuration files, .directory
|
|
33 |
and assorted menu utility programs.
|
|
34 |
|
|
35 |
%package devel
|
|
36 |
Summary: Implementation of Desktop Menu Specification for GNOME
|
|
37 |
Group: System/Libraries/GNOME
|
|
38 |
Autoreqprov: on
|
|
39 |
Requires: %name = %version
|
|
40 |
Requires: gnome-vfs-devel >= %{gnome_vfs_version}
|
|
41 |
|
19290
|
42 |
%description devel
|
|
43 |
This package implements the freedesktop.org desktop menu specification for the GNOME
|
|
44 |
desktop. Also contained in this package, are the menu layout configuration files, .directory
|
|
45 |
and assorted menu utility programs.
|
|
46 |
|
19239
|
47 |
%prep
|
|
48 |
%setup -q
|
19277
|
49 |
%patch1 -p1
|
19239
|
50 |
|
19290
|
51 |
|
19239
|
52 |
%build
|
|
53 |
%ifos linux
|
|
54 |
if [ -x /usr/bin/getconf ]; then
|
|
55 |
CPUS=`getconf _NPROCESSORS_ONLN`
|
|
56 |
fi
|
|
57 |
%else
|
|
58 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
|
59 |
%endif
|
|
60 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
61 |
CPUS=1
|
|
62 |
fi
|
|
63 |
|
19277
|
64 |
aclocal $ACLOCAL_FLAGS
|
|
65 |
automake -a -c -f
|
|
66 |
autoconf
|
19239
|
67 |
./configure --prefix=%{_prefix} \
|
|
68 |
--sysconfdir=%{_sysconfdir} \
|
|
69 |
--mandir=%{_mandir}
|
|
70 |
make -j $CPUS
|
|
71 |
|
|
72 |
%install
|
19290
|
73 |
make DESTDIR=$RPM_BUILD_ROOT install
|
|
74 |
rm $RPM_BUILD_ROOT%{_libdir}/*.a
|
|
75 |
rm $RPM_BUILD_ROOT%{_libdir}/*.la
|
19365
|
76 |
# FIXME: Giga-hack part 1 of 2 follows...
|
|
77 |
# file /etc/xdg/menus/applications.menu conflicts with desktop-data-SLES
|
19719
|
78 |
# Only on SuSE Linux !!
|
19586
|
79 |
%ifos linux
|
19365
|
80 |
mv $RPM_BUILD_ROOT%{_sysconfdir}/xdg/menus/applications.menu \
|
|
81 |
$RPM_BUILD_ROOT%{_sysconfdir}/xdg/menus/applications.menu.new
|
19586
|
82 |
%endif
|
19239
|
83 |
|
|
84 |
%post
|
19290
|
85 |
/sbin/ldconfig
|
19365
|
86 |
# FIXME: Giga-hack part 2 of 2 follows...
|
|
87 |
# file /etc/xdg/menus/applications.menu conflicts with desktop-data-SLES
|
|
88 |
MENU=/etc/xdg/menus/applications.menu
|
|
89 |
cp $MENU $MENU.SuSE
|
|
90 |
cp $MENU.new $MENU
|
19290
|
91 |
|
|
92 |
%postun
|
|
93 |
/sbin/ldconfig
|
19239
|
94 |
|
|
95 |
%clean
|
|
96 |
rm -rf $RPM_BUILD_ROOT
|
|
97 |
|
|
98 |
%files
|
|
99 |
%defattr(-,root,root)
|
|
100 |
%{_bindir}/*
|
|
101 |
%{_libdir}/libgnome-menu.so.*
|
19290
|
102 |
%{_datadir}/desktop-directories/*
|
19239
|
103 |
%config %{_sysconfdir}/xdg/menus/*
|
19290
|
104 |
%{_datadir}/locale/*/LC_MESSAGES/*.mo
|
19239
|
105 |
|
|
106 |
%files devel
|
|
107 |
%defattr(-, root, root)
|
|
108 |
%{_libdir}/pkgconfig/*
|
19297
|
109 |
%{_libdir}/libgnome-menu.so
|
19239
|
110 |
%{_includedir}/gnome-menus/*
|
|
111 |
|
|
112 |
%changelog
|
19277
|
113 |
* Fri May 13 2005 - [email protected]
|
|
114 |
- Add unisntalled-pc files since they are needed on Solaris to build.
|
|
115 |
|
19239
|
116 |
* Tue May 10 2005 - [email protected]
|
|
117 |
- Initial spec file for gnome-menus
|