[10285] | 1 | %define pkg_name opensource-cobol |
---|
[10385] | 2 | %define pkg_version 1.5.0J |
---|
| 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 |
---|
| 11 | Group: Applications/Languages |
---|
| 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 | |
---|
| 34 | %if %{?_dist_release} == "vl6" |
---|
| 35 | Requires: db4 |
---|
[10385] | 36 | %else |
---|
[10285] | 37 | Requires: libdb |
---|
| 38 | %endif |
---|
| 39 | |
---|
| 40 | Vendor: Project Vine |
---|
| 41 | Distribution: Vine Linux |
---|
| 42 | Packager: ara_t |
---|
| 43 | |
---|
| 44 | |
---|
| 45 | %description |
---|
| 46 | "opensource COBOL" is open-source COBOL compiler, |
---|
| 47 | an extension of the Japan-specific features. |
---|
| 48 | "opensource COBOL" translates COBOL program to C code |
---|
| 49 | and compiles it using GCC or CL. |
---|
| 50 | |
---|
| 51 | It was forked from OpenCOBOL in 2012. |
---|
| 52 | See also OpenCOBOL project. |
---|
| 53 | http://www.opencobol.org/ |
---|
| 54 | http://sourceforge.net/projects/open-cobol/ |
---|
| 55 | |
---|
| 56 | %description -l ja |
---|
| 57 | opensource COBOLは、オーペンソースのCOBOLコンパイラであり、 |
---|
| 58 | COBOLプログラムをC言語のコードに翻訳し、GCCあるいはCLを用いて |
---|
| 59 | コンパイルします。 |
---|
| 60 | |
---|
| 61 | opensource COBOLは、オープンCOBOLソリューション部会によって |
---|
| 62 | OpenCOBOLに日本特有のビジネス環境に即したカスタマイズ、 |
---|
| 63 | メンテナンスを加えたものです。 |
---|
| 64 | |
---|
| 65 | |
---|
| 66 | %prep |
---|
| 67 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 68 | %setup -q -n %{name}-%{version}-utf8 |
---|
| 69 | |
---|
| 70 | %build |
---|
| 71 | %{configure} \ |
---|
| 72 | --enable-utf8 \ |
---|
| 73 | --disable-static |
---|
| 74 | |
---|
| 75 | %{__make} %{?_smp_mflags} |
---|
| 76 | %{__make} pdf html |
---|
| 77 | |
---|
| 78 | %check |
---|
| 79 | %{__make} check |
---|
| 80 | |
---|
| 81 | %install |
---|
| 82 | %{make_install} |
---|
| 83 | %{__rm} ${RPM_BUILD_ROOT}%{_libdir}/*.la |
---|
| 84 | %{__rm} ${RPM_BUILD_ROOT}%{_infodir}/dir |
---|
| 85 | |
---|
| 86 | %clean |
---|
| 87 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 88 | |
---|
| 89 | %post |
---|
| 90 | /sbin/install-info %{_infodir}/open-cobol.info.gz %{_infodir}/dir 2>/dev/null |
---|
| 91 | %{_syssbindir}/ldconfig |
---|
| 92 | |
---|
| 93 | %preun |
---|
| 94 | if [ $1 = 0 ]; then |
---|
| 95 | /sbin/install-info --delete %{_infodir}/open-cobol.info.gz \ |
---|
| 96 | %{_infodir}/dir 2>/dev/null |
---|
| 97 | fi |
---|
| 98 | |
---|
| 99 | %postun -p %{_syssbindir}/ldconfig |
---|
| 100 | |
---|
| 101 | |
---|
| 102 | %files |
---|
| 103 | %defattr(-,root,root) |
---|
| 104 | %doc AUTHORS ChangeLog COPYING* NEWS README THANKS TODO |
---|
| 105 | %doc texi/open-cobol.pdf |
---|
| 106 | %doc texi/open-cobol.html/ |
---|
| 107 | %{_bindir}/ |
---|
| 108 | %{_includedir}/libcob.h |
---|
| 109 | %{_includedir}/libcob |
---|
| 110 | %{_libdir}/libcob.so* |
---|
| 111 | %{_datadir}/locale/ |
---|
| 112 | %{_datadir}/%{name}-%{version} |
---|
| 113 | %{_infodir}/*.info.gz |
---|
| 114 | |
---|
| 115 | |
---|
| 116 | %changelog |
---|
[10385] | 117 | * Sun Jun 19 2016 Toshiaki Ara <ara_t@384.jp> 1.5.0J-1 |
---|
| 118 | - update to 1.5.0J |
---|
| 119 | - delete BuildRequires: texlive-collection-lang* |
---|
| 120 | |
---|
[10285] | 121 | * Sat May 14 2016 Toshiaki Ara <ara_t@384.jp> 1.4.0J-2 |
---|
| 122 | - rebuild under texlive 2016 pretest |
---|
| 123 | - add BuildRequires |
---|
| 124 | |
---|
| 125 | * Fri May 13 2016 Toshiaki Ara <ara_t@384.jp> 1.4.0J-1 |
---|
| 126 | - new package |
---|
| 127 | |
---|