代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/gnulib 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
Name: gnulib
Version: 0
Release: 29.20180720git
Summary: The GNU Portability Library
License: Public Domain and BSD and GPLv2+ and GPLv3 and GPLv3+ and LGPLv2 and LGPLv2+ and LGPLv3+
URL: https://www.gnu.org/software/gnulib
Source0: https://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=snapshot;h=68df637;sf=tgz;name=gnulib-68df637.tar.gz#/gnulib-68df637.tar.gz
Patch0: CVE-2018-17942.patch
BuildRequires: perl-generators texinfo java-devel gettext-devel bison gperf libtool help2man git gcc_secure
%description
Gnulib is a central location for common GNU code, intended to be
shared among GNU packages. It can be used to improve portability
and other functionality in your programs.
%package devel
Summary: Provides devel files for gnulib
BuildArch: noarch
Provides: gnulib
Requires: gettext-devel bison coreutils gperf libtool make texinfo diffutils patch
%description devel
This package contains development files for gnulib.
%package help
Summary: Provides documentation for gnulib modules
License: GFDL and GPLv2+
Requires(post): info
Requires(preun): info
Requires: gnulib-devel = %{version}-%{release}
Provides: gnulib-docs = %{version}-%{release}
Obsoletes: gnulib-docs < %{version}-%{release}
Provides: git-merge-changelog = %{version}-%{release}
Obsoletes: git-merge-changelog < %{version}-%{release}
%description help
This package contains help docs for gnulib. And Provides ChangeLog files.
%prep
%autosetup -n gnulib-68df637 -p1 -Sgit
toRemove="lib-symbol-visibility havelib .*-obsolete localcharset gettext-h gettext alloca-opt alloca "
list="$(./gnulib-tool --list)"
for item in $toRemove
do
list="$(echo $list| sed "s:\b$item\b::g")"
done
./gnulib-tool --create-testdir --with-tests --with-obsolete --avoid=alloca --avoid=lib-symbol-visibility --avoid=havelib --dir=build-tests $list
rm lib/javaversion.class
./gnulib-tool --create-testdir --dir=build-gnulib-root git-merge-changelog
%build
cd build-gnulib-root
%configure --prefix=%_prefix
%make_build
cd -
cd build-tests
%configure --prefix=%_prefix
%make_build
cd -
javac -d lib -source 1.3 -target 1.3 lib/javaversion.java
%make_build MODULES.html
sed -i -r 's#HREF="(lib|m4|modules)#HREF="%{_datadir}/gnulib/\1#g' MODULES.html
sed -i "/^[ ]*gnulib_dir=/s#\`[^\`]*\`#%{_datadir}/gnulib#" gnulib-tool
%make_build info html
rm -rf */.cvsignore */.gitignore */.gitattributes lib/.cppi-disable lib/uniname/gen-uninames.lisp
%check
make -C build-tests check VERBOSE=1
%install
install -d %{buildroot}%{_datadir}/gnulib
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_datadir}/info
install -d %{buildroot}%{_docdir}/gnulib
install -d %{buildroot}%{_mandir}/man1
cp -p check-module %{buildroot}%{_bindir}
cp -p gnulib-tool %{buildroot}%{_bindir}
cp -rp build-aux lib m4 modules config tests %{buildroot}%{_datadir}/gnulib/
install -d %{buildroot}%{_datadir}/gnulib/doc
cp -arv doc/relocatable.texi %{buildroot}%{_datadir}/gnulib/doc
cp -p doc/gnulib.info %{buildroot}%{_datadir}/info/
cp -p doc/gnulib.html MODULES.html NEWS COPYING ChangeLog users.txt doc/COPYING* %{buildroot}%{_docdir}/gnulib/
%make_install -C build-gnulib-root
help2man -N --no-discard-stderr %{buildroot}%{_bindir}/git-merge-changelog | gzip -9c > %{buildroot}%{_mandir}/man1/git-merge-changelog.1.gz
%post help
/sbin/install-info %{_infodir}/gnulib.info %{_infodir}/dir || :
%preun help
if [ $1 = 0 ] ; then
/sbin/install-info --delete %{_infodir}/gnulib.info %{_infodir}/dir || :
fi
%files devel
%{_datadir}/gnulib/
%{_bindir}/gnulib-tool
%{_bindir}/check-module
%{_docdir}/gnulib/
%exclude %{_docdir}/gnulib/MODULES.html
%exclude %{_docdir}/gnulib/gnulib.html
%files help
%{_datadir}/info/gnulib.info.gz
%{_docdir}/gnulib/gnulib.html
%{_docdir}/gnulib/MODULES.html
%{_mandir}/*/git-merge-changelog.*
%{_bindir}/git-merge-changelog
%license doc/COPYINGv2
%changelog
* Wed Feb 23 2022 yaoxin <yaoxin30@huawei.com> - 0-29.20180720git
- Fix CVE-2018-17942
* Sun Mar 21 2021 lingsheng <lingsheng@huawei.com> - 0-28.20180720git
- Add gcc_secure to fix test_localeconv fail
* Wed Jan 8 2020 sunguoshuai <sunguoshuai@huawei.com> - 0-27.20180720git
- Delete unwanted files.
* Tue Dec 31 2019 sunguoshuai <sunguoshuai@huawei.com> - 0-27.20180720git
- Init package.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。