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. 6 # Owner: gman 7 # 8 Name: gnome-menus 9 License: LGPL 10 Group: System/GUI/GNOME 11 Version: 2.16.1 12 Release: 3 13 Distribution: Java Desktop System 14 Vendor: Sun Microsystems, Inc. 15 Summary: Implementation of Desktop Menu Specification for GNOME 16 Source: http://ftp.gnome.org/pub/GNOME/sources/%{name}/2.16/%{name}-%{version}.tar.bz2 17 Patch1: gnome-menus-01-quickstart.diff 18 Patch2: gnome-menus-02-application-submenu-rename.diff 19 Patch3: gnome-menus-03-preferences.diff 20 # date:2006-08-16 bugster:6460249 owner:harrylu type:feature 21 Patch4: gnome-menus-04-support-alacarte.diff 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 30 %define pygtk2_version 2.7.0 31 %define python_version 2.4 32 33 Requires: pygtk2 >= %{pygtk2_version} 34 BuildRequires: pygtk2 >= %{pygtk2_version} 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 57 %patch1 -p1 58 %patch2 -p1 59 %patch3 -p1 60 %patch4 -p1 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} 80 make -j $CPUS \ 81 pyexecdir=%{_libdir}/python%{python_version}/vendor-packages \ 82 pythondir=%{_libdir}/python%{python_version}/vendor-packages 83 84 %install 85 make DESTDIR=$RPM_BUILD_ROOT install \ 86 pyexecdir=%{_libdir}/python%{python_version}/vendor-packages \ 87 pythondir=%{_libdir}/python%{python_version}/vendor-packages 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 {} ';' 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 121 %{_datadir}/applications/*.desktop 122 %{_datadir}/gnome-menus 123 %{_libdir}/python2.4/ 124 125 %files devel 126 %defattr(-, root, root) 127 %{_libdir}/pkgconfig/* 128 %{_libdir}/libgnome-menu.so 129 %{_includedir}/gnome-menus/* 130 131 %changelog 132 * Tue Oct 03 2006 - damien.carbery@sun.com 133 - Bump to 2.16.1. 134 135 * Mon Sep 04 2006 - damien.carbery@sun.com 136 - Bump to 2.16.0. 137 138 * Thu Aug 16 2006 - harry.lu@sun.com 139 - add patch gnome-menus-04-support-alacarte.diff to fix bug 6460249. 140 141 * Tue Aug 08 2006 - damien.carbery@sun.com 142 - Bump to 2.15.91. 143 144 * Tue Aug 08 2006 - glynn.foster@sun.com 145 - Remove alacarte patch, and reorder. 146 147 * Mon Jul 24 2006 - damien.carbery@sun.com 148 - Bump to 2.15.90. 149 150 * Wed May 03 2006 - glynn.foster@sun.com 151 - Remove Accessibility submenu from preferences 152 * Fri Apr 28 2006 - glynn.foster@sun.com 153 - Add patch to rename some submenus, like 154 Universal Access, and Developer Tools. 155 156 * Fri Apr 28 2006 - glynn.foster@sun.com 157 - Add quickstart.menu, along with ability to edit 158 in the simple menu editor. 159 160 * Fri Apr 21 2006 - glynn.foster@sun.com 161 - Add alacarte patch which adds exec in terminal 162 and no display options needed for the menu editor. 163 164 * Thu Apr 13 2006 - damien.carbery@sun.com 165 - Bump to 2.14.0. 166 167 * Fri Jan 21 2006 - damien.carbery@sun.com 168 - Bump to 2.13.5. 169 170 * Thu Oct 27 2005 - laca@sun.com 171 - move python stuff from site-packages to vendor-packages 172 173 * Sat Sep 17 2005 - glynn.foster@sun.com 174 - Bump to 2.12.0 175 176 * Wed Aug 24 2005 - laca@sun.com 177 - remove upstream patch 178 179 * Mon Aug 15 2005 - damien.carbery@sun.com 180 - Bump to 2.11.91. 181 182 * Fri May 13 2005 - brian.cameron@sun.com 183 - Add unisntalled-pc files since they are needed on Solaris to build. 184 185 * Tue May 10 2005 - glynn.foster@sun.com 186 - Initial spec file for gnome-menus 187