Compare commits

...

8 Commits

3 changed files with 54 additions and 131 deletions

View File

@ -1,85 +0,0 @@
# --- T2-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# T2 SDE: package/.../gettext/wchar-fix.patch
# Copyright (C) 2008 The T2 SDE Project
#
# More information can be found in the files COPYING and README.
#
# This patch file is dual-licensed. It is available under the license the
# patched project is licensed under, as long as it is an OpenSource license
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
# of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
# --- T2-COPYRIGHT-NOTE-END ---
diff -Nur gettext-0.17-orig/gettext-runtime/gnulib-lib/wchar.in.h gettext-0.17/gettext-runtime/gnulib-lib/wchar.in.h
--- gettext-0.17-orig/gettext-runtime/gnulib-lib/wchar.in.h 2008-04-10 18:18:04.000000000 +0000
+++ gettext-0.17/gettext-runtime/gnulib-lib/wchar.in.h 2008-04-10 18:19:04.000000000 +0000
@@ -26,6 +26,14 @@
* the declaration of wcwidth().
*/
+#ifdef __need_mbstate_t
+/* Special invocation convention inside glibc header files. */
+
+#@INCLUDE_NEXT@ @NEXT_WCHAR_H@
+
+#else
+/* Normal invocation convention. */
+
#ifndef _GL_WCHAR_H
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
@@ -80,3 +88,4 @@
#endif /* _GL_WCHAR_H */
#endif /* _GL_WCHAR_H */
+#endif
diff -Nur gettext-0.17-orig/gettext-tools/gnulib-lib/wchar.in.h gettext-0.17/gettext-tools/gnulib-lib/wchar.in.h
--- gettext-0.17-orig/gettext-tools/gnulib-lib/wchar.in.h 2008-04-11 17:03:22.000000000 +0000
+++ gettext-0.17/gettext-tools/gnulib-lib/wchar.in.h 2008-04-11 17:49:45.000000000 +0000
@@ -26,6 +26,14 @@
* the declaration of wcwidth().
*/
+#ifdef __need_mbstate_t
+/* Special invocation convention inside glibc header files. */
+
+#@INCLUDE_NEXT@ @NEXT_WCHAR_H@
+
+#else
+/* Normal invocation convention. */
+
#ifndef _GL_WCHAR_H
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
@@ -80,3 +88,4 @@
#endif /* _GL_WCHAR_H */
#endif /* _GL_WCHAR_H */
+#endif
diff -Nur gettext-0.17-orig/gettext-tools/libgettextpo/wchar.in.h gettext-0.17/gettext-tools/libgettextpo/wchar.in.h
--- gettext-0.17-orig/gettext-tools/libgettextpo/wchar.in.h 2008-04-11 17:03:22.000000000 +0000
+++ gettext-0.17/gettext-tools/libgettextpo/wchar.in.h 2008-04-11 18:14:51.000000000 +0000
@@ -26,6 +26,14 @@
* the declaration of wcwidth().
*/
+#ifdef __need_mbstate_t
+/* Special invocation convention inside glibc header files. */
+
+#@INCLUDE_NEXT@ @NEXT_WCHAR_H@
+
+#else
+/* Normal invocation convention. */
+
#ifndef _GL_WCHAR_H
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
@@ -80,3 +88,4 @@
#endif /* _GL_WCHAR_H */
#endif /* _GL_WCHAR_H */
+#endif

Binary file not shown.

View File

