From: Jakub Bogusz Date: Sat, 4 Mar 2023 17:15:15 +0000 (+0100) Subject: - updated to 0.6.4 X-Git-Tag: auto/th/liblangtag-0.6.4-1 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=e791164163a51d80e3945903acb89214c1615ab1;p=packages%2Fliblangtag.git - updated to 0.6.4 - added tests patch to adjust tests for recent package data change --- diff --git a/liblangtag-tests.patch b/liblangtag-tests.patch new file mode 100644 index 0000000..6afe543 --- /dev/null +++ b/liblangtag-tests.patch @@ -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); diff --git a/liblangtag.spec b/liblangtag.spec index 76e2f35..9bbda39 100644 --- a/liblangtag.spec +++ b/liblangtag.spec @@ -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}