89b9740
%define po_package gnome-menus
9f18148
%define enable_debugging 0
89b9740
eb6ab09
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
b41fdb1
89b9740
Summary:  A menu system for the GNOME project
89b9740
Name: gnome-menus
dfd0123
Version: 2.25.5
dfd0123
Release: 1%{?dist}
35eeb35
License: LGPLv2+
89b9740
Group: System Environment/Libraries
89b9740
URL: http://www.gnome.org/
f038bf8
Source0: http://download.gnome.org/sources/gnome-menus/2.25/%{name}-%{version}.tar.bz2
fe33622
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
31755f3
Requires:  redhat-menus >= 7.8.9-2
c77a0c5
BuildRequires: gamin-devel
3e6d8da
BuildRequires: gawk
5a27448
BuildRequires: gettext
89d3614
BuildRequires: glib2-devel >= 2.15.2
3e6d8da
BuildRequires: perl(XML::Parser)
d94c426
BuildRequires: pkgconfig
3e6d8da
BuildRequires: python2-devel >= 2.3.0
1bacfea
BuildRequires: intltool
e9573b8
89b9740
%description
89b9740
gnome-menus is an implementation of the draft "Desktop
89b9740
Menu Specification" from freedesktop.org. This package
89b9740
also contains the GNOME menu layout configuration files, 
b41fdb1
.directory files and assorted menu related utility programs,
b41fdb1
Python bindings, and a simple menu editor.
89b9740
89b9740
%package devel
89b9740
Summary: Libraries and include files for the GNOME menu system
89b9740
Group: Development/Libraries
fe33622
Requires:   %{name} = %{version}-%{release}
89d3614
Requires: glib2-devel >= 2.15.2
42b6fcf
Requires: python2-devel >= 2.3.0
d94c426
Requires: gamin-devel
d94c426
Requires: pkgconfig
34af475
Patch0: marathi-dotted-circle.patch
89b9740
89b9740
%description devel
89b9740
This package provides the necessary development libraries for 
89b9740
writing applications that use the GNOME menu system.
89b9740
89b9740
%prep
89b9740
%setup -q
34af475
%patch0 -p1 -b .dotted-circle
89b9740
89b9740
%build
27b9c78
%configure --with-monitor-backend=gio \
9f18148
%if %{enable_debugging}
9f18148
   --enable-debug=yes
9f18148
%else
9f18148
   --enable-debug=no
