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