summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-11-30 15:45:34 +0000
committerCoprDistGit <infra@openeuler.org>2024-11-30 15:45:34 +0000
commit8902916c3eacd3fed9f97a3353e900cc7294c7cc (patch)
tree04f9b0f052a0f06f883a22047f78e2b6d349abb2
parent6897b5ae4e0df5262b008bb10b2a65c6a15cb04b (diff)
automatic import of gettext
-rw-r--r--.gitignore1
-rw-r--r--gettext-0.21.1-covscan.patch70
-rw-r--r--gettext-0.22-disable-libtextstyle.patch110
-rw-r--r--gettext.spec328
-rw-r--r--sources1
5 files changed, 510 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..30bc220 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/gettext-0.22.5.tar.gz
diff --git a/gettext-0.21.1-covscan.patch b/gettext-0.21.1-covscan.patch
new file mode 100644
index 0000000..af87a6d
--- /dev/null
+++ b/gettext-0.21.1-covscan.patch
@@ -0,0 +1,70 @@
+diff --git a/gettext-tools/src/msgl-cat.c b/gettext-tools/src/msgl-cat.c
+index 965cc8c..38c7ca1 100644
+--- a/gettext-tools/src/msgl-cat.c
++++ b/gettext-tools/src/msgl-cat.c
+@@ -307,6 +307,7 @@ catenate_msgdomain_list (string_list_ty *file_list,
+ mp->msgid);
+ multiline_error (xstrdup (""),
+ xasprintf ("%s\n", errormsg));
++ free (errormsg);
+ }
+ }
+ else
+diff --git a/gettext-tools/src/x-csharp.c b/gettext-tools/src/x-csharp.c
+index 13d4a53..669db2f 100644
+--- a/gettext-tools/src/x-csharp.c
++++ b/gettext-tools/src/x-csharp.c
+@@ -561,6 +561,7 @@ comment_line_end (size_t chars_to_remove)
+ buffer[buflen] = '\0';
+ savable_comment_add (buffer);
+ lexical_context = lc_outside;
++ free (buffer);
+ }
+
+
+diff --git a/gettext-tools/src/x-java.c b/gettext-tools/src/x-java.c
+index e89ab95..6c1b4a7 100644
+--- a/gettext-tools/src/x-java.c
++++ b/gettext-tools/src/x-java.c
+@@ -461,6 +461,7 @@ comment_line_end (size_t chars_to_remove)
+ --buflen;
+ buffer[buflen] = '\0';
+ savable_comment_add (buffer);
++ free (buffer);
+ }
+
+
+diff --git a/gettext-tools/src/x-rst.c b/gettext-tools/src/x-rst.c
+index cde1ee6..82f645f 100644
+--- a/gettext-tools/src/x-rst.c
++++ b/gettext-tools/src/x-rst.c
+@@ -651,6 +651,8 @@ extract_rsj (FILE *f,
+ else
+ goto invalid_rsj;
+
++ free (s1);
++
+ /* Parse a comma. */
+ c = phase2_getc ();
+ if (c == '}')
+@@ -667,6 +669,7 @@ extract_rsj (FILE *f,
+
+ fp = NULL;
+ real_file_name = NULL;
++ free (logical_file_name);
+ logical_file_name = NULL;
+ line_number = 0;
+
+diff --git a/gettext-tools/src/xg-arglist-callshape.c b/gettext-tools/src/xg-arglist-callshape.c
+index 06b7076..2189aac 100644
+--- a/gettext-tools/src/xg-arglist-callshape.c
++++ b/gettext-tools/src/xg-arglist-callshape.c
+@@ -118,6 +118,7 @@ split_keywordspec (const char *spec,
+ memcpy (xcomment, xcomment_start, xcomment_len);
+ xcomment[xcomment_len] = '\0';
+ string_list_append (&xcomments, xcomment);
++ free (xcomment);
+ }
+ else
+ break;
+
diff --git a/gettext-0.22-disable-libtextstyle.patch b/gettext-0.22-disable-libtextstyle.patch
new file mode 100644
index 0000000..771c49c
--- /dev/null
+++ b/gettext-0.22-disable-libtextstyle.patch
@@ -0,0 +1,110 @@
+diff -ur gettext-0.22.4.orig/configure.ac gettext-0.22.4/configure.ac
+--- gettext-0.22.4.orig/configure.ac 2022-10-09 08:05:42.000000000 +0530
++++ gettext-0.22.4/configure.ac 2024-02-13 12:47:32.099238869 +0530
+@@ -37,7 +37,7 @@
+
+ dnl Checks for library functions.
+
+-AC_CONFIG_SUBDIRS([gettext-runtime libtextstyle gettext-tools])
++AC_CONFIG_SUBDIRS([gettext-runtime gettext-tools])
+
+ AM_EXTRA_RECURSIVE_TARGETS([maintainer-update-po])
+
+@@ -49,7 +49,7 @@
+ dnl Optional Features: AC_ARG_ENABLE calls
+ dnl Optional Packages: AC_ARG_WITH calls
+ dnl Some influential environment variables: AC_ARG_VAR calls
+-esyscmd([{ cd gettext-runtime && autoconf --trace=AC_ARG_ENABLE:'$n([$1],[$2])' --trace=AC_ARG_WITH:'$n([$1],[$2])' --trace=AC_ARG_VAR:'$n($@)' && cd ..; cd libtextstyle && autoconf --trace=AC_ARG_ENABLE:'$n([$1],[$2])' --trace=AC_ARG_WITH:'$n([$1],[$2])' --trace=AC_ARG_VAR:'$n($@)' && cd ..; { cd gettext-tools && autoconf --trace=AC_ARG_ENABLE:'$n([$1],[$2])' --trace=AC_ARG_WITH:'$n([$1],[$2])' --trace=AC_ARG_VAR:'$n($@)' && cd ..; } | grep -v installed.libtextstyle | grep -v installed.csharp | grep -v 'installed C#'; } | sed -f build-aux/ac-help.sed ])
++esyscmd([{ cd gettext-runtime && autoconf --trace=AC_ARG_ENABLE:'$n([$1],[$2])' --trace=AC_ARG_WITH:'$n([$1],[$2])' --trace=AC_ARG_VAR:'$n($@)' && cd ..; { cd gettext-tools && autoconf --trace=AC_ARG_ENABLE:'$n([$1],[$2])' --trace=AC_ARG_WITH:'$n([$1],[$2])' --trace=AC_ARG_VAR:'$n($@)' && cd ..; } | grep -v installed.csharp | grep -v 'installed C#'; } | sed -f build-aux/ac-help.sed ])
+
+ AC_CONFIG_FILES([Makefile])
+
+diff -ur gettext-0.22.4.orig/gettext-tools/libgettextpo/textstyle.in.h gettext-0.22.4/gettext-tools/libgettextpo/textstyle.in.h
+--- gettext-0.22.4.orig/gettext-tools/libgettextpo/textstyle.in.h 2023-09-19 02:06:31.000000000 +0530
++++ gettext-0.22.4/gettext-tools/libgettextpo/textstyle.in.h 2024-02-13 13:04:15.238643775 +0530
+@@ -254,8 +254,9 @@
+
+ static inline file_ostream_t
+ file_ostream_create (FILE *fp)
+-{
+- return fp;
++{
++ /* Closing the stream we return should not close 'fp'. */
++ return fdopen (dup (fileno (fp)), "w");
+ }
+
+ static inline bool
+@@ -676,10 +677,10 @@
+ static inline noop_styled_ostream_t
+ noop_styled_ostream_create (ostream_t destination, bool pass_ownership)
+ {
+- if (!pass_ownership)
+- /* Not supported without the real libtextstyle. */
+- abort ();
+- return destination;
++ if (pass_ownership)
++ return destination;
++ else
++ return fdopen (dup (fileno (destination)), "w");
+ }
+
+ static inline bool
+diff -ur gettext-0.22.4.orig/gettext-tools/Makefile.am gettext-0.22.4/gettext-tools/Makefile.am
+--- gettext-0.22.4.orig/gettext-tools/Makefile.am 2023-09-19 01:38:31.000000000 +0530
++++ gettext-0.22.4/gettext-tools/Makefile.am 2024-02-13 12:49:27.145661060 +0530
+@@ -19,7 +19,7 @@
+ AUTOMAKE_OPTIONS = 1.5 gnu no-dependencies
+ ACLOCAL_AMFLAGS = -I m4 -I ../gettext-runtime/m4 -I ../m4 -I gnulib-m4 -I libgrep/gnulib-m4 -I libgettextpo/gnulib-m4
+
+-SUBDIRS = gnulib-lib libgrep src libgettextpo po its projects styles emacs misc man m4 tests system-tests gnulib-tests examples doc
++SUBDIRS = gnulib-lib libgrep libgettextpo src po its projects styles emacs misc man m4 tests system-tests gnulib-tests examples doc
+
+ EXTRA_DIST = misc/DISCLAIM
+ MOSTLYCLEANFILES = core *.stackdump
+diff -ur gettext-0.22.4.orig/gettext-tools/src/Makefile.am gettext-0.22.4/gettext-tools/src/Makefile.am
+--- gettext-0.22.4.orig/gettext-tools/src/Makefile.am 2023-11-17 17:14:38.000000000 +0530
++++ gettext-0.22.4/gettext-tools/src/Makefile.am 2024-02-13 13:06:34.194367930 +0530
+@@ -311,19 +311,9 @@
+ cldr_plurals_CFLAGS = $(AM_CFLAGS) $(INCXML)
+ cldr_plurals_LDADD = libgettextsrc.la $(LDADD)
+
+-if USE_INSTALLED_LIBTEXTSTYLE
+-LT_LIBTEXTSTYLE = @LTLIBTEXTSTYLE@
+-else
+-# How to get the include files of libtextstyle.
+-textstyle.h textstyle/stdbool.h textstyle/version.h textstyle/woe32dll.h:
+- here=`pwd`; \
+- cd ../../libtextstyle/lib && \
+- $(MAKE) install-nobase_includeHEADERS install-nobase_nodist_includeHEADERS includedir="$$here"
+-BUILT_SOURCES += textstyle.h textstyle/stdbool.h textstyle/version.h textstyle/woe32dll.h
+-MOSTLYCLEANFILES += textstyle.h textstyle/stdbool.h textstyle/version.h textstyle/woe32dll.h
+-# Where to find the built libtextstyle library.
+-LT_LIBTEXTSTYLE = ../../libtextstyle/lib/libtextstyle.la
+-endif
++# Use the dummy libtextstyle from gnulib, as libgettextpo does.
++LT_LIBTEXTSTYLE =
++AM_CPPFLAGS += -I../libgettextpo -I$(top_srcdir)/libgettextpo
+
+ # How to build libgettextsrc.la.
+ # Need ../gnulib-lib/libgettextlib.la.
+diff -ur gettext-0.22.4.orig/Makefile.am gettext-0.22.4/Makefile.am
+--- gettext-0.22.4.orig/Makefile.am 2023-11-17 17:39:11.000000000 +0530
++++ gettext-0.22.4/Makefile.am 2024-02-13 12:44:18.309841774 +0530
+@@ -19,7 +19,7 @@
+ AUTOMAKE_OPTIONS = 1.5 gnu no-dependencies
+ ACLOCAL_AMFLAGS = -I m4
+
+-SUBDIRS = gnulib-local gettext-runtime libtextstyle gettext-tools
++SUBDIRS = gnulib-local gettext-runtime gettext-tools
+
+ changelog_etc = \
+ gettext-runtime/ChangeLog.0 \
+@@ -87,7 +87,7 @@
+ cmp -s $(srcdir)/gettext-runtime/m4/xsize.m4 $(srcdir)/gettext-tools/gnulib-m4/xsize.m4
+ cmp -s $(srcdir)/gettext-runtime/man/help2man $(srcdir)/gettext-tools/man/help2man
+ cmp -s $(srcdir)/gettext-runtime/man/x-to-1.in $(srcdir)/gettext-tools/man/x-to-1.in
+- cmp -s $(srcdir)/libtextstyle/m4/libtextstyle.m4 $(srcdir)/gettext-tools/gnulib-m4/libtextstyle.m4
++# cmp -s $(srcdir)/libtextstyle/m4/libtextstyle.m4 $(srcdir)/gettext-tools/gnulib-m4/libtextstyle.m4
+ cmp -s $(srcdir)/gettext-tools/examples/hello-java-awt/m4/TestAWT.java $(srcdir)/gettext-tools/examples/hello-java-swing/m4/TestAWT.java
+ cmp -s $(srcdir)/gettext-tools/examples/hello-java-awt/m4/TestAWT.class $(srcdir)/gettext-tools/examples/hello-java-swing/m4/TestAWT.class
+ # Verify that all files have appropriate copyright headers.
diff --git a/gettext.spec b/gettext.spec
new file mode 100644
index 0000000..c00ab21
--- /dev/null
+++ b/gettext.spec
@@ -0,0 +1,328 @@
+%bcond_with jar
+%bcond_with java
+%bcond_without check
+
+%global archiveversion 0.22.5
+
+Name: gettext
+Version: 0.22.5
+Release: 1
+License: GPLv3+ and LGPLv2+
+Summary: GNU gettext utilities are a set of tools that provides a framework to help other GNU packages produce multi-lingual messages.
+URL: https://www.gnu.org/software/gettext/
+Source: https://ftp.gnu.org/pub/gnu/gettext/%{name}-%{version}.tar.gz
+Patch1: gettext-0.22-disable-libtextstyle.patch
+Patch2: gettext-0.21.1-covscan.patch
+
+
+BuildRequires: gcc-c++, emacs, xz, chrpath, autoconf, automake
+BuildRequires: ncurses-devel, libxml2-devel, glib2-devel, libunistring-devel
+%if %{with java}
+BuildRequires: gcc-java, libgcj
+BuildRequires: java-1.6.0-openjdk-devel
+%if %{with jar}
+BuildRequires: %{_bindir}/fastjar
+BuildRequires: zip, unzip
+%endif
+%endif
+# Requires: %{name}-libs%{_isa} = %{version}-%{release}
+Conflicts: filesystem < 3
+Provides: /bin/gettext
+Provides: bundled(gnulib)
+Provides: bundled(libcroco) = 0.6.12
+Provides: %{name}-libs = %{version}-%{release}
+Obsoletes: %{name}-libs < %{version}-%{release}
+
+%description
+GNU gettext is an important step for the GNU Translation Project, as it
+is an asset on which we may build many other steps. This package offers
+to programmers, translators, and even users, a well integrated set of
+tools and documentation. Specifically, the GNU gettext utilities are a
+set of tools that provides a framework to help other GNU packages
+produce multi-lingual messages. These tools include a set of conventions
+about how programs should be written to support message catalogs, a
+directory and file naming organization for the message catalogs themselves,
+a runtime library supporting the retrieval of translated messages, and
+a few stand-alone programs to massage in various ways the sets of
+translatable strings, or already translated strings. A special GNU Emacs
+mode also helps interested parties in preparing these sets, or bringing
+them up to date.
+
+%package devel
+Summary: Development files for %{name}
+License: LGPLv2+ and GPLv3+
+Requires: %{name} = %{version}-%{release}
+Requires(post): info
+Requires(preun): info
+Requires: xz
+Obsoletes: gettext-autopoint < 0.18.1.1-3
+Provides: gettext-autopoint = %{version}-%{release}
+Obsoletes: %{name}-common-devel < %{version}-%{release}
+Provides: %{name}-common-devel = %{version}-%{release}
+Obsoletes: msghack < %{version}-%{release}
+Provides: msghack = %{version}-%{release}
+
+%description devel
+This package provides development files and tools which help edit/alter
+po files, if you need to compile gettext related application/library or
+edit/alter po files, you should install this package.
+want to add gettext support for your project.
+
+%package -n emacs-%{name}
+Summary: Support for editing po files within GNU Emacs
+Group: Application/Editors
+BuildArch: noarch
+# help users find po-mode.el
+Provides: emacs-po-mode
+Requires: emacs(bin) >= %{_emacs_version}
+Provides: emacs-%{name}-el = %{version}-%{release}
+Obsoletes: emacs-%{name}-el < %{version}-%{release}
+
+%description -n emacs-%{name}
+This package provides a major mode for editing po files within GUN Emacs
+
+%package help
+Summary: help info for %{name}
+
+%description help
+This package contains man, license, info, readme, copyright, license.
+
+%prep
+%autosetup -n %{name}-%{version} -p1
+
+sed -e 's/\(gl_cv_libxml_force_included=\)yes/\1no/' \
+ -i libtextstyle/configure
+
+%build
+%if %{with java}
+export JAVAC=gcj
+%if %{with jar}
+export JAR=fastjar
+%endif
+%endif
+%ifarch ppc ppc64 ppc64le
+export CFLAGS="$RPM_OPT_FLAGS -D__SUPPORT_SNAN__"
+%endif
+export CPPFLAGS="-I%{_includedir}/libxml2"
+export LIBS="-lxml2"
+# automake upgrade to 1.17 and autoconf upgrade to 2.72, but gettext configure etc files also 1.16.5, so autoreconf
+autoreconf
+%configure --without-included-gettext --enable-nls --disable-static \
+ --enable-shared --with-pic --disable-csharp --disable-rpath \
+%if %{with java}
+ --enable-java \
+%else
+ --disable-java --disable-native-java \
+%endif
+ --with-xz
+
+make %{?_smp_mflags} %{?with_java:GCJFLAGS="-findirect-dispatch"}
+
+
+%install
+make install DESTDIR=${RPM_BUILD_ROOT} INSTALL="%{__install} -p" \
+ lispdir=%{_datadir}/emacs/site-lisp/gettext \
+ aclocaldir=%{_datadir}/aclocal EXAMPLESFILES=""
+
+# make preloadable_libintl.so executable
+chmod 755 ${RPM_BUILD_ROOT}%{_libdir}/preloadable_libintl.so
+
+rm -f ${RPM_BUILD_ROOT}%{_infodir}/dir
+
+# doc relocations
+for i in gettext-runtime/man/*.html; do
+ rm ${RPM_BUILD_ROOT}%{_datadir}/doc/gettext/`basename $i`
+done
+rm -r ${RPM_BUILD_ROOT}%{_datadir}/doc/gettext/javadoc*
+rm -rf ${RPM_BUILD_ROOT}%{_datadir}/doc/gettext/examples
+
+rm -rf htmldoc
+mkdir htmldoc
+mv ${RPM_BUILD_ROOT}%{_datadir}/doc/gettext/* ${RPM_BUILD_ROOT}/%{_datadir}/doc/libasprintf/* htmldoc
+rm -r ${RPM_BUILD_ROOT}%{_datadir}/doc/libasprintf
+rm -r ${RPM_BUILD_ROOT}%{_datadir}/doc/gettext
+
+%if %{with jar}
+%else
+rm -f ${RPM_BUILD_ROOT}%{_datadir}/%{name}/libintl.jar
+%endif
+
+rm -f ${RPM_BUILD_ROOT}%{_datadir}/%{name}/gettext.jar
+
+mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}/its
+
+rm ${RPM_BUILD_ROOT}%{_libdir}/lib*.la
+rm ${RPM_BUILD_ROOT}%{_libdir}/libgettext{src,lib}.so
+
+install -d ${RPM_BUILD_ROOT}%{_emacs_sitestartdir}
+mv ${RPM_BUILD_ROOT}%{_emacs_sitelispdir}/%{name}/start-po.el ${RPM_BUILD_ROOT}%{_emacs_sitestartdir}
+rm ${RPM_BUILD_ROOT}%{_emacs_sitelispdir}/%{name}/start-po.elc
+
+%find_lang %{name}-runtime
+%find_lang %{name}-tools
+cat %{name}-*.lang > %{name}.lang
+
+# cleanup rpaths
+for i in $RPM_BUILD_ROOT%{_bindir}/* `find $RPM_BUILD_ROOT%{_libdir} -type f`; do
+ if file $i | grep "ELF 64-bit" >/dev/null; then
+ chrpath -l $i && chrpath --delete $i
+ fi
+done
+
+
+%if %{with check}
+%check
+export LD_LIBRARY_PATH=$RPM_BUILD_ROOT%{_libdir}:$PWD/gettext-tools/intl/.libs
+make check LIBUNISTRING=-lunistring
+%endif
+
+%ldconfig_scriptlets libs
+
+%files -f %{name}.lang
+%doc gettext-runtime/BUGS
+%doc gettext-tools/misc/DISCLAIM README
+%doc NEWS THANKS
+%doc gettext-runtime/man/*.1.html
+%doc gettext-runtime/intl/COPYING*
+%license COPYING AUTHORS
+%{_bindir}/*
+%exclude %{_bindir}/autopoint
+%exclude %{_bindir}/gettextize
+%{_libdir}/%{name}
+%if %{with java}
+%exclude %{_libdir}/%{name}/gnu.gettext.*
+%endif
+%dir %{_datadir}/%{name}
+%dir %{_datadir}/%{name}/its
+%{_datadir}/%{name}/ABOUT-NLS
+%{_datadir}/%{name}/po
+%{_datadir}/%{name}/styles
+%dir %{_datadir}/%{name}-%{archiveversion}
+%{_datadir}/%{name}-%{archiveversion}/its
+%{_libdir}/libasprintf.so.0*
+%{_libdir}/libgettextpo.so.0*
+%{_libdir}/libgettextlib-0.*.so
+%{_libdir}/libgettextsrc-0.*.so
+%if %{with jar}
+%{_datadir}/%{name}/libintl.jar
+%endif
+
+%files devel
+%doc gettext-runtime/man/*.3.html ChangeLog
+%{_bindir}/autopoint
+%{_bindir}/gettextize
+%{_datadir}/%{name}/projects/
+%{_datadir}/%{name}/config.rpath
+%{_datadir}/%{name}/*.h
+%{_datadir}/%{name}/msgunfmt.tcl
+%{_datadir}/aclocal/*
+%{_includedir}/*
+%{_infodir}/autosprintf*
+%{_libdir}/libasprintf.so
+%{_libdir}/libgettextpo.so
+%{_libdir}/preloadable_libintl.so
+%{_mandir}/man1/autopoint.1*
+%{_datadir}/%{name}/javaversion.class
+%doc gettext-runtime/intl-java/javadoc*
+%if %{with java}
+%{_libdir}/%{name}/gnu.gettext.*
+%endif
+%{_datadir}/%{name}/archive.*.tar.xz
+%license COPYING
+
+%files -n emacs-%{name}
+%dir %{_emacs_sitelispdir}/%{name}
+%{_emacs_sitelispdir}/%{name}/*.elc
+%{_emacs_sitelispdir}/%{name}/*.el
+%{_emacs_sitestartdir}/*.el
+
+%files help
+%{_infodir}/gettext*
+%{_mandir}/man1/*
+%{_mandir}/man3/*
+%exclude %{_mandir}/man1/autopoint.1*
+
+%changelog
+* Tue Jul 16 2024 dillon chen <dillon.chen@gmail.com> - 0.22.5-1
+- Type:enhancement
+- ID:NA
+- SUG:NA
+- DESC:update version to 0.22.5
+
+* Tue Feb 27 2024 fuanan <fuanan3@h-partners.com> - 0.22-2
+- Type:bugfix
+- ID:NA
+- SUG:NA
+- DESC:Fix build failure
+
+* Thu Jul 13 2023 dillon chen <dillon.chen@gmail.com> - 0.22-1
+- Type:enhancement
+- ID:NA
+- SUG:NA
+- DESC:update version to 0.22
+
+* Fri Nov 04 2022 fuanan <fuanan3@h-partners.com> - 0.21.1-1
+- Type:enhancement
+- ID:NA
+- SUG:NA
+- DESC:update version to 0.21.1
+
+* Fri Sep 9 2022 yixiangzhike<yixiangzhike007@163.com> - 0.21-6
+- Type:bugfix
+- ID:NA
+- SUG:NA
+- DESC:Add version number for Obsoletes and Provides
+
+* Sat Jul 31 2021 chenyanpanHW <chenyanpan@huawei.com> - 0.21-5
+- DESC: delete -S git from %autosetup, and delete BuildRequires git
+
+* Fri May 14 2021 yangzhuangzhuang<yangzhuangzhuang1@Huawei.com> - 0.21-4
+- Type:bugfix
+- ID:NA
+- SUG:NA
+- DESC:detach the sub package emacs-gettext from gettex-devel
+
+* Fri Apr 30 2021 yangzhuangzhuang<yangzhuangzhuang1@Huawei.com> - 0.21-3
+- Type:bugfix
+- ID:NA
+- SUG:NA
+- DESC:Add version number for Obsoletes: emacs-gettext
+
+* Fri Dec 4 2020 panxiaohe<panxiaohe@huawei.com> - 0.21-2
+- Type:bugfix
+- ID:NA
+- SUG:NA
+- DESC:Delete libcroco dependency and bundle it
+
+* Tue Sep 1 2020 wangchen<wangchen137@huawei.com> - 0.21-1
+- Type:enhancement
+- ID:NA
+- SUG:NA
+- DESC:update to 0.21
+
+* Mon Jul 27 2020 yang_zhuang_zhuang<yangzhuangzhuang1@huawei.com> - 0.20.2-1
+- Type:enhancement
+- ID:NA
+- SUG:NA
+- DESC:update to 0.20.2
+
+* Tue Jan 7 2020 chengquan<chengquan3@huawei.com> - 0.20.1-2
+- Type:bugfix
+- ID:NA
+- SUG:NA
+- DESC:fixbug in main package and help package
+
+* Fri Oct 11 2019 hanzhijun<hanzhijun1@huawei.com> - 0.20.1-1
+- Type:enhancement
+- ID:NA
+- SUG:NA
+- DESC:update to 0.20.1
+
+* Mon Sep 30 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.19.8.1-20
+- modify CVE patch name
+
+* Fri Sep 27 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.19.8.1-19
+- fix CVE-2018-18751
+
+* Tue Sep 17 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.19.8.1-18
+- Package init
diff --git a/sources b/sources
new file mode 100644
index 0000000..4ca235c
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+1245c87cfa0b123f55540681af396880 gettext-0.22.5.tar.gz