9f18148
%endif
9f18148
89b9740
make
89b9740
89b9740
%install
89b9740
rm -rf $RPM_BUILD_ROOT
89b9740
567b0f5
make install DESTDIR=$RPM_BUILD_ROOT
89b9740
89b9740
rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la
02fe506
rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.a
c934256
rm -f $RPM_BUILD_ROOT%{_libdir}/python*/site-packages/*.la
c934256
rm -f $RPM_BUILD_ROOT%{_libdir}/python*/site-packages/*.a
6e13912
rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/xdg/menus
ff33c36
rm -rf $RPM_BUILD_ROOT%{_datadir}/desktop-directories/Desktop.directory
89b9740
285767a
# We use alacarte now
285767a
rm -rf $RPM_BUILD_ROOT%{_bindir}/gmenu-simple-editor
fe33622
rm -rf $RPM_BUILD_ROOT%{_datadir}/applications/gmenu-simple-editor.desktop
fe33622
rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome-menus/glade/gmenu-simple-editor.glade
fe33622
rm -rf $RPM_BUILD_ROOT%{python_sitearch}/GMenuSimpleEditor/*
fe33622
fe33622
# No point in shipping this either
6d438e7
rm -rf $RPM_BUILD_ROOT%{_bindir}/gnome-menu-spec-test
78d9d54
rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome-menus/
285767a
89b9740
%find_lang %{po_package}
89b9740
89b9740
%clean
89b9740
rm -rf $RPM_BUILD_ROOT
89b9740
697c00a
%post -p /sbin/ldconfig
697c00a
697c00a
%postun -p /sbin/ldconfig
697c00a
89b9740
%files -f %{po_package}.lang
89b9740
%defattr(-,root,root,-)
35eeb35
%doc AUTHORS NEWS COPYING.LIB
89b9740
%{_libdir}/libgnome-menu.so.*
879cb6d
%{python_sitearch}/gmenu.so
567b0f5
%{_datadir}/desktop-directories
89b9740
89b9740
%files devel
35eeb35
%defattr(-,root,root)
89b9740
%{_libdir}/lib*.so
89b9740
%{_libdir}/pkgconfig/*
89b9740
%{_includedir}/gnome-menus
89b9740
89b9740
%changelog
dfd0123
* Tue Jan 20 2009 Matthias Clasen <mclasen@redhat.com> 2.25.5-1
dfd0123
- Update to 2.25.5
dfd0123
18d7e91
* Thu Dec  4 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 2.25.2-3
18d7e91
- Rebuild for Python 2.6
18d7e91
78d9d54
* Wed Dec  3 2008 Matthias Clasen <mclasen@redhat.com> 2.25.2-2
f038bf8
- Update to 2.25.2
f038bf8
407adb4
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 2.24.1-2
407adb4
- Rebuild for Python 2.6
407adb4
12c645b
* Wed Oct 22 2008 Matthias Clasen <mclasen@redhat.com> - 2.24.1-1
12c645b
- Update to 2.24.1
12c645b
34af475
* Mon Oct 20 2008 Matthias Clasen <mclasen@redhat.com> - 2.24.0-2
34af475
- Fix a translation error in Marathi
34af475
ff93b5c
* Mon Sep 22 2008 Matthias Clasen <mclasen@redhat.com> - 2.24.0-1
ff93b5c
- Update to 2.24.0
ff93b5c
804b585
* Mon Sep  8 2008 Matthias Clasen <mclasen@redhat.com> - 2.23.92-1
804b585
- Update to 2.23.92
804b585
937f98d
* Tue Sep  2 2008 Matthias Clasen <mclasen@redhat.com> - 2.23.91-1
937f98d
- Update to 2.23.91
937f98d
15a0c61
* Tue Aug  5 2008 Matthias Clasen <mclasen@redhat.com> - 2.23.6-1
15a0c61
- Update to 2.23.6
15a0c61
30b856c
* Fri Aug  1 2008 Matthias Clasen <mclasen@redhat.com> - 2.23.5-2
30b856c
- Use standard icon names
30b856c
881b15d
* Tue Jul 22 2008 Matthias Clasen <mclasen@redhat.com> - 2.23.5-1
881b15d
- Update to 2.23.5
881b15d
79b3cd4
* Wed Jun 18 2008 Matthias Clasen <mclasen@redhat.com> - 2.23.4-1
79b3cd4
- Update to 2.23.4
79b3cd4
a3437e9
* Wed Jun  4 2008 Matthias Clasen <mclasen@redhat.com> - 2.23.3-1
a3437e9
- Update to 2.23.3
a3437e9
b07381f
* Fri Apr 25 2008 Matthias Clasen <mclasen@redhat.com> - 2.23.1-1
b07381f
- Update to 2.23.1
b07381f
932d595
* Mon Apr  7 2008 Matthias Clasen <mclasen@redhat.com> - 2.22.1-1
932d595
- Update to 2.22.1
932d595
d5ed2bd
* Mon Mar 10 2008 Matthias Clasen <mclasen@redhat.com> - 2.22.0-1
d5ed2bd
- Update to 2.22.0
d5ed2bd
8ced054
* Tue Feb 26 2008 Matthias Clasen <mclasen@redhat.com> - 2.21.92-1
8ced054
- Update to 2.21.92
8ced054
586cd1d
* Tue Feb 12 2008 Matthias Clasen <mclasen@redhat.com> - 2.21.91-1
586cd1d
- Update to 2.21.91
586cd1d
89d3614
* Tue Jan 29 2008 Matthias Clasen <mclasen@redhat.com> - 2.21.90-1
89d3614
- Update to 2.21.90
89d3614
3113582
* Mon Jan 14 2008 Matthias Clasen <mclasen@redhat.com> - 2.21.4-1
3113582
- Update to 2.21.4
3113582
fbab864
* Wed Jan 09 2008 - Bastien Nocera <bnocera@redhat.com> - 2.21.3-2
fbab864
- Add upstream patch to allow building with the new GIO file
fbab864
  monitoring API
fbab864
27b9c78
* Sat Dec 22 2007 Matthias Clasen <mclasen@redhat.com> - 2.21.3-1
27b9c78
- Update to 2.21.3
27b9c78
- Use gio for file monitoring
27b9c78
3137987
* Mon Nov 12 2007 Matthias Clasen <mclasen@redhat.com> - 2.21.2-1
3137987
- Update to 2.21.2
3137987
ed6c24f
* Mon Oct 15 2007 Matthias Clasen <mclasen@redhat.com> - 2.20.1-1
ed6c24f
- Update to 2.20.1 (translation updates)
ed6c24f
a72f9dc
* Mon Sep 17 2007 Matthias Clasen <mclasen@redhat.com> - 2.20.0-1
a72f9dc
- Update to 2.20.0
a72f9dc
3a7c72c
* Tue Sep  4 2007 Matthias Clasen <mclasen@redhat.com> - 2.19.92-1
3a7c72c
- Update to 2.19.92
3a7c72c
d942412
* Thu Aug 23 2007 Adam Jackson <ajax@redhat.com> - 2.19.90-2
d942412
- Rebuild for build ID
3e6d8da
- BuildRequires: gawk
d942412
9f9eb95
* Mon Aug 13 2007 Matthias Clasen <mclasen@redhat.com> - 2.19.90-1
9f9eb95
- Update to 2.19.90
9f9eb95
35eeb35
* Thu Aug  2 2007 Matthias Clasen <mclasen@redhat.com> - 2.19.6-2 
35eeb35
- Update license field
35eeb35
6eab40f
* Mon Jul 30 2007 Matthias Clasen <mclasen@redhat.com> - 2.19.6-1 
6eab40f
- Update to 2.19.6
6eab40f
9e5d0c6
* Sun Jul  8 2007 Matthias Clasen <mclasen@redhat.com> - 2.19.5-1 
9e5d0c6
- Update to 2.19.5
9e5d0c6
139ec46
* Sun Jun 17 2007 Matthias Clasen <mclasen@redhat.com> - 2.19.4-1 
139ec46
- Update to 2.19.4
139ec46
- Drop upstreamed patch
139ec46
fbbdd54
* Thu Jun 14 2007 Colin Walters <walters@redhat.com> - 2.19.3-2
fbbdd54
- Add patch gnome-menus-pythread-bgo442747.patch
fbbdd54
d23bbae
* Mon Jun  4 2007 Matthias Clasen <mclasen@redhat.com> - 2.19.3-1
d23bbae
- Update to 2.19.3
d23bbae
ba6ae37
* Sat May 19 2007 Matthias Clasen <mclasen@redhat.com> - 2.19.2-1
ba6ae37
- Update to 2.19.2
ba6ae37
aaf1165
* Tue Mar 13 2007 Matthias Clasen <mclasen@redhat.com> - 2.18.0-1
aaf1165
- Update to 2.18.0
aaf1165
a93f23e
* Tue Feb 27 2007 Matthias Clasen <mclasen@redhat.com> - 2.17.92-1
a93f23e
- Update to 2.17.92
2e99169
- Drop obsolete patch
a93f23e
0e48654
* Thu Feb 15 2007 Matthias Clasen <mclasen@redhat.com> - 2.17.91-2
0e48654
- Show the Preferences menu
0e48654
bba17dd
* Tue Feb 13 2007 Matthias Clasen <mclasen@redhat.com> - 2.17.91-1
bba17dd
- Update to 2.17.91
bba17dd
31755f3
* Mon Jan 29 2007 Adam Jackson <ajax@redhat.com> - 2.17.5-2
31755f3
- Fix the redhat-menus Requires: to a version where there's no
31755f3
  System.directory conflict.
31755f3
fe33622
* Wed Jan 10 2007 Matthias Clasen <mclasen@redhat.com> - 2.17.5-1
fe33622
- Update to 2.17.5 
fe33622
- Remove traces of gmenu-simple-editor
fe33622
85218ba
* Thu Dec  7 2006 Jeremy Katz <katzj@redhat.com> - 2.17.2-2
85218ba
- rebuild for python 2.5
85218ba
02fe506
* Mon Nov  6 2006 Matthias Clasen <mclasen@redhat.com> - 2.17.2-1
02fe506
- Update to 2.17.2
02fe506
- Don't ship static libraries
4fa3573
- Fix python packaging
02fe506
1f5dd02
* Sat Oct 21 2006 Matthias Clasen <mclasen@redhat.com> - 2.16.1-1
1f5dd02
- Update to 2.16.1
1f5dd02
285767a
* Tue Sep  5 2006 Ray Strode <rstrode@redhat.com> - 2.16.0-2.fc6
285767a
- Remove menu editor (bug 205210)
285767a
9c813f2
* Mon Sep  4 2006 Matthias Clasen <mclasen@redhat.com> - 2.16.0-1.fc6
9c813f2
- Update to 2.16.0
9c813f2
d94c426
* Mon Aug 21 2006 Matthias Clasen <mclasen@redhat.com> - 2.15.91-2.fc6
d94c426
- Add Requires to the -devel package
d94c426
3babf44
* Sat Aug 12 2006 Matthias Clasen <mclasen@redhat.com> - 2.15.91-1.fc6
3babf44
- Update to 2.15.91
3babf44
b3102a0
* Thu Aug  2 2006 Matthias Clasen <mclasen@redhat.com> - 2.15.90-1.fc6
b3102a0
- Update to 2.15.90
b3102a0
d440713
* Wed Jul 12 2006 Matthias Clasen <mclasen@redhat.com> - 2.15.4.1-1
d440713
- Update to 2.15.4.1
21d3cfa
7cfbd95
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 2.14.0-4.1
7cfbd95
- rebuild
7cfbd95
5a27448
* Fri Jun  9 2006 Matthias Clasen <mclasen@redhat.com> - 2.14.0-4
5a27448
- More missing BuildRequires
5a27448
8458c32
* Tue Jun  6 2006 Matthias Clasen <mclasen@redhat.com> - 2.14.0-3
8458c32
- Add a BuildRequires for perl-XML-Parser
8458c32
9b53879
* Mon Apr 13 2006 Matthias Clasen <mclasen@redhat.com> - 2.14.0-2
9b53879
- Update to 2.14.0
0056327
- Drop upstreamed patch
9b53879
204014b
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 2.13.5-5.2
204014b
- bump again for double-long bug on ppc(64)
204014b
8494d49
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 2.13.5-5.1
8494d49
- rebuilt for new gcc4.1 snapshot and glibc changes
8494d49
3dd6a42
* Mon Feb  6 2006 Ray Strode <rstrode@redhat.com> 2.13.5-5
3dd6a42
- break infinite loop 
3dd6a42
ff33c36
* Wed Feb  1 2006 Ray Strode <rstrode@redhat.com> 2.13.5-4
ff33c36
- don't ship upstream Desktop.directory files
ff33c36
567b0f5
* Fri Jan 27 2006 Ray Strode <rstrode@redhat.com> 2.13.5-3
567b0f5
- ship upstream .directory files
567b0f5
c77a0c5
* Thu Jan 19 2006 Matthias Clasen <mclasen@redhat.com> 2.13.5-2
c77a0c5
- Add a BuildRequires for gamin
c77a0c5
093df9c
* Tue Jan 17 2006 Matthias Clasen <mclasen@redhat.com> 2.13.5-1
093df9c
- Update to 2.13.5
093df9c
650ca2d
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
650ca2d
- rebuilt
650ca2d
afdcb76
* Tue Sep  6 2005 Mark McLoughlin <markmc@redhat.com> 2.12.0-1
afdcb76
- Update to 2.12.0
afdcb76
1d7f436
* Mon Aug 22 2005 Mark McLoughlin <markmc@redhat.com> 2.11.92-1
1d7f436
- Update to 2.11.92
1d7f436
da65268
* Thu Aug 18 2005 Mark McLoughlin <markmc@redhat.com> 2.11.91-3
da65268
- Fix infinite loop in patch for gnome #313624
da65268
32e3fb8
* Thu Aug 18 2005 Mark McLoughlin <markmc@redhat.com> 2.11.91-2
32e3fb8
- Add patch to fix "duplicate entries after upgrade" issue (gnome #313624)
32e3fb8
73eec06
* Tue Aug 16 2005 Mark McLoughlin <markmc@redhat.com> 2.11.91-1
73eec06
- Update to 2.11.91
73eec06
- Backport patch from HEAD to hopefully fix crasher (rh #165977)
73eec06
fdbd3de
* Wed Aug 03 2005 Ray Strode <rstrode@redhat.com> - 2.11.90-1
fdbd3de
- Update to upstream version 2.11.90
fdbd3de
b41fdb1
* Mon Jul 11 2005 Matthias Clasen <mclasen@redhat.com> 2.11.1.1-2
b41fdb1
- Undo the split into tiny subpackages, instead move
b41fdb1
  the Python bindings and the editor into the main package.
b41fdb1
- Fix dependencies
b41fdb1
c934256
* Fri Jul  8 2005 Matthias Clasen <mclasen@redhat.com> 2.11.1.1-1
c934256
- Update to 2.11.1.1
c934256
- Split off subpackages for python bindings and editor
c934256
697c00a
* Fri Apr 22 2005 Matthias Clasen <mclasen@redhat.com> 2.10.1-3
697c00a
- Call ldconfig in %%post (#155734)
b501a69
- Add some BuildRequires
697c00a
e9573b8
* Wed Apr  6 2005 Mark McLoughlin <markmc@redhat.com> 2.10.1-2
e9573b8
- Backport patch from CVS to fix large memory leak on re-loading
e9573b8
  the menus (gnome #172472)
e9573b8
197790c
* Wed Mar 23 2005 Mark McLoughlin <markmc@redhat.com> 2.10.1-1
197790c
- Update to 2.10.1
197790c
9cbbbce
* Thu Mar 17 2005 Ray Strode <rstrode@redhat.com> - 2.10.0-1
9cbbbce
- Update to upstream version 2.10.0
9cbbbce
ca85052
* Fri Mar  4 2005 Jeremy Katz <katzj@redhat.com> - 2.9.90-4
ca85052
- fix 64bit pointer problem that caused the panel to crash
ca85052
9f18148
* Wed Mar  2 2005 Mark McLoughlin <markmc@redhat.com> 2.9.90-3
9f18148
- Turn off debugging by default
9f18148
- Rebuild with gcc4
9f18148
84ce637
* Tue Feb  1 2005 Matthias Clasen <mclasen@redhat.com> - 2.9.90-2
84ce637
- Don't include .directory and .menu files,
84ce637
  we want those from redhat-menus
84ce637
89b9740
* Mon Jan 31 2005 Matthias Clasen <mclasen@redhat.com> - 2.9.90-1
89b9740
- Initial build.
89b9740