SHA256
1
0
forked from pool/gnu-cobol

Accepting request 232244 from home:MihailJP

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
This commit is contained in:
Matthias Mailänder 2014-04-30 20:58:06 +00:00 committed by Git OBS Bridge
commit 7c12801322
6 changed files with 146 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

3
gnu-cobol-1.1.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5cd6c99b2b1c82fd0c8fffbb350aaf255d484cde43cf5d9b92de1379343b3d7e
size 1046006

6
gnu-cobol.changes Normal file
View File

@ -0,0 +1,6 @@
-------------------------------------------------------------------
Wed Apr 30 00:00:00 UTC 2014 - MihailJP
- First packaging

101
gnu-cobol.spec Normal file
View File

@ -0,0 +1,101 @@
#
# 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

12
types.diff Normal file
View File

@ -0,0 +1,12 @@
diff -Pdpru gnu-cobol-1.1/libcob/common.h gnu-cobol-1.1-mod/libcob/common.h
--- gnu-cobol-1.1/libcob/common.h 2013-12-23 22:21:31.000000000 +0900
+++ gnu-cobol-1.1-mod/libcob/common.h 2014-04-30 21:28:19.563475933 +0900
@@ -258,7 +258,7 @@
#define COB_EXPIMP __declspec(dllimport) extern
#endif
#else
- #define COB_EXPIMP extern
+ #define COB_EXPIMP /*extern*/
#endif
#if defined(__370__) || defined(_MSC_VER)