Accepting request 858446 from home:alois:branches:devel:languages:misc
- Update to version 3.1.2 (see NEWS or ChangeLog for details) - Drop gnucobol-CFLAGS.patch (no longer needed) - Add fix_test_698.patch and enable hardening - Add buildtime requirements for libjson-c and libxml2 - Disable lto to avoid test failure OBS-URL: https://build.opensuse.org/request/show/858446 OBS-URL: https://build.opensuse.org/package/show/devel:languages:misc/gnu-cobol?expand=0&rev=11
This commit is contained in:
parent
d9db8eed47
commit
ceae2b06aa
13
fix_test_698.patch
Normal file
13
fix_test_698.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
Index: gnucobol-3.1.2/tests/testsuite.src/run_misc.at
|
||||||
|
===================================================================
|
||||||
|
--- gnucobol-3.1.2.orig/tests/testsuite.src/run_misc.at
|
||||||
|
+++ gnucobol-3.1.2/tests/testsuite.src/run_misc.at
|
||||||
|
@@ -10402,7 +10402,7 @@ COB_EXT_EXPORT int
|
||||||
|
CAPI (void *p1, ...)
|
||||||
|
{
|
||||||
|
int k,nargs,type,digits,scale,size,sign,byvalue;
|
||||||
|
- cob_s64_t val;
|
||||||
|
+ cob_s64_t val = 0;
|
||||||
|
char *str;
|
||||||
|
char wrk[80],pic[30]; /* note: maxium _theoretical_ size */
|
||||||
|
|
@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Dec 23 17:43:58 UTC 2020 - Luigi Baldoni <aloisio@gmx.com>
|
||||||
|
|
||||||
|
- Update to version 3.1.2 (see NEWS or ChangeLog for details)
|
||||||
|
- Drop gnucobol-CFLAGS.patch (no longer needed)
|
||||||
|
- Add fix_test_698.patch and enable hardening
|
||||||
|
- Add buildtime requirements for libjson-c and libxml2
|
||||||
|
- Disable lto to avoid test failure
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Jul 27 09:14:34 UTC 2018 - jengelh@inai.de
|
Fri Jul 27 09:14:34 UTC 2018 - jengelh@inai.de
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package gnu-cobol
|
# spec file for package gnu-cobol
|
||||||
#
|
#
|
||||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2020 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -12,30 +12,33 @@
|
|||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%define _lto_cflags %{nil}
|
||||||
%define sover 4
|
%define sover 4
|
||||||
%define _mver 3.0
|
%define _mver 3.1
|
||||||
%define _over 3.0-rc1
|
|
||||||
Name: gnu-cobol
|
Name: gnu-cobol
|
||||||
Version: 3.0rc1
|
Version: 3.1.2
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: A COBOL compiler
|
Summary: A COBOL compiler
|
||||||
License: GPL-3.0-or-later AND LGPL-3.0-or-later
|
License: GPL-3.0-or-later AND LGPL-3.0-or-later
|
||||||
Group: Development/Languages/Other
|
Group: Development/Languages/Other
|
||||||
Url: https://savannah.gnu.org/projects/gnucobol
|
URL: https://savannah.gnu.org/projects/gnucobol
|
||||||
Source0: https://sourceforge.net/projects/open-cobol/files/gnu-cobol/%{_mver}/gnucobol-%{_over}.tar.xz
|
Source0: https://sourceforge.net/projects/open-cobol/files/gnu-cobol/%{_mver}/gnucobol-%{version}.tar.xz
|
||||||
Source1: %{name}.changes
|
Source1: https://sourceforge.net/projects/open-cobol/files/gnu-cobol/%{_mver}/gnucobol-%{version}.tar.xz.sig
|
||||||
# PATCH-FIX-OPENSUSE gnucobol-CFLAGS.patch -- fixes overreaching regex
|
# PATCH-FIX-UPSTREAM fix_test_698.patch -- see https://sourceforge.net/p/gnucobol/bugs/695/
|
||||||
Patch2: gnucobol-CFLAGS.patch
|
Patch1: fix_test_698.patch
|
||||||
|
BuildRequires: autoconf
|
||||||
BuildRequires: db-devel
|
BuildRequires: db-devel
|
||||||
BuildRequires: dos2unix
|
BuildRequires: dos2unix
|
||||||
BuildRequires: gmp-devel
|
BuildRequires: gmp-devel
|
||||||
BuildRequires: help2man
|
BuildRequires: help2man
|
||||||
BuildRequires: makeinfo
|
BuildRequires: makeinfo
|
||||||
BuildRequires: ncurses-devel
|
BuildRequires: pkgconfig(json-c) >= 0.12
|
||||||
|
BuildRequires: pkgconfig(libxml-2.0)
|
||||||
|
BuildRequires: pkgconfig(ncurses) >= 5.4
|
||||||
Requires(post): %{install_info_prereq}
|
Requires(post): %{install_info_prereq}
|
||||||
Requires(preun): %{install_info_prereq}
|
Requires(preun): %{install_info_prereq}
|
||||||
Provides: opencobol = %{version}
|
Provides: opencobol = %{version}
|
||||||
@ -67,31 +70,21 @@ cobc translates COBOL to executable using intermediate C sources,
|
|||||||
providing full access to nearly all C libraries.
|
providing full access to nearly all C libraries.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n gnucobol-%{_over}
|
%autosetup -p1 -n gnucobol-%{version}
|
||||||
%patch2 -p1
|
|
||||||
# replace build date with date from changelog
|
|
||||||
modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{SOURCE1}")"
|
|
||||||
DATE="\"$(date -d "${modified}" "+%%b %%e %%Y")\""
|
|
||||||
TIME="\"$(date -d "${modified}" "+%%R")\""
|
|
||||||
find . -name '*.[ch]' |\
|
|
||||||
xargs sed -i "s/__DATE__/${DATE}/g;s/__TIME__/${TIME}/g"
|
|
||||||
# fix EOL encoding
|
|
||||||
dos2unix ABOUT-NLS AUTHORS COPYING COPYING.DOC ChangeLog NEWS \
|
|
||||||
README THANKS TODO COPYING.LESSER
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure \
|
%configure \
|
||||||
--enable-static=no
|
--enable-hardening \
|
||||||
make %{?_smp_mflags}
|
--enable-static=no
|
||||||
|
%make_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
%make_install
|
||||||
# do not ship these
|
|
||||||
rm %{buildroot}%{_libdir}/libcob.la
|
|
||||||
%find_lang gnucobol
|
%find_lang gnucobol
|
||||||
|
find %{buildroot} -type f -name "*.la" -delete -print
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make %{?_smp_mflags} check
|
%make_build check
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%install_info --info-dir=%{_infodir} %{_infodir}/gnucobol.info.gz
|
%install_info --info-dir=%{_infodir} %{_infodir}/gnucobol.info.gz
|
||||||
@ -103,24 +96,23 @@ make %{?_smp_mflags} check
|
|||||||
%postun -n libcob%{sover} -p /sbin/ldconfig
|
%postun -n libcob%{sover} -p /sbin/ldconfig
|
||||||
|
|
||||||
%files -f gnucobol.lang
|
%files -f gnucobol.lang
|
||||||
%defattr(-,root,root)
|
%license COPYING COPYING.DOC
|
||||||
%doc ABOUT-NLS AUTHORS COPYING COPYING.DOC ChangeLog NEWS README THANKS TODO
|
%doc ABOUT-NLS AUTHORS ChangeLog NEWS README THANKS TODO
|
||||||
%{_bindir}/cob-config
|
%{_bindir}/cob-config
|
||||||
%{_bindir}/cobc
|
%{_bindir}/cobc
|
||||||
%{_bindir}/cobcrun
|
%{_bindir}/cobcrun
|
||||||
%{_datadir}/gnucobol
|
%{_datadir}/gnucobol
|
||||||
%{_infodir}/gnucobol.info%{ext_info}
|
%{_infodir}/gnucobol.info%{?ext_info}
|
||||||
%{_libdir}/gnucobol
|
%{_libdir}/gnucobol
|
||||||
|
%{_mandir}/man1/cob-config.1%{ext_info}
|
||||||
%{_mandir}/man1/cobc.1%{ext_info}
|
%{_mandir}/man1/cobc.1%{ext_info}
|
||||||
%{_mandir}/man1/cobcrun.1%{ext_info}
|
%{_mandir}/man1/cobcrun.1%{ext_info}
|
||||||
|
|
||||||
%files -n libcob%{sover}
|
%files -n libcob%{sover}
|
||||||
%defattr(-,root,root)
|
%license COPYING.LESSER
|
||||||
%doc COPYING.LESSER
|
|
||||||
%{_libdir}/libcob.so.%{sover}*
|
%{_libdir}/libcob.so.%{sover}*
|
||||||
|
|
||||||
%files -n libcob-devel
|
%files -n libcob-devel
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_includedir}/libcob.h
|
%{_includedir}/libcob.h
|
||||||
%{_includedir}/libcob
|
%{_includedir}/libcob
|
||||||
%{_libdir}/libcob.so
|
%{_libdir}/libcob.so
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:bf76441ee7f8dc9aeb78291231f32273eafc4ec827f26840846a257a04bbc594
|
|
||||||
size 1825252
|
|
3
gnucobol-3.1.2.tar.xz
Normal file
3
gnucobol-3.1.2.tar.xz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:597005d71fd7d65b90cbe42bbfecd5a9ec0445388639404662e70d53ddf22574
|
||||||
|
size 2198512
|
BIN
gnucobol-3.1.2.tar.xz.sig
Normal file
BIN
gnucobol-3.1.2.tar.xz.sig
Normal file
Binary file not shown.
@ -1,22 +0,0 @@
|
|||||||
Index: gnucobol-3.0-rc1/configure
|
|
||||||
===================================================================
|
|
||||||
--- gnucobol-3.0-rc1.orig/configure
|
|
||||||
+++ gnucobol-3.0-rc1/configure
|
|
||||||
@@ -18460,7 +18460,7 @@ fi
|
|
||||||
unset enable_cflags_setting
|
|
||||||
|
|
||||||
if test "$enable_debug" != "yes" -a "x$CFLAGS" != "x"; then
|
|
||||||
- CFLAGS=`echo "$CFLAGS" | sed -e 's/-g3//' -e 's/-g//' -e 's/^ //' -e 's/ $//'`
|
|
||||||
+ CFLAGS=`echo "$CFLAGS" | sed -e 's/-g3//' -e 's/-g //' -e 's/^ //' -e 's/ $//'`
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test "$COB_USES_GCC" = "yes"; then
|
|
||||||
@@ -18564,7 +18564,7 @@ if test "x$CPPFLAGS" != "x"; then
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
if test "x$cob_temp_flags" != "x"; then
|
|
||||||
- cob_temp_flags=`echo "$cob_temp_flags" | sed -e 's/-g3//' -e 's/-g//' -e 's/ $//' -e 's/^ //'`
|
|
||||||
+ cob_temp_flags=`echo "$cob_temp_flags" | sed -e 's/-g3//' -e 's/-g //' -e 's/ $//' -e 's/^ //'`
|
|
||||||
cob_temp_flags=`echo "$cob_temp_flags" | sed -e 's/[+-]O[0-9s]//' -e 's/ $//' -e 's/^ //'`
|
|
||||||
cob_temp_flags=`echo "$cob_temp_flags" | sed -e 's/-O//' -e 's/ $//' -e 's/^ //'`
|
|
||||||
cob_temp_flags=`echo "$cob_temp_flags" | sed -e 's/-fmessage-length=0//'`
|
|
Loading…
Reference in New Issue
Block a user