Blame SPECS/desktop-file-utils.spec

b0e174
%global pkg desktop-file-utils
b0e174
%global pkgname desktop-file-utils
b0e174
b0e174
Summary: Utilities for manipulating .desktop files
b0e174
Name: desktop-file-utils
b0e174
Version: 0.23
b0e174
Release: 8%{?dist}
b0e174
URL: https://www.freedesktop.org/software/desktop-file-utils
b0e174
Source0: https://www.freedesktop.org/software/desktop-file-utils/releases/%{name}-%{version}.tar.xz
b0e174
Source1: desktop-entry-mode-init.el
b0e174
# Add Pantheon to the list of desktop environments (#1333550, fdo#97385)
b0e174
# upstream patch by David Faure
b0e174
# https://cgit.freedesktop.org/xdg/desktop-file-utils/commit/?id=5b88c95c45e91781aed441c446210c6979350c3f
b0e174
Patch0: desktop-file-utils-0.23-add-pantheon.patch
b0e174
# Add 'font' as a valid media type (#1564650, fdo#105785)
b0e174
# patch from Matthias Clasen
b0e174
Patch1: desktop-file-utils-0.23-font-media.patch
b0e174
License: GPLv2+
b0e174
b0e174
BuildRequires: glib2-devel
b0e174
BuildRequires: emacs
b0e174
Requires: emacs-filesystem
b0e174
Provides: emacs-%{pkg} = %{version}-%{release}
b0e174
Provides: emacs-%{pkg}-el = %{version}-%{release}
b0e174
Obsoletes: emacs-%{pkg} < 0.20-3
b0e174
Obsoletes: emacs-%{pkg}-el < 0.20-3
b0e174
b0e174
%description
b0e174
.desktop files are used to describe an application for inclusion in
b0e174
GNOME or KDE menus.  This package contains desktop-file-validate which
b0e174
checks whether a .desktop file complies with the specification at
b0e174
http://www.freedesktop.org/standards/, and desktop-file-install
b0e174
which installs a desktop file to the standard directory, optionally
b0e174
fixing it up in the process.
b0e174
b0e174
b0e174
%prep
b0e174
%autosetup -p1
b0e174
b0e174
%build
b0e174
%configure
b0e174
make %{?_smp_mflags}
b0e174
b0e174
%install
b0e174
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
b0e174
b0e174
mkdir -p $RPM_BUILD_ROOT%{_emacs_sitelispdir}/%{pkg}
b0e174
mv $RPM_BUILD_ROOT%{_emacs_sitelispdir}/*.el* $RPM_BUILD_ROOT%{_emacs_sitelispdir}/%{pkg}
b0e174
install -Dpm 644 %{SOURCE1} $RPM_BUILD_ROOT%{_emacs_sitestartdir}/desktop-entry-mode-init.el
b0e174
touch $RPM_BUILD_ROOT%{_emacs_sitestartdir}/desktop-entry-mode-init.elc
b0e174
b0e174
%transfiletriggerin -- %{_datadir}/applications
b0e174
update-desktop-database &> /dev/null || :
b0e174
b0e174
%transfiletriggerpostun -- %{_datadir}/applications
b0e174
update-desktop-database &> /dev/null || :
b0e174
b0e174
%files
b0e174
%doc AUTHORS README NEWS
b0e174
%license COPYING
b0e174
%{_bindir}/*
b0e174
%{_mandir}/man1/desktop-file-install.1.gz
b0e174
%{_mandir}/man1/desktop-file-validate.1.gz
b0e174
%{_mandir}/man1/update-desktop-database.1.gz
b0e174
%{_mandir}/man1/desktop-file-edit.1.gz
b0e174
%{_emacs_sitestartdir}/desktop-entry-mode-init.el
b0e174
%ghost %{_emacs_sitestartdir}/desktop-entry-mode-init.elc
b0e174
%{_emacs_sitelispdir}/%{pkg}
b0e174
b0e174
%changelog
b0e174
* Mon Apr 09 2018 Adam Williamson <awilliam@redhat.com> - 0.23-8
b0e174
- Add 'font' as a valid media type (#1564650, fdo#105785)
b0e174
b0e174
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.23-7
b0e174
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
b0e174
b0e174
* Mon Feb 05 2018 Rex Dieter <rdieter@fedoraproject.org> - 0.23-6
b0e174
- scriplets: silence output, ignore errors
b0e174
- %%license COPYING
b0e174
- drop deprecated Group: tag
b0e174
b0e174
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.23-5
b0e174
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
b0e174
b0e174
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.23-4
b0e174
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
b0e174
b0e174
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.23-3
b0e174
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
b0e174
b0e174
* Sat Dec 31 2016 Kevin Kofler <Kevin@tigcc.ticalc.org> - 0.23-2
b0e174
- Add Pantheon to the list of desktop environments (#1333550, fdo#97385)
b0e174
b0e174
* Fri Jul 01 2016 Michael Catanzaro <mcatanzaro@gnome.org> - 0.23-1
b0e174
- Update to 0.23
b0e174
b0e174
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.22-7
b0e174
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
b0e174
b0e174
* Fri Aug 14 2015 Matthias Clasen <mclasen@redhat.com> - 0.22-6
b0e174
- Add file triggers for desktop file mime extraction
b0e174
b0e174
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.22-5
b0e174
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
b0e174
b0e174
* Sat Feb 21 2015 Till Maas <opensource@till.name> - 0.22-4
b0e174
- Rebuilt for Fedora 23 Change
b0e174
  https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code
b0e174
b0e174
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.22-3
b0e174
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
b0e174
b0e174
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.22-2
b0e174
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
b0e174
b0e174
* Thu Aug 29 2013 Kalev Lember <kalevlember@gmail.com> - 0.22-1
b0e174
- Update to 0.22
b0e174
b0e174
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.21-3
b0e174
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
b0e174
b0e174
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.21-2
b0e174
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
b0e174
b0e174
* Fri Oct 19 2012 Kalev Lember <kalevlember@gmail.com> - 0.21-1
b0e174
- Update to 0.21
b0e174
b0e174
* Thu Sep 06 2012 Dan Mashal <dan.mashal@fedoraproject.org> 0.20-4
b0e174
- Update F17 to 0.20 (#847097).
b0e174
b0e174
* Sat Aug 11 2012 Ville Skyttä <ville.skytta@iki.fi> - 0.20-3
b0e174
- Fold emacs-* subpackages into main (#690264).
b0e174
b0e174
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20-2
b0e174
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
b0e174
b0e174
* Fri May 18 2012 Matthias Clasen <mclasen@redhat.com> - 0.20-1
b0e174
- Update to 0.20
b0e174
b0e174
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.19-6
b0e174
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
b0e174
b0e174
* Fri Dec 23 2011 Matthias Clasen <mclasen@redhat.com> - 0.19-5
b0e174
- Fix up locale lists just like other lists
b0e174
b0e174
* Tue Dec 20 2011 Matthias Clasen <mclasen@redhat.com> - 0.19-1
b0e174
- Update to 0.19: support for Unity as desktop env, and support
b0e174
  for Keywords
b0e174
b0e174
* Mon Jul 04 2011 Adam Williamson <awilliam@redhat.com> - 0.18-4
b0e174
- add unity.patch from upstream: add Unity to list of registered
b0e174
  environments
b0e174
b0e174
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.18-3
b0e174
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
b0e174
b0e174
* Sun Jan 30 2011 Ville Skyttä <ville.skytta@iki.fi> - 0.18-2
b0e174
- Add desktop-entry-mode-init.el, fix emacs site-start dir ownership.
b0e174
b0e174
* Thu Jan 13 2011 Matthias Clasen <mclasen@redhat.com> - 0.18-1
b0e174
- Update to 0.18
b0e174
b0e174
* Fri Nov  5 2010 Matthias Clasen <mclasen@redhat.com> - 0.16-3
b0e174
- Don't warn about x-scheme-handler pseudo-mime-types
b0e174
b0e174
* Sat Sep 25 2010 Parag Nemade <paragn AT fedoraproject.org> - 0.16-2
b0e174
- Merge-review cleanup (#225681)
b0e174
b0e174
* Thu Apr  1 2010 Matthias Clasen <mclasen@redhat.com> 0.16-1
b0e174
- Update to 0.16
b0e174
b0e174
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.15-8
b0e174
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
b0e174
b0e174
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.15-7
b0e174
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
b0e174
b0e174
* Wed Feb 04 2009 Richard Hughes <rhughes@redhat.com> - 0.15-6
b0e174
- Panu seems to be shipping the prov file in rpmbuild. Remove it here until we
b0e174
  work out where it belongs.
b0e174
b0e174
* Wed Feb 04 2009 Richard Hughes <rhughes@redhat.com> - 0.15-5
b0e174
- Panu merged the rpm bits for this feature, but we've got a new provides
b0e174
  filename. Respin this package with the new name.
b0e174
b0e174
* Thu Jan 22 2009 Richard Hughes <rhughes@redhat.com> - 0.15-4
b0e174
- Rename desktop-mime-type.prov to desktop_mime_type.prov and add the tiny
b0e174
  macros.desktop_mime_type file so that we can trivially patch rpm to enable
b0e174
  this new functionality.
b0e174
b0e174
* Fri May 02 2008 Richard Hughes <rhughes@redhat.com> - 0.15-3
b0e174
- Add desktop-mime-type.prov so that we can automatically
b0e174
  generate mimetype provides for packages at build time.
b0e174
  This lets us do some cool things with PackageKit in the future.
b0e174
b0e174
* Wed Mar 19 2008 Ray Strode <rstrode@redhat.com> - 0.15-2
b0e174
- Drop old unneeded obsoletes on desktop-file-validator
b0e174
(bug 225681)
b0e174
b0e174
* Tue Mar  4 2008 Matthias Clasen <mclasen@redhat.com> - 0.15-1
b0e174
- Update to 0.15
b0e174
- Drop upstreamed patch
b0e174
b0e174
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.14-3
b0e174
- Autorebuild for GCC 4.3
b0e174
b0e174
* Thu Dec  6 2007 Ray Strode <rstrode@redhat.com> 0.14-2
b0e174
- make icon extension a warning not an error
b0e174
b0e174
* Fri Nov 30 2007 Christopher Stone <chris.stone@gmail.com> 0.14-1
b0e174
- Upstream sync
b0e174
- Remove no longer needed short option patch
b0e174
b0e174
* Wed Aug 15 2007 Matthias Clasen <mclasen@redhat.com> - 0.13-3
b0e174
- Make the -m option work (#232761)
b0e174
b0e174
* Mon Aug  6 2007 Matthias Clasen <mclasen@redhat.com> - 0.13-2
b0e174
- Update license field
b0e174
b0e174
* Tue Jun  5 2007 Matthias Clasen <mclasen@redhat.com> - 0.13-1
b0e174
- Update to 0.13, which features a completely rewritten validator
b0e174
b0e174
* Thu Mar 08 2007 Florian La Roche <laroche@redhat.com> - 0.12-4
b0e174
- remove empty post/preun scripts completely
b0e174
b0e174
* Tue Nov 28 2006 Ray Strode <rstrode@redhat.com> - 0.12-3
b0e174
- drop some rm -f cruft
b0e174
- don't call update-desktop-database from %%post or %%postun
b0e174
b0e174
* Tue Nov 28 2006 Ray Strode <rstrode@redhat.com> - 0.12-2
b0e174
- make --vendor optional
b0e174
b0e174
* Tue Nov 28 2006 Ray Strode <rstrode@redhat.com> - 0.12-1
b0e174
- Update to 0.12
b0e174
b0e174
* Fri Oct 27 2006 Ray Strode <rstrode@redhat.com> - 0.11-4
b0e174
- commit the fix attempted in 0.11-2 and 0.11-3 to the right
b0e174
  function...
b0e174
b0e174
* Fri Oct 27 2006 Ray Strode <rstrode@redhat.com> - 0.11-3
b0e174
- actually apply the patch written in 0.11-2
b0e174
b0e174
* Thu Oct 26 2006 Ray Strode <rstrode@redhat.com> - 0.11-2
b0e174
- make desktop file validation non-fatal until we
b0e174
  add support for categories beginning with X- and clean up
b0e174
  our menu system to not require invalid categories
b0e174
  (bug 212048)
b0e174
b0e174
* Mon Oct 23 2006 Matthias Clasen <mclasen@redhat.com> - 0.11-1
b0e174
- Update to 0.11
b0e174
b0e174
* Wed Jul 26 2006 Jesse Keating <jkeating@redhat.com> - 0.10-7
b0e174
- rebuild
b0e174
b0e174
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0.10-6.1
b0e174
- bump again for double-long bug on ppc(64)
b0e174
b0e174
* Fri Feb 10 2006 Ray Strode <rstrode@redhat.com> - 0.10-6
b0e174
- call update-desktop-database in %%preun (bug 180898)
b0e174
- don't fail if update-desktop-database fails
b0e174
- don't use %%makeinstall
b0e174
b0e174
* Fri Feb 10 2006 Ray Strode <rstrode@redhat.com> - 0.10-5
b0e174
- call update-desktop-database in %%post (bug 180898)
b0e174
b0e174
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 0.10-4.1
b0e174
- rebuilt for new gcc4.1 snapshot and glibc changes
b0e174
b0e174
* Sun Jan 22 2006 Ray Strode <rstrode@redhat.com> - 0.10-4
b0e174
- don't use uninitialized memory (bug 178591)
b0e174
b0e174
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
b0e174
- rebuilt
b0e174
b0e174
* Wed Aug 31 2005 Ray Strode <rstrode@redhat.com> - 0.10-3
b0e174
- bump build requires for glib to 2.2.0 (bug #146585).
b0e174
b0e174
* Thu May 12 2005 Ray Strode <rstrode@redhat.com> - 0.10-2
b0e174
- Add build requires for emacs (bug #141297).
b0e174
b0e174
* Wed Jan 26 2005 Matthias Clasen <mclasen@redhat.com> - 0.10-1
b0e174
- Update to 0.10
b0e174
b0e174
* Mon Oct 18 2004 Miloslav Trmac <mitr@redhat.com> - 0.9-2
b0e174
- Output error message instead of assertion failure (#134934)
b0e174
b0e174
* Tue Sep 28 2004 Mark McLoughlin <markmc@redhat.com> 0.9-1
b0e174
- Update to 0.9, remove upstreamed patches
b0e174
b0e174
* Mon Sep 27 2004 Ray Strode <rstrode@redhat.com> 0.8-6
b0e174
- Swap if and else in egg_desktop_entries_get_locale_encoding
b0e174
  to prevent allocating massive amounts of unneeded ram.
b0e174
b0e174
* Mon Sep 27 2004 Ray Strode <rstrode@redhat.com> 0.8-5
b0e174
- Swap if and else in egg_desktop_entries_get_locale_country
b0e174
  to prevent allocating massive amounts of unneeded ram.
b0e174
b0e174
* Thu Sep 23 2004 Ray Strode <rstrode@redhat.com> 0.8-4
b0e174
- Fix the fix for --remove-show-in option
b0e174
b0e174
* Thu Sep 23 2004 Ray Strode <rstrode@redhat.com> 0.8-3
b0e174
- Fix --remove-show-in option
b0e174
b0e174
* Mon Sep 13 2004 Dan Williams <dcbw@redhat.com> 0.8-2
b0e174
- Fix RH #131983 (annoying log message about "entries != NULL")
b0e174
b0e174
* Fri Sep  3 2004 Mark McLoughlin <markmc@redhat.com> 0.8-1
b0e174
- Update to 0.8
b0e174
b0e174
* Sat Jul 31 2004 Dan Williams <dcbw@redhat.com> 0.7-1
b0e174
- Update to 0.7
b0e174
b0e174
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
b0e174
- rebuilt
b0e174
b0e174
* Mon Mar  1 2004 Dan Williams <dcbw@redhat.com> 0.4-2
b0e174
- Fix RH #117201, initial comment fails validation
b0e174
- Add in, but do not use, Frederic Crozat's freedesktop.org
b0e174
    menu-spec 0.8 patch
b0e174
b0e174
* Thu Feb 19 2004 Mark McLoughlin <markmc@redhat.com> 0.4-1
b0e174
- Update to 0.4
b0e174
b0e174
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
b0e174
- rebuilt
b0e174
b0e174
* Wed Sep  3 2003 Havoc Pennington <hp@redhat.com> 0.3-10
b0e174
- fix for #103276 (int/size_t issue) from twoerner
b0e174
b0e174
* Mon Jul  7 2003 Alexander Larsson <alexl@redhat.com> 0.3-9
b0e174
- Rebuild
b0e174
b0e174
* Mon Jun 23 2003 Havoc Pennington <hp@redhat.com> 0.3-8
b0e174
- rebuild
b0e174
b0e174
* Thu Jun  5 2003 Jonathan Blandford <jrb@redhat.com> 0.3-6
b0e174
- Backport patch to allow @MODIFIER in locale keys
b0e174
b0e174
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
b0e174
- rebuilt
b0e174
b0e174
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
b0e174
- rebuilt
b0e174
b0e174
* Fri Dec  6 2002 Havoc Pennington <hp@redhat.com>
b0e174
- rebuild
b0e174
b0e174
* Tue Aug  6 2002 Havoc Pennington <hp@redhat.com>
b0e174
- fix more error messages
b0e174
b0e174
* Tue Aug  6 2002 Havoc Pennington <hp@redhat.com>
b0e174
- remove old symlinks before creating new ones, chills out 
b0e174
  a lot of error messages
b0e174
b0e174
* Tue Aug  6 2002 Havoc Pennington <hp@redhat.com>
b0e174
- version 0.3
b0e174
b0e174
* Wed Jul 24 2002 Havoc Pennington <hp@redhat.com>
b0e174
- 0.2.95 cvs snap, should fix OnlyShowIn
b0e174
b0e174
* Mon Jul 22 2002 Havoc Pennington <hp@redhat.com>
b0e174
- 0.2.94 cvs snap, adds --print-available
b0e174
b0e174
* Tue Jul  9 2002 Havoc Pennington <hp@redhat.com>
b0e174
- 0.2.93 cvs snap with a crash fixed, and corrects [KDE Desktop Entry]
b0e174
b0e174
* Fri Jun 21 2002 Havoc Pennington <hp@redhat.com>
b0e174
- 0.2.92 cvs snap with --remove-key and checking for OnlyShowIn
b0e174
  and missing trailing semicolons on string lists
b0e174
b0e174
* Fri Jun 21 2002 Havoc Pennington <hp@redhat.com>
b0e174
- 0.2.91 cvs snap with --copy-name-to-generic-name and
b0e174
  --copy-generic-name-to-name
b0e174
b0e174
* Sun Jun 16 2002 Havoc Pennington <hp@redhat.com>
b0e174
- 0.2.90 cvs snap with --delete-original fixed
b0e174
b0e174
* Fri Jun 07 2002 Havoc Pennington <hp@redhat.com>
b0e174
- rebuild in different environment
b0e174
b0e174
* Wed Jun  5 2002 Havoc Pennington <hp@redhat.com>
b0e174
- 0.2
b0e174
b0e174
* Thu May 23 2002 Tim Powers <timp@redhat.com>
b0e174
- automated rebuild
b0e174
b0e174
* Thu May 09 2002 Havoc Pennington <hp@redhat.com>
b0e174
- rebuild in different environment
b0e174
b0e174
* Thu May  9 2002 Havoc Pennington <hp@redhat.com>
b0e174
- initial build