|
@@ -1,34 +1,41 @@
|
|
|
%define libtoolize :
|
|
|
|
|
|
-%define src_ver 0.20.1
|
|
|
-%define so_ver 0.20.1
|
|
|
-%define short_ver 0.20
|
|
|
+%define src_ver 0.21
|
|
|
+%define so_ver 0.21
|
|
|
+%define short_ver 0.21
|
|
|
|
|
|
Summary: GNU libraries and utilities for producing multi-lingual messages.
|
|
|
Summary(ja): マルチリンガルメッセージを生成するためのGNU ライブラリ/ユーティリティ
|
|
|
Name: gettext
|
|
|
Version: %{src_ver}
|
|
|
-Release: 2%{?_dist_release}
|
|
|
-License: GPLv3 and LGPLv2+
|
|
|
-Group: Development/Tools
|
|
|
-Source: ftp://ftp.gnu.org/gnu/gettext/%{name}-%{version}.tar.xz
|
|
|
+Release: 1%{?_dist_release}
|
|
|
+Group: programming
|
|
|
+Packager: daisuke
|
|
|
+Vendor: Project Vine
|
|
|
+Distribution: Vine Linux
|
|
|
+
|
|
|
+License: GPLv3+ and LGPLv2+ and GFDL
|
|
|
+Source: https://ftp.gnu.org/gnu/gettext/%{name}-%{version}.tar.xz
|
|
|
URL: http://www.gnu.org/software/gettext/
|
|
|
Source2: msghack.py
|
|
|
Source3: msghack.1
|
|
|
|
|
|
Patch1: gettext-msgmerge-for-msgfmt.patch
|
|
|
|
|
|
+BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
+
|
|
|
BuildRequires: libtool, bison, gcc-c++
|
|
|
-BuildRequires: expat-devel
|
|
|
-BuildRequires: libacl-devel, libcroco-devel
|
|
|
+# following suggested by DEPENDENCIES:
|
|
|
+BuildRequires: ncurses-devel
|
|
|
+BuildRequires: libxml2-devel
|
|
|
+BuildRequires: glib2-devel
|
|
|
+BuildRequires: libacl-devel
|
|
|
+BuildRequires: libunistring-devel
|
|
|
+# ensure 'ARCHIVE_FORMAT=dirxz'
|
|
|
+BuildRequires: xz
|
|
|
|
|
|
Requires(post): /sbin/install-info
|
|
|
Requires(preun): /sbin/install-info
|
|
|
-Buildroot: %{_tmppath}/%{name}-%{version}-root
|
|
|
-
|
|
|
-Packager: daisuke
|
|
|
-Vendor: Project Vine
|
|
|
-Distribution: Vine Linux
|
|
|
|
|
|
%description
|
|
|
The GNU gettext package provides a set of tools and documentation for
|
|
@@ -52,17 +59,22 @@ GNU gettext パッケージはプログラム中でマルチリンガルメッ
|
|
|
と自然言語のカタログを生成, 使用, 修正するツールと, 国際化プログラム
|
|
|
のための強力かつシンプルな方法を提供します.
|
|
|
|
|
|
+
|
|
|
%package devel
|
|
|
Summary: Development files for gettext
|
|
|
Summary(ja): gettext 用開発ファイル
|
|
|
-Group: Development/Libraries
|
|
|
-License: LGPLv2+
|
|
|
+Group: programming
|
|
|
+# autopoint is GPLv3+
|
|
|
+# libasprintf is LGPLv2+
|
|
|
+# libgettextpo is GPLv3+
|
|
|
+License: LGPLv2+ and GPLv3+ and GFDL
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
Requires: %{name}-libs = %{version}-%{release}
|
|
|
+Requires: xz
|
|
|
+Requires: diffutils
|
|
|
Requires(post): /sbin/install-info
|
|
|
Requires(preun): /sbin/install-info
|
|
|
|
|
|
-
|
|
|
%description devel
|
|
|
This package contains all development related files necessary for
|
|
|
developing or compiling applications/libraries that needs
|
|
@@ -78,9 +90,10 @@ want to add gettext support for your project.
|
|
|
%package libs
|
|
|
Summary: Libraries for gettext
|
|
|
Summary(ja): gettext 用共有ライブラリ
|
|
|
-Group: System Environment/Libraries
|
|
|
-License: LGPLv2+
|
|
|
-
|
|
|
+Group: system
|
|
|
+# libasprintf is LGPLv2+
|
|
|
+# libgettextpo is GPLv3+
|
|
|
+License: LGPLv2+ and GPLv3+
|
|
|
|
|
|
%description libs
|
|
|
This package contains libraries used internationalization support.
|
|
@@ -91,16 +104,38 @@ This package contains libraries used internationalization support.
|
|
|
|
|
|
%prep
|
|
|
%setup -q
|
|
|
-%patch1 -p1
|
|
|
+
|
|
|
+# Defeat libtextstyle attempt to bundle libxml2. The comments
|
|
|
+# indicate this is done because the libtextstyle authors do not want
|
|
|
+# applications using their code to suffer startup delays due to the
|
|
|
+# relocations. This is not a sufficient reason for Fedora.
|
|
|
+sed -e 's/\(gl_cv_libxml_force_included=\)yes/\1no/' \
|
|
|
+ -i libtextstyle/configure
|
|
|
|
|
|
|
|
|
%build
|
|
|
## running autoreconf for automake-1.11.1
|
|
|
autoreconf -fi
|
|
|
[ -f /usr/share/automake/depcomp ] && cp -f /usr/share/automake/{depcomp,ylwrap} . || :
|
|
|
+
|
|
|
+# libxml2-devel package has an extra "libxml2" path component.
|
|
|
+export CPPFLAGS="-I%{_includedir}/libxml2"
|
|
|
+# Side effect of unbundling libxml2 from libtextstyle.
|
|
|
+export LIBS="-lxml2"
|
|
|
+
|
|
|
%configure --without-included-gettext --enable-nls \
|
|
|
- --enable-shared --disable-static --with-pic=yes \
|
|
|
- --disable-csharp --disable-java
|
|
|
+ --enable-shared --disable-static --disable-rpath \
|
|
|
+ --with-pic=yes \
|
|
|
+ --disable-csharp --disable-java \
|
|
|
+ --with-xz
|
|
|
+
|
|
|
+# Eliminate hardcoded rpaths; workaround libtool reordering -Wl,--as-needed
|
|
|
+# after all the libraries.
|
|
|
+sed -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
|
|
|
+ -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
|
|
|
+ -e 's|CC=.g..|& -Wl,--as-needed|' \
|
|
|
+ -i $(find . -name libtool)
|
|
|
+
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
@@ -223,6 +258,11 @@ fi
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
+* Sun Sep 06 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 0.21-1
|
|
|
+- new upstream release.
|
|
|
+- updated Source2 and 3 for python3.
|
|
|
+- dropped Patch1.
|
|
|
+
|
|
|
* Tue Sep 17 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 0.20.1-2
|
|
|
- moved libtextstyle.so.* to gettext-libs.
|
|
|
|