Blame SPECS/alacarte.spec

2ae4b3
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
2ae4b3
2ae4b3
Name:           alacarte
2ae4b3
Version:        3.7.90
5b2f0d
Release:        8%{?dist}
2ae4b3
Summary:        Menu editor for the GNOME desktop
2ae4b3
2ae4b3
Group:          Applications/System
2ae4b3
License:        LGPLv2+
2ae4b3
URL:            http://www.gnome.org
2ae4b3
#VCS: git:git://git.gnome.org/alacarte
2ae4b3
Source0:        http://download.gnome.org/sources/alacarte/3.7/%{name}-%{version}.tar.xz
5b2f0d
Source1:	alacarte.1
5b2f0d
5b2f0d
Patch0: commit-0d7f351
5b2f0d
Patch1: commit-e8f3c73
5b2f0d
Patch2: commit-f1c0f97
5b2f0d
Patch3: commit-fab91e9
5b2f0d
Patch4: commit-d1920ec
5b2f0d
Patch5: 0001-Remove-the-Help-button.patch
5b2f0d
Patch6: 0001-Make-the-Restore-button-work.patch
5b2f0d
Patch7: 0001-ItemEditor-Make-sure-to-include-the-extension-in-the.patch
5b2f0d
Patch8: 0001-MainWindow-Add-back-main_window.patch
5b2f0d
Patch9: 0001-ItemEditor-Fix-validity-check.patch
5b2f0d
Patch10: 0002-ItemEditor-Make-sure-that-we-have-a-valid-Exec-line.patch
5b2f0d
Patch11: 0001-Fix-creating-new-menus.patch
5b2f0d
Patch12: 0001-Fix-creating-new-items.patch
2ae4b3
2ae4b3
BuildArch:      noarch
2ae4b3
2ae4b3
BuildRequires:  python, python-devel, gettext
2ae4b3
BuildRequires:  pygobject3-devel
2ae4b3
BuildRequires:  pkgconfig
2ae4b3
BuildRequires:  gnome-menus-devel >= 2.27.92
2ae4b3
BuildRequires:  intltool
2ae4b3
BuildRequires:  desktop-file-utils
2ae4b3
BuildRequires:  autoconf
2ae4b3
BuildRequires:  automake
2ae4b3
Requires:       gnome-menus >= 3.2.0.1
2ae4b3
Requires:       gtk3
2ae4b3
Requires:       pygobject3
2ae4b3
2ae4b3
2ae4b3
%description
2ae4b3
Alacarte is a graphical menu editor that lets you edit, add, and delete
2ae4b3
menu entries. It follows the freedesktop.org menu specification and
2ae4b3
should work with any desktop environment that uses this specification.
2ae4b3
2ae4b3
2ae4b3
%prep
2ae4b3
%setup -q
5b2f0d
%patch0 -p1
5b2f0d
%patch1 -p1
5b2f0d
%patch2 -p1
5b2f0d
%patch3 -p1
5b2f0d
%patch4 -p1
5b2f0d
%patch5 -p1
5b2f0d
%patch6 -p1
5b2f0d
%patch7 -p1
5b2f0d
%patch8 -p1
5b2f0d
%patch9 -p1
5b2f0d
%patch10 -p1
5b2f0d
%patch11 -p1
5b2f0d
%patch12 -p1
2ae4b3
2ae4b3
autoreconf -i -f
2ae4b3
2ae4b3
%build
2ae4b3
%configure
2ae4b3
make %{?_smp_mflags}
2ae4b3
2ae4b3
2ae4b3
%install
2ae4b3
make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p'
2ae4b3
5b2f0d
install -D -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_mandir}/man1/alacarte.1
5b2f0d
gzip $RPM_BUILD_ROOT%{_mandir}/man1/alacarte.1
5b2f0d
2ae4b3
# desktop-file-install can't manipulate NotShowIn
2ae4b3
sed -i -e 's/NotShowIn=KDE;/OnlyShowIn=GNOME;/' \
2ae4b3
  $RPM_BUILD_ROOT%{_datadir}/applications/alacarte.desktop
