diff options
author | CoprDistGit <infra@openeuler.org> | 2024-08-06 04:42:21 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-08-06 04:42:21 +0000 |
commit | 90e2665fab71dcfbf5451b8d371429dd3638b5e3 (patch) | |
tree | 4dc63221d5727640917fd5e1d92afef4e15526c1 /autogen.spec | |
parent | 98578c46dbdc3a1434790e8fb6e5bdf5da1eb9bd (diff) |
automatic import of autogenopeneuler24.03_LTS
Diffstat (limited to 'autogen.spec')
-rw-r--r-- | autogen.spec | 118 |
1 files changed, 118 insertions, 0 deletions
diff --git a/autogen.spec b/autogen.spec new file mode 100644 index 0000000..60af504 --- /dev/null +++ b/autogen.spec @@ -0,0 +1,118 @@ +Name: autogen +Version: 5.18.16 +Release: 6 +License: GPL-3.0-or-later +Summary: Automated text file generator +URL: https://www.gnu.org/software/autogen/ +Provides: autogen-libopts = %{version}-%{release} +Obsoletes: autogen-libopts < %{version}-%{release} +Source0: https://ftp.gnu.org/gnu/autogen/rel%{version}/%{name}-%{version}.tar.xz + +Patch0: backport-fix-stray-blanking-of-config-file-char.patch +# PATCH-FIX-UPSTREAM -- https://savannah.gnu.org/support/index.php?109234 boo#1021353 +Patch2: autogen-catch-race-error.patch +# PATCH-FIX-UPSTREAM don't make programs uninstallable +Patch3: autogen-installable-programs.patch +# PATCH-FIX-UPSTREAM +Patch4: autogen-sprintf-overflow.patch +# PATCH-FIX-UPSTREAM -- https://sourceforge.net/p/autogen/bugs/193/#5844 +Patch5: autogen-gcc9-fix-wrestrict.patch +# PATCH-FIX-UPSTREAM Allow building with guile 3.0 +Patch6: autogen-guile-version.patch +Patch7: autogen-avoid-GCC-code-analysis-bug.patch + +BuildRequires: gcc libtool autoconf automake +BuildRequires: guile-devel libxml2-devel +BuildRequires: perl-generators +BuildRequires: chrpath + +%description +AutoGen is a tool designed to simplify the creation and maintenance of +programs that contain large amounts of repetitious text. It is especially +valuable in programs that have several blocks of text that must be kept +synchronised. + +%package devel +Summary: Development files for autogen +Requires: %{name} = %{version}-%{release} +Provides: autogen-libopts-devel = %{version}-%{release} +Obsoletes: autogen-libopts-devel < %{version}-%{release} + +%description devel +This package contains development files for autogen. + +%package_help + +%prep +%autosetup -n %{name}-%{version} -p1 + +%build +# Static libraries are needed to run test-suite. +CFLAGS="$RPM_OPT_FLAGS -Wno-implicit-fallthrough -Wno-format-overflow \ + -Wno-format-truncation" +%if "%toolchain" == "clang" +CFLAGS+=" -Wno-missing-field-initializers -Wno-format " +%endif +export CFLAGS + +autoreconf -f +%configure --disable-static +%make_build + +%check +%make_build check + +%install +%make_install +%delete_la +rm -f %{buildroot}%{_infodir}/dir + +#Remove rpath +chrpath --delete $RPM_BUILD_ROOT%{_bindir}/{columns,getdefs,%{name},xml2ag} + +%files +%license COPYING pkg/libopts/COPYING* +%doc AUTHORS ChangeLog NEWS README THANKS TODO +%{_bindir}/columns +%{_bindir}/getdefs +%{_bindir}/%{name} +%{_bindir}/xml2ag +%{_datadir}/%{name} +%{_libdir}/%{name} +%{_libdir}/libopts.so.25* + +%files devel +%{_bindir}/autoopts-config +%{_datadir}/aclocal/autoopts.m4 +%{_libdir}/libopts.so +%{_libdir}/pkgconfig/autoopts.pc +%{_includedir}/autoopts + +%files help +%{_mandir}/man?/* +%{_infodir}/%{name}.info* + +%changelog +* Tue Aug 06 2024 Funda Wang <fundawang@yeah.net> - 5.18.16-6 +- Add patches fixed upstream + +* 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 +- Modify Source + +* Thu Aug 29 2019 hexiaowen <hexiaowen@huawei.com> - 5.18.14-3 +- Package init |