@ -7,8 +7,8 @@
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: gettext
Version: 0.22.2
Release: 1mamba
Version: 0.25
Release: 2mamba
Summary: GNU libraries and utilities for producing multi-lingual messages
Group: System/Libraries
Vendor: openmamba
@ -16,7 +16,6 @@ Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://ftp.gnu.org/pub/gnu/gettext/
Source: https://ftp.gnu.org/pub/gnu/gettext/gettext-%{version}.tar.lz
Patch0: %{name}-0.17-wchar-fix.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
@ -24,12 +23,14 @@ BuildRequires: libacl-devel
BuildRequires: libattr-devel
BuildRequires: libgcc
BuildRequires: libgomp-devel
BuildRequires: libm2-devel
BuildRequires: libncurses-devel
BuildRequires: libstdc++6-devel
BuildRequires: libunistring-devel
BuildRequires: libxml2-devel
BuildRequires: mono-devel
## AUTOBUILDREQ-END
BuildRequires: libm2-devel >= 15.1.0
%if "%{?stage1}" != "1"
BuildRequires: perl >= %perl_major_ver
BuildRequires: emacs
@ -90,11 +91,10 @@ messages, and stand-alone programs for handling the translatable and the already
Gettext provides an easy to use library and tools for creating, using, and modifying natural language catalogs and is a powerful and simple method for internationalizing programs.
This package provides the Mono (C-sharp) GNU library for producing multi-lingual messages.
%debug_package
%prep
%define _warning_options %{nil}
%setup -q
#%patch0 -p1
%build
%configure \
@ -142,12 +142,8 @@ rm -f %{buildroot}%{_infodir}/dir
%post
%install_info autosprintf.info
%install_info %{name}.info
/sbin/ldconfig
:
%postun -p /sbin/ldconfig
%postun devel -p /sbin/ldconfig
%preun
%uninstall_info autosprintf.info
%uninstall_info %{name}.info
@ -164,24 +160,20 @@ rm -f %{buildroot}%{_infodir}/dir
%{_libdir}/libgettextlib*.so
%{_libdir}/libgettextpo.so.*
%{_libdir}/libgettextsrc*.so
%{_libdir}/libasprintf.so*
%{_libdir}/libasprintf.so.*
%ifarch x86_64
%{_libdir}/libintl_m2.so.*
%endif
%{_libdir}/libtextstyle.so.*
%{_libdir}/preloadable_libintl.so
%{_datadir}/doc/gettext/FAQ.html
%{_datadir}/doc/gettext/envsubst.1.html
%{_datadir}/doc/gettext/gettext.1.html
%{_datadir}/doc/gettext/gettext_*.html
%{_datadir}/doc/gettext/msg*.1.html
%{_datadir}/doc/gettext/ngettext.1.html
%{_datadir}/doc/gettext/xgettext.1.html
%{_datadir}/doc/gettext/tutorial.html
%dir %{_libexecdir}/gettext
%{_libexecdir}/gettext/*
%dir %{_datadir}/gettext-*
%dir %{_datadir}/gettext-*/its
%{_datadir}/gettext-*/its/*
%{_datadir}/gettext/ABOUT-NLS
%{_infodir}/gettext.info.*
%{_infodir}/autosprintf.info.*
%{_infodir}/libtextstyle.info.gz
%{_infodir}/gettext.info*
%{_infodir}/autosprintf.info*
%{_infodir}/libtextstyle.info*
%{_mandir}/man1/*
%exclude %{_mandir}/man1/gettextize.*
%exclude %{_mandir}/man1/autopoint.*
@ -193,37 +185,29 @@ rm -f %{buildroot}%{_infodir}/dir
%{_includedir}/*.h
%dir %{_includedir}/textstyle
%{_includedir}/textstyle/*
%{_libdir}/libtextstyle.so
%dir %{_includedir}/d/gnu/libintl
%{_includedir}/d/gnu/libintl/*
%ifarch x86_64
%{_includedir}/m2/Libintl.def
%{_libdir}/libintl_m2.so
%endif
%{_libdir}/libasprintf.so
%{_libdir}/libgettextpo.so
%{_libdir}/libtextstyle.so
%{_libdir}/gettext/*
%{_libdir}/lib*.a
%{_datadir}/aclocal/*
%if "%{?stage1}" != "1"
%ifnarch arm
%{_datadir}/emacs/site-lisp/*
%endif
%endif
%{_datadir}/gettext/archive.dir.tar.xz
%{_datadir}/gettext/config.rpath
%{_datadir}/gettext/gettext.h
%{_datadir}/gettext/javaversion.class
#%{_datadir}/gettext/mkinstalldirs
%{_datadir}/gettext/msgunfmt.tcl
#%{_datadir}/gettext/intl/*
%{_datadir}/gettext/po/*
%{_datadir}/gettext/projects/*
%{_datadir}/gettext/styles/*.css
%{_datadir}/doc/gettext/*.3.html
%{_datadir}/doc/gettext/autopoint.1.html
%{_datadir}/doc/gettext/gettextize.1.html
%{_datadir}/doc/gettext/recode-sr-latin.1.html
%{_datadir}/doc/gettext/examples/*
%{_datadir}/doc/gettext/csharpdoc/*
#%{_datadir}/doc/gettext/javadoc1/*
%{_datadir}/doc/gettext/javadoc2/*
%{_datadir}/doc/libasprintf/autosprintf_all.html
%dir %{_datadir}/doc/libtextstyle
%{_datadir}/doc/libtextstyle/*
%dir %{_datadir}/gettext
%{_datadir}/gettext/*
%dir %{_datadir}/doc/gettext
%{_docdir}/gettext/*
%dir %{_docdir}/libtextstyle
%{_docdir}/libtextstyle/*
%{_docdir}/libasprintf/autosprintf_all.html
%{_mandir}/man1/autopoint.*
%{_mandir}/man1/gettextize.*
%{_mandir}/man3/*
@ -243,6 +227,30 @@ rm -f %{buildroot}%{_infodir}/dir
%endif
%changelog
* Thu May 29 2025 Silvan Calarco <silvan.calarco@mambasoft.it> 0.25-2mamba
- rebuilt with libm2-devel 15.1.0
* Fri May 09 2025 Automatic Build System <autodist@openmamba.org> 0.25-1mamba
- automatic version update by autodist
* Sun May 04 2025 Automatic Build System <autodist@openmamba.org> 0.24.1-1mamba
- automatic version update by autodist
* Wed Feb 26 2025 Automatic Build System <autodist@openmamba.org> 0.24-1mamba
- automatic version update by autodist
* Thu Jan 02 2025 Automatic Build System <autodist@openmamba.org> 0.23.1-1mamba
- automatic version update by autodist
* Thu Feb 22 2024 Automatic Build System <autodist@openmamba.org> 0.22.5-1mamba
- automatic version update by autodist
* Mon Nov 20 2023 Automatic Build System <autodist@mambasoft.it> 0.22.4-1mamba
- automatic version update by autodist
* Thu Oct 05 2023 Automatic Build System <autodist@mambasoft.it> 0.22.3-1mamba
- automatic version update by autodist
* Thu Sep 21 2023 Automatic Build System <autodist@mambasoft.it> 0.22.2-1mamba
- automatic version update by autodist