2ae4b3
desktop-file-validate \
2ae4b3
  $RPM_BUILD_ROOT%{_datadir}/applications/alacarte.desktop
2ae4b3
2ae4b3
%find_lang %{name}
2ae4b3
2ae4b3
2ae4b3
%post
2ae4b3
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
2ae4b3
2ae4b3
2ae4b3
%postun
2ae4b3
if [ $1 -eq 0 ] ; then
2ae4b3
  touch --no-create %{_datadir}/icons/hicolor &>/dev/null
2ae4b3
  gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
2ae4b3
fi
2ae4b3
2ae4b3
2ae4b3
%posttrans
2ae4b3
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
2ae4b3
2ae4b3
2ae4b3
%files -f %{name}.lang
2ae4b3
%doc README AUTHORS COPYING
2ae4b3
%{python_sitelib}/Alacarte
2ae4b3
%{_bindir}/alacarte
2ae4b3
%{_datadir}/applications/alacarte.desktop
2ae4b3
%{_datadir}/alacarte
2ae4b3
%{_datadir}/icons/hicolor/16x16/apps/alacarte.png
2ae4b3
%{_datadir}/icons/hicolor/22x22/apps/alacarte.png
2ae4b3
%{_datadir}/icons/hicolor/24x24/apps/alacarte.png
2ae4b3
%{_datadir}/icons/hicolor/32x32/apps/alacarte.png
2ae4b3
%{_datadir}/icons/hicolor/48x48/apps/alacarte.png
2ae4b3
%{_datadir}/icons/hicolor/256x256/apps/alacarte.png
5b2f0d
%{_mandir}/man1/alacarte.1.gz
2ae4b3
2ae4b3
2ae4b3
%changelog
5b2f0d
* Fri Feb 28 2014 Matthias Clasen <mclasen@redhat.com> - 3.7.90-8
5b2f0d
- Put new items in the correct menu
5b2f0d
Resolves: #1040403 
5b2f0d
5b2f0d
* Wed Feb 26 2014 Matthias Clasen <mclasen@redhat.com> - 3.7.90-7
5b2f0d
- Make adding menus and items work
5b2f0d
Resolves: #1070228
5b2f0d
Resolves: #1070229
5b2f0d
5b2f0d
* Mon Feb 17 2014 Matthias Clasen <mclasen@redhat.com> - 3.7.90-6
5b2f0d
- Make the restore button work
5b2f0d
Resolves: #1040491
5b2f0d
5b2f0d
* Fri Feb  7 2014 Matthias Clasen <mclasen@redhat.com> - 3.7.90-5
5b2f0d
- Add a man page
5b2f0d
5b2f0d
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 3.7.90-4
5b2f0d
- Mass rebuild 2013-12-27
5b2f0d
5b2f0d
* Thu Dec 12 2013 Matthias Clasen <mclasen@redhat.com> - 3.7.90-3
5b2f0d
- Remove the non-functional help button
5b2f0d
- Resolves: #1040398 
5b2f0d
5b2f0d
* Thu Dec 12 2013 Matthias Clasen <mclasen@redhat.com> - 3.7.90-2
5b2f0d
- Backport some upstream fixes
5b2f0d
- Resolves: #1036849 
5b2f0d
- Resolves: #1036864 
5b2f0d
2ae4b3
* Thu Feb 28 2013 Jasper St. Pierre <jstpierre@mecheye.net> - 3.7.90-1
2ae4b3
- Update to 3.7.90
2ae4b3
2ae4b3
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.7.3-2
2ae4b3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
2ae4b3
2ae4b3
* Thu Jan 17 2013 Matthias Clasen <mclasen@redhat.com> - 3.7.3-1
2ae4b3
- Update to 3.7.3
2ae4b3
2ae4b3
* Wed Oct 17 2012 Kalev Lember <kalevlember@gmail.com> - 3.6.1-1
2ae4b3
- Update to 3.6.1
2ae4b3
2ae4b3
* Wed Sep 19 2012 Matthias Clasen <mclasen@redhat.com> - 3.5.5-1
2ae4b3
- Update to 3.5.5
2ae4b3
2ae4b3
* Wed Jul 18 2012 Kalev Lember <kalevlember@gmail.com> - 3.5.4-1
2ae4b3
- Update to 3.5.4
2ae4b3
2ae4b3
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13.4-7
2ae4b3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2ae4b3
2ae4b3
* Wed Jun 27 2012 Matthias Clasen <mclasen@redhat.com> - 0.13.4-6
2ae4b3
- Fix requires
2ae4b3
2ae4b3
* Tue Jun 26 2012 Matthias Clasen <mclasen@redhat.com> - 0.13.4-5
2ae4b3
- Spec file cleanups
2ae4b3
- Drop gnome-panel dep
2ae4b3
2ae4b3
* Fri Jun 01 2012 Jasper St. Pierre <jstpierre@mecheye.net> - 0.13.4-5
2ae4b3
- Update to 0.13.4. Resolves: #734442
2ae4b3
2ae4b3
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13.2-4
2ae4b3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
2ae4b3
2ae4b3
* Mon Mar 14 2011 Christoph Wickert <cwickert@fedoraproject.org> - 0.13.2-3
2ae4b3
- Require gnome-panel (#684927)
2ae4b3
- Compile with %%{?_smp_mflags}
2ae4b3
- Update icon-cache scriptlets
2ae4b3
2ae4b3
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13.2-2
2ae4b3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
2ae4b3
2ae4b3
* Wed Sep 29 2010 Matthias Clasen <mclasen@redhat.com> - 0.13.2-1
2ae4b3
- Update to 0.13.2
2ae4b3
2ae4b3
* Tue Jul 27 2010 David Malcolm <dmalcolm@redhat.com> - 0.13.1-3
2ae4b3
- patch configure.ac to support python 2.7; regenerate configure script
2ae4b3
2ae4b3
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.13.1-2
2ae4b3
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
2ae4b3
2ae4b3
* Mon Mar 29 2010 Matthias Clasen <mclasen@redhat.com> - 0.13.1-1
2ae4b3
- Update to 0.13.1
2ae4b3
2ae4b3
* Sun Mar 14 2010 Matthias Clasen <mclasen@redhat.com> - 0.12.4-2
2ae4b3
- Use startup notification
2ae4b3
2ae4b3
* Mon Sep 21 2009 Matthias Clasen <mclasen@redhat.com> - 0.12.4-1
2ae4b3
- Update to 0.12.4
2ae4b3
2ae4b3
* Sat Sep 12 2009 Matthias Clasen <mclasen@redhat.com> - 0.12.3-2
2ae4b3
- Bump the gnome-menus requires
2ae4b3
2ae4b3
* Tue Sep  8 2009 Matthias Clasen <mclasen@redhat.com> - 0.12.3-1
2ae4b3
- Update to 0.12.3
2ae4b3
2ae4b3
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12.1-2
2ae4b3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
2ae4b3
2ae4b3
* Sat May 16 2009 Matthias Clasen <mclasen@redhat.com> - 0.12.1-1
2ae4b3
- Update to 0.12.1
2ae4b3
2ae4b3
* Tue Mar 17 2009 Matthias Clasen <mclasen@redhat.com> - 0.11.10-1
2ae4b3
- Update to 0.11.10
2ae4b3
2ae4b3
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11.9-3
2ae4b3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
2ae4b3
2ae4b3
* Mon Feb 23 2009 Matthias Clasen <mclasen@redhat.com> - 0.11.9-2
2ae4b3
- Only show in GNOME (#486887)
2ae4b3
2ae4b3
* Tue Feb 17 2009 Matthias Clasen <mclasen@redhat.com> - 0.11.9-1
2ae4b3
- Update to 0.11.9
2ae4b3
2ae4b3
* Tue Feb  3 2009 Matthias Clasen <mclasen@redhat.com> - 0.11.8-1
2ae4b3
- Update to 0.11.8
2ae4b3
2ae4b3
* Tue Jan 20 2009 Matthias Clasen <mclasen@redhat.com> - 0.11.7-1
2ae4b3
- Update to 0.11.7
2ae4b3
2ae4b3
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.11.6-6
2ae4b3
- Rebuild for Python 2.6
2ae4b3
2ae4b3
* Fri Nov 21 2008 Matthias Clasen <mclasen@redhat.com> - 0.11.6-5
2ae4b3
- Tweak %%summary and %%description
2ae4b3
2ae4b3
* Fri Oct 17 2008 Matthias Clasen <mclasen@redhat.com> - 0.11.6-4
2ae4b3
- Make undoing of deletion work
2ae4b3
2ae4b3
* Mon Sep 22 2008 Matthias Clasen <mclasen@redhat.com> - 0.11.6-3
2ae4b3
- Update to 0.11.6
2ae4b3
2ae4b3
* Mon Mar 10 2008 Matthias Clasen <mclasen@redhat.com> - 0.11.5-1
2ae4b3
- Update to 0.11.5
2ae4b3
2ae4b3
* Thu Feb 21 2008 Matthias Clasen <mclasen@redhat.com> - 0.11.4-1
2ae4b3
- Update to 0.11.4
2ae4b3
2ae4b3
* Sun Dec 02 2007 Todd Zullinger <tmz@pobox.com> - 0.11.3-5
2ae4b3
- put the python scripts in sitelib, not sitearch
2ae4b3
- remove autoconf, automake, and intltool BRs
2ae4b3
- don't run autoconf/automake in %%build
2ae4b3
- BR perl(XML::Parser)
2ae4b3
- remove smeg Obsoletes and Provides
2ae4b3
- minor rpmlint cleanups
2ae4b3
2ae4b3
* Sat Aug 11 2007 Matthias Clasen <mclasen@redhat.com> - 0.11.3-4
2ae4b3
- Fix the build with intltool 0.36
2ae4b3
- Update the license field
2ae4b3
2ae4b3
* Fri Mar 23 2007 Ray Strode <rstrode@redhat.com> - 0.11.3-3
2ae4b3
- change url to gnome.org (bug 233237)
2ae4b3
2ae4b3
* Tue Feb 13 2007 Matthias Clasen <mclasen@redhat.com> - 0.11.3-2
2ae4b3
- Update to 0.11.3
2ae4b3
2ae4b3
* Mon Feb 12 2007 Matthias Clasen <mclasen@redhat.com> - 0.11.2-1.svn20070212
2ae4b3
- Bring back editing of the System menu
2ae4b3
2ae4b3
* Fri Jan 26 2007 Matthias Clasen <mclasen@redhat.com> - 0.11.1.1-2
2ae4b3
- Fix the Provides: line
2ae4b3
2ae4b3
* Thu Jan 11 2007 Matthias Clasen <mclasen@redhat.com> - 0.11.1.1-1
2ae4b3
- Update to 0.11.1.1
2ae4b3
2ae4b3
* Wed Dec 20 2006 Matthias Clasen <mclasen@redhat.com> - 0.10.2-2
2ae4b3
- Update to 0.10.2
2ae4b3
2ae4b3
* Sat Dec  9 2006 Matthias Clasen <mclasen@redhat.com> - 0.10.1-4
2ae4b3
- try again 
2ae4b3
2ae4b3
* Wed Dec  6 2006 Jeremy Katz <katzj@redhat.com> - 0.10.1-2
2ae4b3
- build against python 2.5 
2ae4b3
2ae4b3
* Sat Oct 21 2006 Matthias Clasen <mclasen@redhat.com> - 0.10.1-1
2ae4b3
- Update to 0.10.1
2ae4b3
* Mon Sep  4 2006 Matthias Clasen <mclasen@redhat.com> - 0.10.0-1.fc6
2ae4b3
- Update to 0.10.0
2ae4b3
2ae4b3
* Mon Aug 21 2006 Matthias Clasen <mclasen@redhat.com> - 0.9.90-7.fc6
2ae4b3
- Fix more build requires
2ae4b3
2ae4b3
* Mon Aug 21 2006 Matthias Clasen <mclasen@redhat.com> - 0.9.90-3.fc6
2ae4b3
- Add BR for pkgconfig
2ae4b3
2ae4b3
* Mon Aug 21 2006 Matthias Clasen <mclasen@redhat.com> - 0.9.90-1.fc6
2ae4b3
- Update to 0.9.90
2ae4b3
2ae4b3
* Thu Aug 17 2006 Ray Strode <rstrode@redhat.com> - 0.8-8
2ae4b3
- initial build for Fedora Core
2ae4b3
2ae4b3
* Wed Feb 15 2006 John Mahowald <jpmahowald@gmail.com> - 0.8-7
2ae4b3
- Rebuild for Fedora Extras 5
2ae4b3
2ae4b3
* Fri Feb 3 2006  John Mahowald <jpmahowald@gmail.com> - 0.8-3
2ae4b3
- Fix stray reference to smeg
2ae4b3
- Use python sitearch macro from template
2ae4b3
2ae4b3
* Sat Oct 29 2005  John Mahowald <jpmahowald@gmail.com> - 0.8-2
2ae4b3
- Rebuild
2ae4b3
2ae4b3
* Thu Oct 27 2005  John Mahowald <jpmahowald@gmail.com> - 0.8-1
2ae4b3
- rename to alacarte
2ae4b3
- Update to 0.8
2ae4b3
2ae4b3
* Thu Oct 20 2005  John Mahowald <jpmahowald@gmail.com> - 0.7.5-4
2ae4b3
- remove requires gnome-menus
2ae4b3
2ae4b3
* Tue Aug 30 2005 John Mahowald <jpmahowald@gmail.com> - 0.7.5-3
2ae4b3
- Move to /usr/share
2ae4b3
2ae4b3
* Tue Jun 28 2005 Sindre Pedersen Bjordal <foolish[AT]fedoraforum.org> - 0.7.5-2
2ae4b3
- Desktop-file-utils for kde desktop entry as well as default one.
2ae4b3
2ae4b3
* Wed Jun 08 2005 Sindre Pedersen Bjordal <foolish[AT]fedoraforum.org> - 0.7.5-1
2ae4b3
- Rebuilt for 0.7.5
2ae4b3
2ae4b3
* Mon Jun 06 2005 Sindre Pedersen Bjordal <foolish[AT]fedoraforum.org> - 0.7.4-1
2ae4b3
- Rebuilt for 0.7.4
2ae4b3
2ae4b3
* Wed Jun 01 2005 Sindre Pedersen Bjordal <foolish[AT]fedoraforum.org> - 0.7.1-1
2ae4b3
- Rebuilt for 0.7.1
2ae4b3
- Smeg now use the stock gnome menu icon, removed pixmaps from %%files
2ae4b3
2ae4b3
* Wed Jun 01 2005 Sindre Pedersen Bjordal <foolish[AT]fedoraforum.org> - 0.7-2
2ae4b3
- Added missing dependency gnome-python2-gconf
2ae4b3
2ae4b3
* Tue May 31 2005 Sindre Pedersen Bjordal <foolish[AT]fedoraforum.org> - 0.7-1
2ae4b3
- Rebuilt for 0.7
2ae4b3
2ae4b3
* Mon May 30 2005 Sindre Pedersen Bjordal <foolish[AT]fedoraforum.org> - 0.6.2-2
2ae4b3
- Added desktop-file-utils to Buildrequires
2ae4b3
- Addded desktop-file-utils %%post and %%postun
2ae4b3
2ae4b3
* Sun May 29 2005 Sindre Pedersen Bjordal <foolish[AT]fedoraforum.org> - 0.6.2-1
2ae4b3
- Rebuilt for 0.6.2
2ae4b3
2ae4b3
* Mon May 23 2005 Sindre Pedersen Bjordal <foolish[AT]fedoraforum.org> - 0.5-1
2ae4b3
- Initial build