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