Sisyphus repositório
Última atualização: 14 junho 2021 | SRPMs: 17519 | Visitas: 21199164
en ru br
ALT Linux repositórios
S:3.1.2-alt1

Group :: Desenvolvimento/Outros
RPM: gnucobol

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Name: gnucobol
Version: 3.1.2
Release: alt1

Summary: GnuCOBOL (formely Open COBOL) - COBOL compiler

License: GPLv3+ and LGPLv3+ and GFDL-1.3

Group: Development/Other
Url: http://www.opencobol.org

Packager: Ilya Mashkin <oddity at altlinux.ru>

# Source: http://downloads.sourceforge.net/%name/%name-%version.tar.gz

# Source-url: https://ftp.gnu.org/gnu/gnucobol/gnucobol-%version.tar.xz
Source: %name-%version.tar
Source3:        https://www.itl.nist.gov/div897/ctg/suites/newcob.val.Z
# Automatically added by buildreq on Wed Jun 06 2012
# optimized out: libtinfo-devel
BuildRequires: libdb4-devel libgmp-devel libncurses-devel help2man gettext libreadline-devel libjson-c-devel  libxml2-devel libncursesw-devel

Requires: libcob = %version-%release
Obsoletes: libcob-devel < %version
# explicitly added texinfo for info files
BuildRequires: texinfo

Provides: open-cobol = %version-%release
Obsoletes: open-cobol < %version

%description
GnuCOBOL is an open-source COBOL compiler, which translates COBOL
programs to C code and compiles it using GCC.

%package -n libcob
Summary: GnuCOBOL runtime library
License: LGPLv3+
Group: Development/Other

%description -n libcob
GnuCOBOL is an open-source COBOL compiler, which translates COBOL
programs to C code and compiles it using GCC.

This package contains GnuCOBOL runtime library.

%prep
%setup
# hack to work around break -frecord-gcc-switches
#subst 's!/-g/!/-g /!' ./configure.ac
#autoreconf
cp %{SOURCE3} tests/cobol85/
%build
%add_optflags %optflags_shared
#configure --disable-rpath --disable-static --enable-debug
%configure --enable-hardening --with-db --with-xml2 --with-curses=ncursesw --with-json=json-c
# get rid of RPATH
sed -ri 's/^(hardcode_libdir_flag_spec|runpath_var)=.*/\1=/' libtool

#make_build || %make

%make_build

%install
%makeinstall_std
find %{buildroot}/%{_libdir} -type f -name "*.*a" -exec rm -f {} ';'
rm -rf %{buildroot}/%{_infodir}/dir

%find_lang %name

%check
#make_build -k check
(make check CFLAGS="%optflags -O" || make check TESTSUITEFLAGS="--recheck --verbose" || echo "Warning, unexpected results")
make test CFLAGS="%optflags -O"


%files -f %name.lang
%doc AUTHORS COPYING ChangeLog NEWS README THANKS
%_bindir/cobc
%_bindir/cob-config
%_bindir/cobcrun
%_datadir/gnucobol/
%_infodir/gnucobol.info*
%_includedir/*
%_libdir/libcob.so
%dir %_libdir/gnucobol/
%_libdir/gnucobol/CBL_OC_DUMP.so
%_man1dir/*

%files -n libcob
%doc COPYING.LESSER
%_libdir/libcob.so.*

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009