Compare commits

...
Sign in to create a new pull request.

3 commits

Author SHA1 Message Date
Fedora Release Engineering
40abc81219 dist-git conversion 2010-07-28 12:50:16 +00:00
xulchris
1ba78a4380 dont error on missing encoding bz#406791 2007-12-01 03:04:28 +00:00
Bill Nottingham
0b5fa4e351 Initialize branch F-7 for desktop-file-utils 2007-05-18 03:33:43 +00:00
4 changed files with 28 additions and 7 deletions

View file

View file

@ -1,6 +0,0 @@
# Makefile for source rpm: desktop-file-utils
# $Id$
NAME := desktop-file-utils
SPECFILE = $(firstword $(wildcard *.spec))
include ../common/Makefile.common

View file

@ -0,0 +1,22 @@
--- src/validate.c~ 2007-11-30 12:30:56.000000000 -0800
+++ src/validate.c 2007-11-30 12:52:01.000000000 -0800
@@ -453,7 +453,7 @@
void (*validate_type) (const char *value, const char *key, const char *locale, const char *filename, GnomeDesktopFile *df);
gboolean deprecated;
} key_table[] = {
- { "Encoding", validate_string },
+ { "Encoding", validate_string, TRUE },
{ "Version", validate_numeric },
{ "Name", validate_localestring },
{ "GenericName", validate_localestring },
@@ -735,10 +735,6 @@
strcmp (val, "Legacy-Mixed") != 0)
print_fatal (filename, "unknown Encoding type \"%s\", should be one of \"UTF-8\", \"Legacy-Mixed\"\n", val);
}
- else
- {
- print_fatal (filename, "required key \"Encoding\" not found\n");
- }
if (!gnome_desktop_file_get_raw (df, section,
"Name",

View file

@ -1,7 +1,7 @@
Summary: Utilities for manipulating .desktop files
Name: desktop-file-utils
Version: 0.12
Release: 4%{?dist}
Release: 5%{?dist}
URL: http://www.freedesktop.org/software/desktop-file-utils
Source0: %{name}-%{version}.tar.gz
License: GPL
@ -14,6 +14,7 @@ BuildRequires: emacs
Obsoletes: desktop-file-validator
Patch0: desktop-file-utils-0.12-make-vendor-optional.patch
Patch1: %{name}-0.12-encoding.patch
%description
.desktop files are used to describe an application for inclusion in
@ -26,6 +27,7 @@ fixing it up in the process.
%prep
%setup -q
%patch0 -p1 -b .make-vendor-optional
%patch1 -p0 -b .encoding~
%build
%configure
@ -44,6 +46,9 @@ rm -rf $RPM_BUILD_ROOT
%{_datadir}/emacs/site-lisp/
%changelog
* Fri Nov 30 2007 Christopher Stone <chris.stone@gmail.com> 0.12-5
- add enconding patch (bz #406791)
* Thu Mar 08 2007 Florian La Roche <laroche@redhat.com> - 0.12-4
- remove empty post/preun scripts completely