Compare commits

..

No commits in common. "81c21e5a75bc7839cf2702278499d0a186ae3500" and "925a54a8a378c90656a84697bdf29db754398d6c" have entirely different histories.

5 changed files with 7 additions and 76 deletions

BIN
autogen-5.18.14.tar.xz Normal file

Binary file not shown.

Binary file not shown.

View File

@ -1,18 +1,15 @@
Name: autogen Name: autogen
Version: 5.18.16 Version: 5.18.14
Release: 5 Release: 4
License: GPLv2+ and GPLv3+ License: GPLv2+ and GPLv3+
Summary: Automated text file generator Summary: Automated text file generator
URL: http://www.gnu.org/software/autogen/ URL: http://www.gnu.org/software/autogen/
Provides: autogen-libopts Provides: autogen-libopts
Obsoletes: autogen-libopts < %{version}-%{release} Obsoletes: autogen-libopts
Source0: http://ftp.gnu.org/gnu/autogen/rel%{version}/%{name}-%{version}.tar.xz Source0: http://ftp.gnu.org/gnu/autogen/rel%{version}/%{name}-%{version}.tar.xz
Patch0: backport-fix-stray-blanking-of-config-file-char.patch
BuildRequires: gcc guile-devel libtool libxml2-devel BuildRequires: gcc guile-devel libtool libxml2-devel
BuildRequires: perl-generators BuildRequires: perl-generators
BuildRequires: chrpath
%description %description
AutoGen is a tool designed to simplify the creation and maintenance of AutoGen is a tool designed to simplify the creation and maintenance of
@ -27,7 +24,7 @@ License: LGPLv3+
Requires: automake autogen pkgconfig Requires: automake autogen pkgconfig
Provides: autogen-libopts-devel Provides: autogen-libopts-devel
Provides: pkgconfig(autoopts) Provides: pkgconfig(autoopts)
Obsoletes: autogen-libopts-devel < %{version}-%{release} Obsoletes: autogen-libopts-devel
%description devel %description devel
This package contains development files for autogen. This package contains development files for autogen.
@ -45,13 +42,8 @@ Man pages and other related documents.
%build %build
# Static libraries are needed to run test-suite. # Static libraries are needed to run test-suite.
CFLAGS="$RPM_OPT_FLAGS -Wno-implicit-fallthrough -Wno-format-overflow \ export CFLAGS="$RPM_OPT_FLAGS -Wno-implicit-fallthrough -Wno-format-overflow \
-Wno-format-truncation" -Wno-format-truncation"
%if "%toolchain" == "clang"
CFLAGS+=" -Wno-missing-field-initializers -Wno-format "
%endif
export CFLAGS
%configure %configure
# Omit unused direct shared library dependencies. # Omit unused direct shared library dependencies.
@ -64,13 +56,6 @@ make check
%install %install
make install INSTALL="%{__install} -p" DESTDIR=$RPM_BUILD_ROOT make install INSTALL="%{__install} -p" DESTDIR=$RPM_BUILD_ROOT
#Remove rpath
chrpath --delete $RPM_BUILD_ROOT%{_bindir}/{columns,getdefs,%{name},xml2ag}
mkdir -p $RPM_BUILD_ROOT/etc/ld.so.conf.d
echo "%{_libdir}" > $RPM_BUILD_ROOT/etc/ld.so.conf.d/%{name}-%{_arch}.conf
%delete_la_and_a %delete_la_and_a
@ -87,7 +72,6 @@ echo "%{_libdir}" > $RPM_BUILD_ROOT/etc/ld.so.conf.d/%{name}-%{_arch}.conf
%dir %{_libdir}/%{name} %dir %{_libdir}/%{name}
%{_libdir}/%{name}/* %{_libdir}/%{name}/*
%{_libdir}/libopts.so.25* %{_libdir}/libopts.so.25*
%config(noreplace) /etc/ld.so.conf.d/*
%files devel %files devel
%{_bindir}/autoopts-config %{_bindir}/autoopts-config
@ -109,21 +93,6 @@ echo "%{_libdir}" > $RPM_BUILD_ROOT/etc/ld.so.conf.d/%{name}-%{_arch}.conf
%exclude %{_infodir}/dir %exclude %{_infodir}/dir
%changelog %changelog
* Thu Jul 11 2024 huyubiao <huyubiao@huawei.com> - 5.18.16-5
- Add version number for Obsoletes
* Thu Feb 1 2024 liyunfei<liyunfei33@huawei.com> - 5.18.16-4
- add additional warning options for clang
* Tue Oct 18 2022 zhangruifang <zhangruifang1@h-partners.com> - 5.18.16-3
- fix stray blanking of config file char
* Thu Jul 28 2022 zoulin <zoulin13@h-partners.com> - 5.18.16-2
- remove rpath and runpath of exec files and libraries
* Thu Jul 16 2020 wangchen <wangchen137@huawei.com> - 5.18.16-1
- Update to 5.18.16
* Mon Dec 30 2019 openEuler Buildteam <buildteam@openeuler.org> - 5.18.14-4 * Mon Dec 30 2019 openEuler Buildteam <buildteam@openeuler.org> - 5.18.14-4
- Modify Source - Modify Source

View File

@ -1,4 +1,4 @@
version_control: git version_control: git
src_repo: https://git.savannah.gnu.org/git/autogen.git src_repo: https://git.code.sf.net/p/autogen/code
tag_prefix: ^v tag_prefix: ^v
seperator: "." seperator: "-"

View File

@ -1,38 +0,0 @@
From 3b33eb2fc09a2d7221da6bc7159f374fdef8906a Mon Sep 17 00:00:00 2001
From: Bruce Korb <bkorb@gnu.org>
Date: Fri, 6 Sep 2019 08:28:00 -0700
Subject: [PATCH] fix stray blanking of config file char
* autoopts/configfile.c (trim_xml_text): remove unnecessary and
occasionally destructive blanking of first character.
---
autoopts/configfile.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/autoopts/configfile.c b/autoopts/configfile.c
index 783a9d8a..e8f557ad 100644
--- a/autoopts/configfile.c
+++ b/autoopts/configfile.c
@@ -802,10 +802,9 @@ trim_xml_text(char * intxt, char const * pznm, tOptionLoadMode mode)
pz[1] = '/';
memcpy(pz+2, pznm, nm_len);
nm_len += 2;
- pz[nm_len++] = '>';
+ pz[nm_len++] = '>'; // nm_len is now length of end mark
pz[nm_len] = NUL;
- *intxt = ' ';
etext = strstr(intxt, pz);
if (pz != z) AGFREE(pz);
}
@@ -825,6 +824,7 @@ trim_xml_text(char * intxt, char const * pznm, tOptionLoadMode mode)
}
/**
+ * process hex and amphersand encoded characters.
*/
static void
cook_xml_text(char * pzData)
--
2.27.0