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