commit 7c128013220a3474d1397778d36f2094555f37e46823ad698341d422b1cd935d Author: Matthias Mailänder Date: Wed Apr 30 20:58:06 2014 +0000 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 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/gnu-cobol-1.1.tar.gz b/gnu-cobol-1.1.tar.gz new file mode 100644 index 0000000..bbae072 --- /dev/null +++ b/gnu-cobol-1.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5cd6c99b2b1c82fd0c8fffbb350aaf255d484cde43cf5d9b92de1379343b3d7e +size 1046006 diff --git a/gnu-cobol.changes b/gnu-cobol.changes new file mode 100644 index 0000000..9f51ebd --- /dev/null +++ b/gnu-cobol.changes @@ -0,0 +1,6 @@ +------------------------------------------------------------------- +Wed Apr 30 00:00:00 UTC 2014 - MihailJP + +- First packaging + + diff --git a/gnu-cobol.spec b/gnu-cobol.spec new file mode 100644 index 0000000..44066ec --- /dev/null +++ b/gnu-cobol.spec @@ -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 diff --git a/types.diff b/types.diff new file mode 100644 index 0000000..d1ed947 --- /dev/null +++ b/types.diff @@ -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)