%define _lto_cflags %{nil} %undefine _package_note_file Name: gnucobol Version: 3.1.2 Release: 8%{?dist} Summary: COBOL compiler License: GPLv3+ and LGPLv3+ and GFDL URL: https://www.gnu.org/software/gnucobol/ Source0: https://ftp.gnu.org/gnu/gnucobol/gnucobol-%{version}.tar.gz Source1: https://ftp.gnu.org/gnu/gnucobol/gnucobol-%{version}.tar.gz.sig Source2: https://ftp.gnu.org/gnu/gnu-keyring.gpg Source3: https://www.itl.nist.gov/div897/ctg/suites/newcob.val.Z BuildRequires: gcc BuildRequires: gmp-devel BuildRequires: readline-devel BuildRequires: libdb-devel BuildRequires: gettext BuildRequires: gnupg2 BuildRequires: perl-interpreter BuildRequires: libxml2-devel %if 0%{?el7} BuildRequires: json-c12-devel %else BuildRequires: json-c-devel %endif BuildRequires: make Requires: gcc Requires: glibc-devel Requires: gmp-devel Requires: redhat-rpm-config Requires: libcob = %{version} %description COBOL compiler, which translates COBOL programs to C code and compiles them using GCC. %package -n libcob Summary: GnuCOBOL runtime library License: LGPLv3+ %description -n libcob %{summary}. Runtime libraries for GnuCOBOL %prep %{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}' %autosetup cp %{SOURCE3} tests/cobol85/ %build %if 0%{?el7} %configure --enable-hardening --with-db --with-xml2 --with-curses=ncursesw --with-json=json-c \ JSON_C_LIBS=$(pkg-config --libs json-c12) JSON_C_CFLAGS=$(pkg-config --cflags json-c12) %else %configure --enable-hardening --with-db --with-xml2 --with-curses=ncursesw --with-json=json-c %endif %make_build iconv -c --to-code=UTF-8 ChangeLog > ChangeLog.new mv ChangeLog.new ChangeLog %install make install DESTDIR=%{buildroot} find %{buildroot}/%{_libdir} -type f -name "*.*a" -exec rm -f {} ';' rm -rf %{buildroot}/%{_infodir}/dir %find_lang %{name} %check (make check CFLAGS="%optflags -O" || make check TESTSUITEFLAGS="--recheck --verbose" || echo "Warning, unexpected results") make test CFLAGS="%optflags -O" %files -f %%{name}.lang %license COPYING.DOC COPYING %doc AUTHORS ChangeLog %doc NEWS README THANKS %{_bindir}/cobc %{_bindir}/cob-config %{_bindir}/cobcrun %{_includedir}/* %{_libdir}/%{name} %{_libdir}/libcob.so %{_datadir}/gnucobol %{_infodir}/gnucobol.info.* %{_mandir}/man1/cobc.1.* %{_mandir}/man1/cobcrun.1.* %{_mandir}/man1/cob-config.1.* %files -n libcob %license COPYING.LESSER %{_libdir}/libcob.so.4* %{_libdir}/gnucobol/CBL_OC_DUMP.so %changelog * Wed Sep 07 2022 Gwyn Ciesla - 3.1.2-8 - Rebuild for link issue, disable package note. * Thu Jul 21 2022 Fedora Release Engineering - 3.1.2-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jul 18 2022 Gwyn Ciesla - 3.1.2-6 - Rebuild to fix linker issue. * Thu Jan 20 2022 Fedora Release Engineering - 3.1.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 3.1.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Sat Jul 10 2021 Björn Esser - 3.1.2-3 - Rebuild for versioned symbols in json-c * Tue Jan 26 2021 Fedora Release Engineering - 3.1.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Dec 23 2020 Gwyn Ciesla - 3.1.2-1 - 3.1.2 * Thu Dec 17 2020 Gwyn Ciesla - 3.1.1-3 - Require redhat-rpm-config. * Wed Dec 09 2020 Gwyn Ciesla - 3.1.1-2 - Conditionalize json-c for EL-7. * Wed Dec 09 2020 Gwyn Ciesla - 3.1.1-1 - 3.1.1 * Sat Aug 01 2020 Fedora Release Engineering - 3.1-7.rc1.2 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon Jul 27 2020 Fedora Release Engineering - 3.1-7.rc1.1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Jul 22 2020 Gwyn Ciesla - 3.1-7.rc1 - Re-add libxml2, specify optional flags. * Wed Jul 22 2020 Gwyn Ciesla - 3.1-6.rc1 - License, BuildRequire tweaks. * Fri Jul 03 2020 Gwyn Ciesla - 3.1-5.rc1 - Enable ppc64le, NIST tests. * Thu Jul 02 2020 Gwyn Ciesla - 3.1-4.rc1 - 3.1 rc1 * Wed Jun 24 2020 Gwyn Ciesla - 3.1-3 - Review fixes. * Wed May 13 2020 Gwyn Ciesla - 3.1-2 - Review fixes. * Fri Apr 17 2020 Gwyn Ciesla - 3.1-1 - 3.1 nightly. * Mon Apr 13 2020 Gwyn Ciesla - 3.0-0.rc1.1 - Initial release, adapted from open-cobol spec.