7c12801322
Initial packaging for GNU COBOL compiler OBS-URL: https://build.opensuse.org/request/show/232244 OBS-URL: https://build.opensuse.org/package/show/devel:languages:misc/gnu-cobol?expand=0&rev=1
102 lines
2.8 KiB
RPMSpec
102 lines
2.8 KiB
RPMSpec
#
|
|
# 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
|
|
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 --prefix=/usr --libdir='%{_libdir}' --infodir='%{_infodir}'
|
|
make
|
|
|
|
%install
|
|
make DESTDIR=${RPM_BUILD_ROOT}/ 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
|
|
|
|
%clean
|
|
|
|
%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
|
|
/usr/bin/cob-config
|
|
/usr/bin/cobc
|
|
/usr/bin/cobcrun
|
|
%{_infodir}/gnu-cobol.info.gz
|
|
%{_libdir}/gnu-cobol
|
|
/usr/share/gnu-cobol
|
|
|
|
%files -n libcob1
|
|
%defattr(-,root,root)
|
|
%doc COPYING.LIB
|
|
%{_libdir}/libcob.so
|
|
%{_libdir}/libcob.so.1
|
|
%{_libdir}/libcob.so.1.0.0
|
|
|
|
%files -n libcob-devel
|
|
%defattr(-,root,root)
|
|
/usr/include/libcob.h
|
|
/usr/include/libcob
|
|
%{_libdir}/libcob.a
|
|
%{_libdir}/libcob.la
|