[10285] | 1 | %define pkg_name opensource-cobol |
---|
[10843] | 2 | %define pkg_version 1.5.1J |
---|
| 3 | %define pkg_release 1%{?_dist_release} |
---|
[10285] | 4 | |
---|
| 5 | Summary: An open-source COBOL compiler |
---|
| 6 | Name: %{pkg_name} |
---|
| 7 | Version: %{pkg_version} |
---|
| 8 | Release: %{pkg_release} |
---|
| 9 | |
---|
| 10 | License: GPLv2 |
---|
[10807] | 11 | Group: Development/Languages |
---|
[10285] | 12 | URL: https://www.osscons.jp/ |
---|
| 13 | Source0: %{name}-%{version}-utf8.tar.gz |
---|
| 14 | |
---|
| 15 | Buildroot: %{_tmppath}/%{name}-%{version}-root |
---|
| 16 | |
---|
| 17 | %if %{?_dist_release} == "vl6" |
---|
| 18 | BuildRequires: db4-devel |
---|
[10385] | 19 | %else |
---|
[10285] | 20 | BuildRequires: libdb-devel |
---|
| 21 | %endif |
---|
| 22 | BuildRequires: gmp-devel |
---|
| 23 | BuildRequires: ncurses-devel |
---|
| 24 | |
---|
| 25 | BuildRequires: texinfo |
---|
| 26 | BuildRequires: texlive-common |
---|
| 27 | %if %{?_dist_release} == "vl6" |
---|
| 28 | BuildRequires: texlive-collection-texinfo |
---|
[10385] | 29 | %else |
---|
[10285] | 30 | BuildRequires: texlive-collection-plainextra |
---|
| 31 | BuildRequires: texlive-collection-fontsrecommended |
---|
| 32 | %endif |
---|
| 33 | |
---|
[10708] | 34 | Requires: ncurses-devel |
---|
[10285] | 35 | %if %{?_dist_release} == "vl6" |
---|
[10708] | 36 | Requires: db4-devel |
---|
[10385] | 37 | %else |
---|
[10708] | 38 | Requires: libdb-devel |
---|
[10285] | 39 | %endif |
---|
| 40 | |
---|
| 41 | Vendor: Project Vine |
---|
| 42 | Distribution: Vine Linux |
---|
| 43 | Packager: ara_t |
---|
| 44 | |
---|
| 45 | |
---|
| 46 | %description |
---|
| 47 | "opensource COBOL" is open-source COBOL compiler, |
---|
| 48 | an extension of the Japan-specific features. |
---|
| 49 | "opensource COBOL" translates COBOL program to C code |
---|
| 50 | and compiles it using GCC or CL. |
---|
| 51 | |
---|
| 52 | It was forked from OpenCOBOL in 2012. |
---|
| 53 | See also OpenCOBOL project. |
---|
| 54 | http://www.opencobol.org/ |
---|
| 55 | http://sourceforge.net/projects/open-cobol/ |
---|
| 56 | |
---|
| 57 | %description -l ja |
---|
| 58 | opensource COBOLは、オーペンソースのCOBOLコンパイラであり、 |
---|
| 59 | COBOLプログラムをC言語のコードに翻訳し、GCCあるいはCLを用いて |
---|
| 60 | コンパイルします。 |
---|
| 61 | |
---|
| 62 | opensource COBOLは、オープンCOBOLソリューション部会によって |
---|
| 63 | OpenCOBOLに日本特有のビジネス環境に即したカスタマイズ、 |
---|
| 64 | メンテナンスを加えたものです。 |
---|
| 65 | |
---|
| 66 | |
---|
| 67 | %prep |
---|
| 68 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 69 | %setup -q -n %{name}-%{version}-utf8 |
---|
| 70 | |
---|
| 71 | %build |
---|
[10843] | 72 | # %if %{?_dist_release} >= "vl7" |
---|
| 73 | # export CFLAGS="%{optflags} -std=gnu89" |
---|
| 74 | # %endif |
---|
[10285] | 75 | %{configure} \ |
---|
| 76 | --enable-utf8 \ |
---|
| 77 | --disable-static |
---|
| 78 | |
---|
| 79 | %{__make} %{?_smp_mflags} |
---|
| 80 | %{__make} pdf html |
---|
| 81 | |
---|
| 82 | %check |
---|
| 83 | %{__make} check |
---|
| 84 | |
---|
| 85 | %install |
---|
| 86 | %{make_install} |
---|
| 87 | %{__rm} ${RPM_BUILD_ROOT}%{_libdir}/*.la |
---|
| 88 | %{__rm} ${RPM_BUILD_ROOT}%{_infodir}/dir |
---|
| 89 | |
---|
| 90 | %clean |
---|
| 91 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 92 | |
---|
| 93 | %post |
---|
[10708] | 94 | %{_syssbindir}/install-info %{_infodir}/open-cobol.info.gz \ |
---|
| 95 | %{_infodir}/dir 2>/dev/null |
---|
[10285] | 96 | %{_syssbindir}/ldconfig |
---|
| 97 | |
---|
| 98 | %preun |
---|
| 99 | if [ $1 = 0 ]; then |
---|
[10708] | 100 | %{_syssbindir}/install-info --delete %{_infodir}/open-cobol.info.gz \ |
---|
| 101 | %{_infodir}/dir 2>/dev/null |
---|
[10285] | 102 | fi |
---|
| 103 | |
---|
| 104 | %postun -p %{_syssbindir}/ldconfig |
---|
| 105 | |
---|
| 106 | |
---|
| 107 | %files |
---|
| 108 | %defattr(-,root,root) |
---|
| 109 | %doc AUTHORS ChangeLog COPYING* NEWS README THANKS TODO |
---|
| 110 | %doc texi/open-cobol.pdf |
---|
| 111 | %doc texi/open-cobol.html/ |
---|
| 112 | %{_bindir}/ |
---|
| 113 | %{_includedir}/libcob.h |
---|
| 114 | %{_includedir}/libcob |
---|
| 115 | %{_libdir}/libcob.so* |
---|
| 116 | %{_datadir}/locale/ |
---|
| 117 | %{_datadir}/%{name}-%{version} |
---|
| 118 | %{_infodir}/*.info.gz |
---|
| 119 | |
---|
| 120 | |
---|
| 121 | %changelog |
---|
[10843] | 122 | * Mon Dec 12 2016 Toshiaki Ara <ara_t@384.jp> 1.5.1J-1 |
---|
| 123 | - new upstream release |
---|
| 124 | |
---|
[10807] | 125 | * Sun Nov 06 2016 Toshiaki Ara <ara_t@384.jp> 1.5.0J-3 |
---|
| 126 | - change Group to Development/Languages |
---|
| 127 | |
---|
[10708] | 128 | * Fri Jul 29 2016 Toshiaki Ara <ara_t@384.jp> 1.5.0J-2 |
---|
| 129 | - change Requires: ncurses to ncurses-devel |
---|
| 130 | - change Requires: db4/libdb to db4-devel/libdb-devel |
---|
| 131 | - add export CFLAGS="%{optflags} -std=gnu89" for VineSeed (gcc-5) |
---|
| 132 | |
---|
[10385] | 133 | * Sun Jun 19 2016 Toshiaki Ara <ara_t@384.jp> 1.5.0J-1 |
---|
| 134 | - update to 1.5.0J |
---|
| 135 | - delete BuildRequires: texlive-collection-lang* |
---|
| 136 | |
---|
[10285] | 137 | * Sat May 14 2016 Toshiaki Ara <ara_t@384.jp> 1.4.0J-2 |
---|
| 138 | - rebuild under texlive 2016 pretest |
---|
| 139 | - add BuildRequires |
---|
| 140 | |
---|
| 141 | * Fri May 13 2016 Toshiaki Ara <ara_t@384.jp> 1.4.0J-1 |
---|
| 142 | - new package |
---|
| 143 | |
---|