]> git.pld-linux.org Git - packages/liblangtag.git/commitdiff
- updated to 0.6.4 auto/th/liblangtag-0.6.4-1
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 4 Mar 2023 17:15:15 +0000 (18:15 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Sat, 4 Mar 2023 17:15:15 +0000 (18:15 +0100)
- added tests patch to adjust tests for recent package data change

liblangtag-tests.patch [new file with mode: 0644]
liblangtag.spec

diff --git a/liblangtag-tests.patch b/liblangtag-tests.patch
new file mode 100644 (file)
index 0000000..6afe543
--- /dev/null
@@ -0,0 +1,12 @@
+Update following data/common/supplemental/supplementalMetadata.xml change
+--- liblangtag-0.6.4/tests/check-tag.c.orig    2021-09-27 06:52:04.000000000 +0200
++++ liblangtag-0.6.4/tests/check-tag.c 2023-03-04 15:04:16.449713051 +0100
+@@ -197,7 +197,7 @@ TDEF (lt_tag_canonicalize) {
+       fail_unless(lt_tag_parse(t1, "mo", NULL), "should be valid langtag.");
+       s = lt_tag_canonicalize(t1, NULL);
+       fail_unless(s != NULL, "Unable to be canonicalize.");
+-      fail_unless(lt_strcmp0(s, "ro-MD") == 0, "Unexpected result to be canonicalized.");
++      fail_unless(lt_strcmp0(s, "ro") == 0, "Unexpected result to be canonicalized.");
+       free(s);
+       lt_tag_unref(t1);
index 76e2f358748f6eebd813bcba0773446bf8f6648e..9bbda3962b2dbcde30047618dbbd6e593388a16a 100644 (file)
@@ -1,18 +1,19 @@
 #
 # Conditional build:
-%bcond_without static_libs     # static library build
+%bcond_without static_libs     # static library
 %bcond_without introspection   # GObject interface
 %bcond_without tests           # "make check" call
 
 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.3
+Version:       0.6.4
 Release:       1
 License:       LGPL v3+
 Group:         Libraries
 Source0:       https://bitbucket.org/tagoh/liblangtag/downloads/%{name}-%{version}.tar.bz2
-# Source0-md5: 015274eb284b1dc82bf7af1d1774ec64
+# Source0-md5: c93611c472b5875166b4a3a35a66a62d
+Patch0:                %{name}-tests.patch
 URL:           http://tagoh.bitbucket.org/liblangtag/
 BuildRequires: autoconf >= 2.62
 BuildRequires: automake >= 1:1.11
@@ -144,6 +145,7 @@ Dokumentacja API biblioteki liblangtag.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %{__libtoolize}
@@ -182,7 +184,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc AUTHORS ChangeLog NEWS README
+%doc AUTHORS NEWS README
 %attr(755,root,root) %{_libdir}/liblangtag.so.*.*.*
 %attr(755,root,root) %ghost %{_libdir}/liblangtag.so.1
 %dir %{_libdir}/%{name}
This page took 0.194108 seconds and 4 git commands to generate.