# # spec file for package gnu-cobol (Version 1.1) # # Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # 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/ # Summary: A free and open COBOL compiler Name: gnu-cobol Version: 1.1 Release: 0 Source: gnu-cobol-1.1.tar.gz License: GPL-2.0+ Group: Development/Languages/Other Url: http://www.opencobol.org/ Provides: opencobol = %version Requires: libcob1 = %version BuildRequires: db-devel gmp-devel ncurses-devel BuildRoot: %{_tmppath}/%{name}-%{version}-build Patch1: types.diff %description GNU Cobol (formerly OpenCOBOL) is a free COBOL compiler. cobc translates COBOL to executable using intermediate C sources, providing full access to nearly all C libraries. %package -n libcob1 Summary: GNU COBOL shared library Group: Development/Languages/Other License: LGPL-2.1+ %description -n libcob1 GNU Cobol (formerly OpenCOBOL) is a free COBOL compiler. cobc translates COBOL to executable using intermediate C sources, providing full access to nearly all C libraries. %package -n libcob-devel Summary: Include files for GNU COBOL shared library Group: Development/Languages/Other License: LGPL-2.1+ Requires: libcob1 = %version %description -n libcob-devel GNU Cobol (formerly OpenCOBOL) is a free COBOL compiler. cobc translates COBOL to executable using intermediate C sources, providing full access to nearly all C libraries. %prep %setup %patch1 -p1 %build %configure make %install make DESTDIR=%{buildroot} install %post /sbin/install-info %{_infodir}/gnu-cobol.info.gz %{_infodir}/dir %postun /sbin/install-info --delete %{_infodir}/gnu-cobol.info.gz %{_infodir}/dir %post -n libcob1 -p /sbin/ldconfig %postun -n libcob1 -p /sbin/ldconfig %files %defattr(-,root,root) %doc ABOUT-NLS AUTHORS COPYING COPYING.DOC ChangeLog NEWS README THANKS TODO %lang(ja) /usr/share/locale/ja/LC_MESSAGES/gnu-cobol.mo %{_bindir}/cob-config %{_bindir}/cobc %{_bindir}/cobcrun %{_infodir}/gnu-cobol.info.gz %{_libdir}/gnu-cobol %{_datadir}/gnu-cobol %files -n libcob1 %defattr(-,root,root) %doc COPYING.LIB %{_libdir}/libcob.so.1 %{_libdir}/libcob.so.1.0.0 %files -n libcob-devel %defattr(-,root,root) %{_includedir}/libcob.h %{_includedir}/libcob %{_libdir}/libcob.so %{_libdir}/libcob.a %{_libdir}/libcob.la %changelog