Add patch to fix icalvalue_kind enum generation (RH bug #1023020)

This commit is contained in:
Milan Crha 2013-11-21 16:23:51 +01:00
parent b45b989aed
commit 6229997d02
2 changed files with 18 additions and 1 deletions

12
libical-1.0-r1156.patch Normal file
View File

@ -0,0 +1,12 @@
diff -up libical-1.0/scripts/mkderivedvalues.pl.sort libical-1.0/scripts/mkderivedvalues.pl
--- libical-1.0/scripts/mkderivedvalues.pl.sort 2013-11-21 14:46:33.330067572 +0100
+++ libical-1.0/scripts/mkderivedvalues.pl 2013-11-21 14:46:47.037211733 +0100
@@ -63,7 +63,7 @@ if($opt_h){
print "typedef enum icalvalue_kind {\n";
print " ICAL_ANY_VALUE=$idx,\n";
- foreach $value (keys %h) {
+ foreach $value (sort keys %h) {
$idx++;
my $ucv = join("",map {uc(lc($_));} split(/-/,$value));

View File

@ -1,11 +1,12 @@
Summary: Reference implementation of the iCalendar data type and serialization format
Name: libical
Version: 1.0
Release: 3%{?dist}
Release: 4%{?dist}
License: LGPLv2 or MPLv1.1
URL: http://freeassociation.sourceforge.net/
Source: http://downloads.sourceforge.net/freeassociation/%{name}-%{version}.tar.gz
Patch0: libical-1.0-r1150.patch
Patch1: libical-1.0-r1156.patch
BuildRequires: bison, byacc, flex
BuildRequires: cmake
@ -26,6 +27,7 @@ applications that use libical.
%prep
%setup -q
%patch0 -p1 -b .r1150
%patch1 -p1 -b .r1156
%build
mkdir -p %{_target_platform}
@ -62,6 +64,9 @@ rm -fv %{buildroot}%{_libdir}/lib*.*a
%{_includedir}/libical/
%changelog
* Thu Nov 21 2013 Milan Crha <mcrha@redhat.com> - 1.0-4
- Add patch to fix icalvalue_kind enum generation (RH bug #1023020)
* Sun Oct 20 2013 Robert Scheck <robert@fedoraproject.org> 1.0-3
- Fixed timezone issue with evolution-data-server (#1021136)