[packages/liblangtag] - added enum patch from git (should fix lt-tag.h usage from C++); release 3

qboosh qboosh at pld-linux.org
Mon May 23 21:21:00 CEST 2016


commit 50eee33e6c98b46bdc9d6948b3613b921f00fcdd
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon May 23 21:21:28 2016 +0200

    - added enum patch from git (should fix lt-tag.h usage from C++); release 3

 liblangtag-enum.patch | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++
 liblangtag.spec       |  4 +++-
 2 files changed, 59 insertions(+), 1 deletion(-)
---
diff --git a/liblangtag.spec b/liblangtag.spec
index 547e8c7..7f77eb1 100644
--- a/liblangtag.spec
+++ b/liblangtag.spec
@@ -8,11 +8,12 @@ Summary:	An interface library to access tags for identifying languages
 Summary(pl.UTF-8):	Biblioteka interfejsu dostępu do znaczników identyfikujących języki
 Name:		liblangtag
 Version:	0.6.0
-Release:	2
+Release:	3
 License:	LGPL v3+
 Group:		Libraries
 Source0:	https://bitbucket.org/tagoh/liblangtag/downloads/%{name}-%{version}.tar.bz2
 # Source0-md5:	dcd7a845a8a9b57ca96eb04a29083246
+Patch0:		%{name}-enum.patch
 URL:		http://tagoh.bitbucket.org/liblangtag/
 BuildRequires:	autoconf >= 2.62
 BuildRequires:	automake >= 1:1.11
@@ -145,6 +146,7 @@ Dokumentacja API biblioteki liblangtag.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %{__libtoolize}
diff --git a/liblangtag-enum.patch b/liblangtag-enum.patch
new file mode 100644
index 0000000..59265a5
--- /dev/null
+++ b/liblangtag-enum.patch
@@ -0,0 +1,56 @@
+From 3cc56cf32c006e7e8445c3ba49ffc128c646c88d Mon Sep 17 00:00:00 2001
+From: David Tardon <dtardon at redhat.com>
+Date: Wed, 23 Mar 2016 14:07:48 +0100
+Subject: [PATCH] enum must be declared before it's used
+
+---
+ liblangtag/lt-tag.h | 26 +++++++++++++-------------
+ 1 file changed, 13 insertions(+), 13 deletions(-)
+
+diff --git a/liblangtag/lt-tag.h b/liblangtag/lt-tag.h
+index 939acf5..78e3797 100644
+--- a/liblangtag/lt-tag.h
++++ b/liblangtag/lt-tag.h
+@@ -37,6 +37,19 @@ LT_BEGIN_DECLS
+  */
+ typedef struct _lt_tag_t	lt_tag_t;
+ 
++enum _lt_tag_filter_t {
++	LT_TAG_FILTER_NONE          = 0,
++	LT_TAG_FILTER_LANGUAGE      = 1 << 0,
++	LT_TAG_FILTER_EXTLANG       = 1 << 1,
++	LT_TAG_FILTER_SCRIPT        = 1 << 2,
++	LT_TAG_FILTER_REGION        = 1 << 3,
++	LT_TAG_FILTER_VARIANT       = 1 << 4,
++	LT_TAG_FILTER_EXTENSION     = 1 << 5,
++	LT_TAG_FILTER_PRIVATEUSE    = 1 << 6,
++	LT_TAG_FILTER_GRANDFATHERED = 1 << 7,
++	LT_TAG_FILTER_ALL           = -1
++};
++
+ /**
+  * lt_tag_filter_t:
+  * @LT_TAG_FILTER_NONE: all of objects filtered.
+@@ -55,19 +68,6 @@ typedef struct _lt_tag_t	lt_tag_t;
+  */
+ typedef enum _lt_tag_filter_t	lt_tag_filter_t;
+ 
+-enum _lt_tag_filter_t {
+-	LT_TAG_FILTER_NONE          = 0,
+-	LT_TAG_FILTER_LANGUAGE      = 1 << 0,
+-	LT_TAG_FILTER_EXTLANG       = 1 << 1,
+-	LT_TAG_FILTER_SCRIPT        = 1 << 2,
+-	LT_TAG_FILTER_REGION        = 1 << 3,
+-	LT_TAG_FILTER_VARIANT       = 1 << 4,
+-	LT_TAG_FILTER_EXTENSION     = 1 << 5,
+-	LT_TAG_FILTER_PRIVATEUSE    = 1 << 6,
+-	LT_TAG_FILTER_GRANDFATHERED = 1 << 7,
+-	LT_TAG_FILTER_ALL           = -1
+-};
+-
+ lt_tag_t                 *lt_tag_new                         (void);
+ lt_tag_t                 *lt_tag_ref                         (lt_tag_t       *tag);
+ void                      lt_tag_unref                       (lt_tag_t       *tag);
+-- 
+2.7.4.1.g5468f9e
+
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/liblangtag.git/commitdiff/50eee33e6c98b46bdc9d6948b3613b921f00fcdd



More information about the pld-cvs-commit mailing list