cproto-vl.spec 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. Summary: Generates function prototypes and variable declarations from C code.
  2. Summary(ja): C コードから関数プロトタイプと変数宣言を生成するツール
  3. Name: cproto
  4. Version: 4.7c
  5. Release: 6%{?_dist_release}
  6. License: Public Domain
  7. Group: Development/Tools
  8. Source: ftp://invisible-island.net/cproto/cproto-4_7c.tgz
  9. Patch1: cproto-4.6.1-patch
  10. Patch2: cproto-4.6-varargs.patch
  11. Patch3: cproto-4.6-bison.patch
  12. Prefix: %{_prefix}
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  14. %description
  15. Cproto generates function prototypes and variable declarations from C
  16. source code. Cproto can also convert function definitions between the
  17. old style and the ANSI C style. This conversion will overwrite the
  18. original files, however, so be sure to make a backup copy of your
  19. original files in case something goes wrong. Cproto uses a Yacc
  20. generated parser, so it should not be confused by complex function
  21. definitions as much as other prototype generators.
  22. %description -l ja
  23. cproto は C のソースコードから関数プロトタイプと変数宣言を生成します.
  24. cproto は古い形式と ANSI C 形式の関数定義の相互変換も行うことが出来ます.
  25. この変換を行うとオリジナルのファイルを上書きしてしまいますので,もしもの
  26. 時の為にオリジナルファイルのバックアップは必ず取っておいて下さい.
  27. cproto は yacc により生成された解析器を使用しますので,他のプロトタイプ
  28. 生成プログラムとは異なり,複雑な関数定義も難なく処理出来ます.
  29. cproto は C プログラマにとっては便利なプログラムですので,
  30. C でプログラムをする際には cproto をインストールして下さい.
  31. %prep
  32. %setup -q -n cproto-4_7c
  33. %build
  34. export CPP="/lib/cpp"
  35. export CPPFLAGS="-DOPT_LINTLIBRARY $RPM_OPT_FLAGS"
  36. export CFLAGS="-DOPT_LINTLIBRARY $RPM_OPT_FLAGS"
  37. %configure --exec-prefix=%{_prefix}
  38. make
  39. %install
  40. rm -rf $RPM_BUILD_ROOT
  41. %makeinstall mandir=$RPM_BUILD_ROOT/%{_mandir}/man1
  42. %clean
  43. rm -rf $RPM_BUILD_ROOT
  44. %files
  45. %defattr(-,root,root)
  46. %doc CHANGES README
  47. %{_prefix}/bin/cproto
  48. %{_mandir}/man1/cproto.*
  49. %changelog
  50. * Sun Sep 21 2008 Shu KONNO <owa@bg.wakwak.com> 4.7c-6vl5
  51. - applied new versioning policy, spec in utf-8
  52. * Sun Apr 17 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7c-5vl1
  53. - based on 4.7c-5 from Fedora development
  54. * Wed Feb 9 2005 Jindrich Novy <jnovy@redhat.com> 4.7c-4
  55. - add RPM_OPT_FLAGS to CFLAGS
  56. - convert Copyright to License
  57. - rebuild with -D_FORTIFY_SOURCE=2
  58. * Thu Oct 14 2004 Jindrich Novy <jnovy@redhat.com> 4.7c-3
  59. - define OPT_LINTLIBRARY to enable type definitions output
  60. and other cproto features disabled otherwise
  61. - s/Copyright/License/
  62. - updated URL
  63. * Wed Dec 04 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 4.6-13vl1
  64. - based on 4.6-13 from Rawhide and built for Vine Linux
  65. - added Japanese summary and description
  66. * Fri Jun 21 2002 Tim Powers <timp@redhat.com>
  67. - automated rebuild
  68. * Mon Jun 17 2002 Bill Nottingham <notting@redhat.com> 4.6-12
  69. - don't strip it
  70. * Thu May 23 2002 Tim Powers <timp@redhat.com>
  71. - automated rebuild
  72. * Wed Jan 09 2002 Tim Powers <timp@redhat.com>
  73. - automated rebuild
  74. * Mon Aug 13 2001 Bill Nottingham <notting@redhat.com>
  75. - predefine __builtin_va_list (#46246, original patch from <urban@teststation.com>)
  76. * Tue Jun 12 2001 Bill Nottingham <notting@redhat.com>
  77. - actually *apply* the 4.6.1 patch. Fixes #35654, at least.
  78. * Fri Dec 01 2000 Bill Nottingham <notting@redhat.com>
  79. - rebuild because of broken fileutils
  80. * Mon Oct 13 2000 Bill Nottingham <notting@redhat.com>
  81. - use /lib/cpp, not gcc -E, again (#20535)
  82. * Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
  83. - automatic rebuild
  84. * Tue Jun 6 2000 Bill Nottingham <notting@redhat.com>
  85. - rebuild against glibc-2.2, FHS stuff
  86. * Tue Feb 1 2000 Bill Nottingham <notting@redhat.com>
  87. - use /lib/cpp, not gcc -E (#8612)
  88. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  89. - auto rebuild in the new build environment (release 2)
  90. * Mon Mar 15 1999 Jeff Johnson <jbj@redhat.com>
  91. - update to 4.6.1 (#1516).
  92. - use %configure
  93. * Fri Dec 18 1998 Bill Nottingham <notting@redhat.com>
  94. - build for 6.0
  95. * Sat Aug 15 1998 Jeff Johnson <jbj@redhat.com>
  96. - build root
  97. * Mon Apr 27 1998 Prospector System <bugs@redhat.com>
  98. - translations modified for de, fr, tr
  99. * Thu Jul 10 1997 Erik Troan <ewt@redhat.com>
  100. - built against glibc