pccts-vl.spec 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. Summary: The Purdue Compiler-Compiler Tool Set.
  2. Name: pccts
  3. Version: 1.33mr33
  4. Release: 1%{?_dist_release}
  5. Source: http://www.polhode.com/pccts133mr33.zip
  6. URL: http://www.polhode.com/pccts.html
  7. License: Public domain
  8. Group: Development/Tools
  9. BuildRoot: %{_tmppath}/%{name}-root
  10. Prefix: %{_prefix}
  11. %description
  12. The Purdue Compiler-Compiler Tool Set (PCCTS) is a set of public
  13. domain software tools designed to facilitate the implementation of
  14. compilers and other translation systems. These tools currently
  15. include antlr, dlg and support code. In many ways, PCCTS is similar
  16. to a highly integrated version of YACC and LEX; where antlr (ANother
  17. Tool for Language Recognition) corresponds to YACC and dlg (DFA-based
  18. Lexical analyzer Generator) functions like LEX. However, PCCTS has
  19. many additional features which make it easier to use for a wider range
  20. of translation problems.
  21. %prep
  22. rm -rf $RPM_BUILD_DIR/pccts/
  23. unzip -q %{SOURCE0}
  24. %setup -DT -n pccts
  25. %build
  26. mkdir -p $RPM_BUILD_DIR/pccts/man/man1
  27. #make COPT="$RPM_OPT_FLAGS" MANDIR=man %{?_smp_mflags} pccts manpages
  28. make COPT="$RPM_OPT_FLAGS -DPCCTS_USE_STDARG" MANDIR=man %{?_smp_mflags} pccts manpages
  29. %install
  30. rm -rf $RPM_BUILD_ROOT
  31. mkdir -p $RPM_BUILD_ROOT%{prefix}/{bin,share/man/man1,include/pccts}
  32. install -s -m755 bin/antlr $RPM_BUILD_ROOT%{_bindir}
  33. install -m644 man/man1/antlr.1 $RPM_BUILD_ROOT%{_mandir}/man1
  34. install -s -m755 bin/dlg $RPM_BUILD_ROOT%{_bindir}
  35. install -m644 man/man1/dlg.1 $RPM_BUILD_ROOT%{_mandir}/man1
  36. install -s -m755 bin/genmk $RPM_BUILD_ROOT%{_bindir}
  37. install -s -m755 bin/sor $RPM_BUILD_ROOT%{_bindir}
  38. cp -a h/* $RPM_BUILD_ROOT%{_includedir}/pccts
  39. cp -a sorcerer/h/*.h $RPM_BUILD_ROOT%{_includedir}/pccts
  40. cp sorcerer/README README-sorcerer
  41. cp sorcerer/UPDATES UPDATES-sorcerer
  42. %clean
  43. rm -rf $RPM_BUILD_ROOT
  44. %files
  45. %defattr(-,root,root)
  46. %doc CHANGES_FROM_131.txt CHANGES_FROM_133.txt KNOWN_PROBLEMS.txt
  47. %doc NOTES.OS2 NOTES.bcc NOTES.msvc NOTES.watcom README RIGHTS
  48. %doc history.ps history.txt README-sorcerer UPDATES-sorcerer
  49. %attr(755,root,root) %{_bindir}/antlr
  50. %attr(755,root,root) %{_bindir}/dlg
  51. %attr(755,root,root) %{_bindir}/genmk
  52. %attr(755,root,root) %{_bindir}/sor
  53. %attr(755,root,root) %dir %{_includedir}/pccts
  54. %attr(644,root,root) %{_includedir}/pccts/*
  55. %attr(644,root,root) %{_mandir}/*/*
  56. %changelog
  57. * Sat Sep 06 2008 Shu KONNO <owa@bg.wakwak.com> 1.33mr33-1vl5
  58. - applied new versioning policy
  59. - added flag -DPCCTS_USE_STDARG to COPT
  60. * Sun Sep 21 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.33mr33-0vl1
  61. - source upgrade
  62. * Wed May 29 2002 Satoshi MACHINO <machino@vinelinux.org> 1.33mr31-4vl1
  63. - build on VineLinux
  64. - used rpmmacros
  65. * Sun May 26 2002 Tim Powers <timp@redhat.com>
  66. - automated rebuild
  67. * Tue May 21 2002 Mike A. Harris <mharris@redhat.com> 1.33mr31-3
  68. - Rebuilt in new environment to be able to build cdrdao
  69. * Wed Jan 09 2002 Tim Powers <timp@redhat.com>
  70. - automated rebuild
  71. * Thu Jan 03 2002 Elliot Lee <sopwith@redhat.com>
  72. - Update to MR31
  73. * Mon May 21 2001 Tim Powers <timp@redhat.com>
  74. - rebuilt for the .distro
  75. * Mon Jul 24 2000 Prospector <prospector@redhat.com>
  76. - rebuilt
  77. * Mon Jul 10 2000 Tim Powers <timp@redhat.com>
  78. - rebuilt
  79. * Wed Jun 21 2000 Tim Powers <timp@redhat.com>
  80. - fixed man page location to be FHS comliant
  81. * Mon May 8 2000 Tim Powers <timp@redhat.com>
  82. - updated to MR22
  83. * Tue Nov 2 1999 Tim Powers <timp@redhat.com>
  84. - updated to MR20
  85. * Sat Jul 10 1999 Tim Powers <timp@redhat.com>
  86. - updated version to mr19
  87. - updated URL
  88. * Wed Jan 6 1999 Michael Maher <mike@redhat.com>
  89. - built package for powertools
  90. - fixed broken includes dir
  91. * Mon Jan 4 1999 Ryan Weaver <ryanw@infohwy.com>
  92. [pccts-1.33mr17-1]
  93. - #212. (Changed in MR17) Mac related changes by Kenji Tanaka
  94. * Wed Dec 16 1998 Ryan Weaver <ryanw@infohwy.com>
  95. - Updated to 1.33 Maintainance Release 16a
  96. - Including sor and sorcerer header files.
  97. - #211. (Changed in MR16a) C++ style comment in dlg
  98. - #210. (Changed in MR16a) Sor accepts \r\n, \r, or \n for end-of-line
  99. * Fri Dec 11 1998 Ryan Weaver <ryanw@infohwy.com>
  100. - Updated to 1.33 Maintainance Release 16
  101. - #209. (Changed in MR16) Name of files changed.
  102. - #208. (Changed in MR16) Change in use of pccts #include files
  103. - #207. (Changed in MR16) dlg reports an invalid range for: [\0x00-\0xff]
  104. - #206. (Changed in MR16) Free zzFAILtext in ANTLRParser destructor
  105. - #205. (Changed in MR16) DLGStringReset argument now const
  106. * Mon Mar 23 1998 Elliot Lee <sopwith@cuc.edu> 1.33-4
  107. - Include header files
  108. * Mon Mar 23 1998 Elliot Lee <sopwith@cuc.edu> 1.33-3
  109. - Repackage for glibc