opensource-cobol-vl.spec 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. %define pkg_name opensource-cobol
  2. %define pkg_version 1.4.0J
  3. %define pkg_release 2%{?_dist_release}
  4. Summary: An open-source COBOL compiler
  5. Name: %{pkg_name}
  6. Version: %{pkg_version}
  7. Release: %{pkg_release}
  8. License: GPLv2
  9. Group: Applications/Languages
  10. URL: https://www.osscons.jp/
  11. Source0: %{name}-%{version}-utf8.tar.gz
  12. Buildroot: %{_tmppath}/%{name}-%{version}-root
  13. %if %{?_dist_release} == "vl6"
  14. BuildRequires: db4-devel
  15. %endif
  16. %if %{?_dist_release} == "vl7"
  17. BuildRequires: libdb-devel
  18. %endif
  19. BuildRequires: gmp-devel
  20. BuildRequires: ncurses-devel
  21. BuildRequires: texinfo
  22. BuildRequires: texlive-common
  23. %if %{?_dist_release} == "vl6"
  24. BuildRequires: texlive-collection-texinfo
  25. %endif
  26. %if %{?_dist_release} == "vl7"
  27. BuildRequires: texlive-collection-plainextra
  28. BuildRequires: texlive-collection-fontsrecommended
  29. # rpm -qa --qf "BuildRequires: %{name}\n" | grep -v -e "doc$" | \
  30. # grep texlive-collection-lang
  31. BuildRequires: texlive-collection-langenglish
  32. BuildRequires: texlive-collection-langkorean
  33. BuildRequires: texlive-collection-langitalian
  34. BuildRequires: texlive-collection-langpolish
  35. BuildRequires: texlive-collection-langgerman
  36. BuildRequires: texlive-collection-langjapanese
  37. BuildRequires: texlive-collection-langgreek
  38. BuildRequires: texlive-collection-langcyrillic
  39. BuildRequires: texlive-collection-langeuropean
  40. BuildRequires: texlive-collection-langspanish
  41. BuildRequires: texlive-collection-langcjk
  42. BuildRequires: texlive-collection-langczechslovak
  43. BuildRequires: texlive-collection-langfrench
  44. BuildRequires: texlive-collection-langarabic
  45. BuildRequires: texlive-collection-langother
  46. BuildRequires: texlive-collection-langportuguese
  47. BuildRequires: texlive-collection-langindic
  48. BuildRequires: texlive-collection-langafrican
  49. BuildRequires: texlive-collection-langchinese
  50. %endif
  51. %if %{?_dist_release} == "vl6"
  52. Requires: db4
  53. %endif
  54. %if %{?_dist_release} == "vl7"
  55. Requires: libdb
  56. %endif
  57. Vendor: Project Vine
  58. Distribution: Vine Linux
  59. Packager: ara_t
  60. %description
  61. "opensource COBOL" is open-source COBOL compiler,
  62. an extension of the Japan-specific features.
  63. "opensource COBOL" translates COBOL program to C code
  64. and compiles it using GCC or CL.
  65. It was forked from OpenCOBOL in 2012.
  66. See also OpenCOBOL project.
  67. http://www.opencobol.org/
  68. http://sourceforge.net/projects/open-cobol/
  69. %description -l ja
  70. opensource COBOLは、オーペンソースのCOBOLコンパイラであり、
  71. COBOLプログラムをC言語のコードに翻訳し、GCCあるいはCLを用いて
  72. コンパイルします。
  73. opensource COBOLは、オープンCOBOLソリューション部会によって
  74. OpenCOBOLに日本特有のビジネス環境に即したカスタマイズ、
  75. メンテナンスを加えたものです。
  76. %prep
  77. %{__rm} -rf ${RPM_BUILD_ROOT}
  78. %setup -q -n %{name}-%{version}-utf8
  79. %build
  80. %{configure} \
  81. --enable-utf8 \
  82. --disable-static
  83. %{__make} %{?_smp_mflags}
  84. %{__make} pdf html
  85. %check
  86. %{__make} check
  87. %install
  88. %{make_install}
  89. %{__rm} ${RPM_BUILD_ROOT}%{_libdir}/*.la
  90. %{__rm} ${RPM_BUILD_ROOT}%{_infodir}/dir
  91. %clean
  92. %{__rm} -rf ${RPM_BUILD_ROOT}
  93. %post
  94. /sbin/install-info %{_infodir}/open-cobol.info.gz %{_infodir}/dir 2>/dev/null
  95. %{_syssbindir}/ldconfig
  96. %preun
  97. if [ $1 = 0 ]; then
  98. /sbin/install-info --delete %{_infodir}/open-cobol.info.gz \
  99. %{_infodir}/dir 2>/dev/null
  100. fi
  101. %postun -p %{_syssbindir}/ldconfig
  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. %changelog
  115. * Sat May 14 2016 Toshiaki Ara <ara_t@384.jp> 1.4.0J-2
  116. - rebuild under texlive 2016 pretest
  117. - add BuildRequires
  118. * Fri May 13 2016 Toshiaki Ara <ara_t@384.jp> 1.4.0J-1
  119. - new package