c2man.spec 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. ##
  2. ## c2man.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2001 Cable & Wireless Deutschland GmbH
  4. ## Copyright (c) 2000-2001 Ralf S. Engelschall <rse@engelschall.com>
  5. ##
  6. ## Permission to use, copy, modify, and distribute this software for
  7. ## any purpose with or without fee is hereby granted, provided that
  8. ## the above copyright notice and this permission notice appear in all
  9. ## copies.
  10. ##
  11. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  12. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  13. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  14. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  15. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  16. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  17. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  18. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  19. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  20. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  21. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  22. ## SUCH DAMAGE.
  23. ##
  24. %define V_here 2.0.42
  25. %define V_real 2.0@42
  26. # package information
  27. Name: c2man
  28. Summary: C Source Manual Page Extraction Tool
  29. URL: ftp://ftp.research.canon.com.au/pub/misc/c2man/
  30. Vendor: Francois Pinard
  31. Packager: The OpenPKG Project
  32. Distribution: OpenPKG [EXP]
  33. Group: Converter
  34. License: GPL
  35. Version: %{V_here}
  36. Release: 20011121.0
  37. # list of sources
  38. Source0: ftp://ftp.research.canon.com.au/pub/misc/c2man/c2man-%{V_real}.tar.gz
  39. # build information
  40. Prefix: %{l_prefix}
  41. BuildRoot: %{l_buildroot}
  42. BuildPreReq: OpenPKG, openpkg >= 0.9-20011025.0, flex, bison
  43. PreReq: OpenPKG, openpkg >= 0.9-20011025.0
  44. AutoReq: no
  45. AutoReqProv: no
  46. %description
  47. Recode converts files between various character sets and surfaces.
  48. %prep
  49. %setup -q -c %{V_here}
  50. %build
  51. PATH="%{l_prefix}/bin:$PATH"; export PATH
  52. ./Configure -d -e -s \
  53. -Dcc="%{l_cc}" \
  54. -Doptimize="%{l_cflags -O}" \
  55. -Dprefix=%{l_prefix}
  56. %{l_make} %{l_mflags -O}
  57. %install
  58. rm -rf $RPM_BUILD_ROOT
  59. %{l_shtool} mkdir -f -p -m 755 \
  60. $RPM_BUILD_ROOT%{l_prefix}/bin \
  61. $RPM_BUILD_ROOT%{l_prefix}/man/man1
  62. %{l_shtool} install -c -s -m 755 \
  63. c2man $RPM_BUILD_ROOT%{l_prefix}/bin/
  64. %{l_shtool} install -c -m 644 \
  65. c2man.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/
  66. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  67. %files -f files
  68. %clean
  69. rm -rf $RPM_BUILD_ROOT