alacarte.spec revision 11377
10139N/A#
10139N/A# spec file for package gnome-menu-editor
10139N/A#
10139N/A# Copyright (c) 2005 Sun Microsystems, Inc.
13600N/A# This file and all modifications and additions to the pristine
10139N/A# package are under the same license as the package itself.
10139N/A#
10139N/A# Owner: harrylu
10139N/A#
10139N/A%define python_version 2.4
10139N/A
10139N/AName: alacarte
16437N/AVersion: 0.11.3
16437N/ARelease: 1
10139N/ASummary: Simple menu editor for GNOME
10139N/AGroup: System/GUI/GNOME
10139N/ALicense: GPL
10139N/AURL: http://www.realistanew.com/projects/alacarte/
10139N/ADistribution: java-desktop-system
16207N/AVendor: Sun Microsystems, Inc.
10139N/ASource: http://ftp.gnome.org/pub/GNOME/sources/alacarte/0.11/alacarte-%{version}.tar.bz2
10139N/A# date:2006-08-23 bugster:6460249 owner:harrylu type:feature
15536N/APatch1: alacarte-01-force-reload.diff
15536N/A
15536N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
15536N/A
15536N/ABuildRequires: pygtk2.0-devel
16554N/ABuildRequires: desktop-file-utils
15761N/ABuildRequires: gnome-menus-devel >= 2.15.4.1
15761N/ABuildRequires: perl-XML-Parser
15761N/ARequires: pygtk2.0, gnome-python-gconf, gnome-python
15761N/ARequires: python-gnome-menus
16554N/AObsoletes: smeg
16554N/AProvides: smeg %{version}-%{release}
16554N/A
10139N/A%description
11999N/AAlacarte is a menu editor for GNOME that lets you get things done,
11999N/Asimply and quickly.
15536N/A
10139N/AJust click and type to edit, add, and delete any menu entry.
10139N/A
10139N/A%prep
15536N/A%setup -q
10139N/A%patch1 -p1
13898N/A
13898N/A%build
15536N/A%ifos linux
10139N/Aif [ -x /usr/bin/getconf ]; then
16437N/A CPUS=`getconf _NPROCESSORS_ONLN`
16437N/Afi
16437N/A%else
10544N/A CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
12830N/A%endif
12830N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
15536N/A CPUS=1
12830N/Afi
13914N/A
13915N/Aintltoolize -c -f --automake
15536N/Alibtoolize --copy --force
13914N/Aaclocal $ACLOCAL_FLAGS
14529N/Aautomake -a -c -f
15536N/Aautoconf
14425N/A
15190N/A./configure --prefix=%{_prefix} --mandir=%{_mandir} \
15536N/A --libdir=%{_libdir} \
15190N/A --libexecdir=%{_libexecdir} \
16597N/A --sysconfdir=%{_sysconfdir}
15536N/Amake -j $CPUS \
15536N/A pyexecdir=%{_libdir}/python%{python_version}/vendor-packages \
15216N/A pythondir=%{_libdir}/python%{python_version}/vendor-packages
15418N/A
15536N/A%install
15418N/Arm -rf $RPM_BUILD_ROOT
16554N/Amake DESTDIR=$RPM_BUILD_ROOT install \
16554N/A pyexecdir=%{_libdir}/python%{python_version}/vendor-packages \
16554N/A pythondir=%{_libdir}/python%{python_version}/vendor-packages
16554N/Afind $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
16554N/Afind $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
16050N/Afind $RPM_BUILD_ROOT -type f -name "*.pyo" -exec rm -f {} ';'
15536N/A
15516N/A%post
16597N/A%update_menus
16050N/A%update_icon_cache hicolor
15516N/A
15536N/A%postun
15536N/A%clean_menus
15529N/A%clean_icon_cache hicolor
15536N/A
15536N/A%clean
15529N/Arm -rf $RPM_BUILD_ROOT
16554N/A
15761N/A%files -f %{name}.lang
15761N/A%defattr (-, root, root)
15761N/A%doc README AUTHORS COPYING
15761N/A%{_libdir}/python?.?/vendor-packages/*
15761N/A%{_bindir}/*
15761N/A%{_datadir}/applications/*
15761N/A%{_datadir}/%name/*
16279N/A%{_datadir}/icons/*
16279N/A%{_libdir}/menu/%{name}
16279N/A
16279N/A%changelog
16020N/A* Wed Oct 10 2007 - damien.carbery@sun.com
16020N/A- Don't delete *.pyc files - they are needed.
16020N/A* Fri Aug 17 2007 - jedy.wang@sun.com
16020N/A- Fix 'patch1 -p0' - change to -p1 and change patch file too.
16020N/A* Tue Feb 13 2007 - damien.carbery@sun.com
16437N/A- Bump to 0.11.3.
16437N/A* Thu Jan 11 2007 - damien.carbery@sun.com
16437N/A- Bump to 0.11.1.1.
16601N/A* Tue Jan 09 2007 - damien.carbery@sun.com
16549N/A- Bump to 0.11.0.
16549N/A* Tue Dec 19 2006 - damien.carbery@sun.com
16601N/A- Bump to 0.10.2. Remove upstream patches, 02-launch-menu-item and
16549N/A 03-g11n-i18n-ui.
16532N/A* Tue Dec 12 2006 - takao.fujiwara@sun.com
15536N/A- Added intltoollize to read LINGUAS file
10139N/A- Added alacarte-03-g11n-i18n-ui.diff
10139N/A* Fri Nov 17 2006 - damien.carbery@sun.com
10139N/A- Change patch2 to use p1.
10139N/A* Wed Nov 15 2006 - calum.benson@sun.com
10139N/A Change menu item to match latest UI spec.
10139N/A* Tue Oct 03 2006 - damien.carbery@sun.com
10139N/A- Bump to 0.10.0.
10139N/A* Mon Sep 04 2006 - damien.carbery@sun.com
10139N/A- Bump to 0.10.0.
10139N/A* Thu Aug 24 2006 - laca@sun.com
10139N/A- remove autoheader call since there is AC_CONFIG_HEADER in configure.in
10139N/A* Tue Aug 22 2006 - halton.huo@sun.com
16554N/A- Divide SFEgnome-menu-editor.spec into alacarte.spec
10139N/A and SUNWgnome-menu-editor.spec
13898N/A* Wed Aug 16 2006 - harry.lu@sun.com
13898N/A- bump up to 0.9.90 and add patch alacarte-01-force-reload.diff to make
13898N/A it work on solaris.
10139N/A* Wed Jul 5 2006 - laca@sun.com
10139N/A- rename to gnome-menu-editor
10139N/A- delete share subpkg
10139N/A* Fri Apr 21 2006 - glynn.foster@sun.com
10139N/A- Initial spec file
10139N/A