Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package gnu-cobol for openSUSE:Factory 
checked in at 2021-04-22 18:04:05
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/gnu-cobol (Old)
 and      /work/SRC/openSUSE:Factory/.gnu-cobol.new.12324 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "gnu-cobol"

Thu Apr 22 18:04:05 2021 rev:3 rq:887440 version:3.1.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/gnu-cobol/gnu-cobol.changes      2018-07-31 
16:04:16.928044667 +0200
+++ /work/SRC/openSUSE:Factory/.gnu-cobol.new.12324/gnu-cobol.changes   
2021-04-22 18:04:53.882592256 +0200
@@ -1,0 +2,9 @@
+Wed Dec 23 17:43:58 UTC 2020 - Luigi Baldoni <aloi...@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
+
+-------------------------------------------------------------------

Old:
----
  gnucobol-3.0-rc1.tar.xz
  gnucobol-CFLAGS.patch

New:
----
  fix_test_698.patch
  gnucobol-3.1.2.tar.xz
  gnucobol-3.1.2.tar.xz.sig

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ gnu-cobol.spec ++++++
--- /var/tmp/diff_new_pack.oKuSlh/_old  2021-04-22 18:04:55.206594276 +0200
+++ /var/tmp/diff_new_pack.oKuSlh/_new  2021-04-22 18:04:55.210594282 +0200
@@ -1,7 +1,7 @@
 #
 # 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
 # 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)
 # 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 _mver   3.0
-%define _over   3.0-rc1
+%define _mver   3.1
 Name:           gnu-cobol
-Version:        3.0rc1
+Version:        3.1.2
 Release:        0
 Summary:        A COBOL compiler
 License:        GPL-3.0-or-later AND LGPL-3.0-or-later
 Group:          Development/Languages/Other
-Url:            https://savannah.gnu.org/projects/gnucobol
-Source0:        
https://sourceforge.net/projects/open-cobol/files/gnu-cobol/%{_mver}/gnucobol-%{_over}.tar.xz
-Source1:        %{name}.changes
-# PATCH-FIX-OPENSUSE gnucobol-CFLAGS.patch -- fixes overreaching regex
-Patch2:         gnucobol-CFLAGS.patch
+URL:            https://savannah.gnu.org/projects/gnucobol
+Source0:        
https://sourceforge.net/projects/open-cobol/files/gnu-cobol/%{_mver}/gnucobol-%{version}.tar.xz
+Source1:        
https://sourceforge.net/projects/open-cobol/files/gnu-cobol/%{_mver}/gnucobol-%{version}.tar.xz.sig
+# PATCH-FIX-UPSTREAM fix_test_698.patch -- see 
https://sourceforge.net/p/gnucobol/bugs/695/
+Patch1:         fix_test_698.patch
+BuildRequires:  autoconf
 BuildRequires:  db-devel
 BuildRequires:  dos2unix
 BuildRequires:  gmp-devel
 BuildRequires:  help2man
 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(preun): %{install_info_prereq}
 Provides:       opencobol = %{version}
@@ -67,31 +70,21 @@
 providing full access to nearly all C libraries.
 
 %prep
-%setup -q -n gnucobol-%{_over}
-%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
+%autosetup -p1 -n gnucobol-%{version}
 
 %build
 %configure \
+        --enable-hardening \
        --enable-static=no
-make %{?_smp_mflags}
+%make_build
 
 %install
 %make_install
-# do not ship these
-rm %{buildroot}%{_libdir}/libcob.la
 %find_lang gnucobol
+find %{buildroot} -type f -name "*.la" -delete -print
 
 %check
-make %{?_smp_mflags} check
+%make_build check
 
 %post
 %install_info --info-dir=%{_infodir} %{_infodir}/gnucobol.info.gz
@@ -103,24 +96,23 @@
 %postun -n libcob%{sover} -p /sbin/ldconfig
 
 %files -f gnucobol.lang
-%defattr(-,root,root)
-%doc ABOUT-NLS AUTHORS COPYING COPYING.DOC ChangeLog NEWS README THANKS TODO
+%license COPYING COPYING.DOC
+%doc ABOUT-NLS AUTHORS ChangeLog NEWS README THANKS TODO
 %{_bindir}/cob-config
 %{_bindir}/cobc
 %{_bindir}/cobcrun
 %{_datadir}/gnucobol
-%{_infodir}/gnucobol.info%{ext_info}
+%{_infodir}/gnucobol.info%{?ext_info}
 %{_libdir}/gnucobol
+%{_mandir}/man1/cob-config.1%{ext_info}
 %{_mandir}/man1/cobc.1%{ext_info}
 %{_mandir}/man1/cobcrun.1%{ext_info}
 
 %files -n libcob%{sover}
-%defattr(-,root,root)
-%doc COPYING.LESSER
+%license COPYING.LESSER
 %{_libdir}/libcob.so.%{sover}*
 
 %files -n libcob-devel
-%defattr(-,root,root)
 %{_includedir}/libcob.h
 %{_includedir}/libcob
 %{_libdir}/libcob.so

++++++ fix_test_698.patch ++++++
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 */
 
++++++ gnucobol-3.0-rc1.tar.xz -> gnucobol-3.1.2.tar.xz ++++++
++++ 621227 lines of diff (skipped)

Reply via email to