perl-inline.spec 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. ##
  2. ## perl-inline.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2003 The OpenPKG Project <http://www.openpkg.org/>
  4. ## Copyright (c) 2000-2003 Ralf S. Engelschall <rse@engelschall.com>
  5. ## Copyright (c) 2000-2003 Cable & Wireless <http://www.cw.com/>
  6. ##
  7. ## Permission to use, copy, modify, and distribute this software for
  8. ## any purpose with or without fee is hereby granted, provided that
  9. ## the above copyright notice and this permission notice appear in all
  10. ## copies.
  11. ##
  12. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  13. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  14. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  15. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  16. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  17. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  18. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  19. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  20. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  21. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  22. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  23. ## SUCH DAMAGE.
  24. ##
  25. # versions of individual parts
  26. %define V_inline 0.44
  27. %define V_inline_cpp 0.25
  28. %define V_inline_struct 0.06
  29. # package information
  30. Name: perl-inline
  31. Summary: Perl Modules for Inline Programming Language Embedding
  32. URL: http://www.cpan.org/
  33. Vendor: Perl Community
  34. Packager: The OpenPKG Project
  35. Distribution: OpenPKG [BASE]
  36. Group: Language
  37. License: GPL/Artistic
  38. Version: 20030813
  39. Release: 20030813
  40. # list of sources
  41. Source0: http://www.cpan.org/modules/by-module/Inline/Inline-%{V_inline}.tar.gz
  42. Source1: http://www.cpan.org/modules/by-module/Inline/Inline-CPP-%{V_inline_cpp}.tar.gz
  43. Source2: http://www.cpan.org/modules/by-module/Inline/Inline-Struct-%{V_inline_struct}.tar.gz
  44. # build information
  45. Prefix: %{l_prefix}
  46. BuildRoot: %{l_buildroot}
  47. BuildPreReq: OpenPKG, openpkg >= 20030516, perl, perl-openpkg, perl-crypto, perl-parse
  48. PreReq: OpenPKG, openpkg >= 20030516, perl, perl-openpkg, perl-crypto, perl-parse
  49. AutoReq: no
  50. AutoReqProv: no
  51. %description
  52. Perl modules for inline programing language embedding.
  53. - Inline (%{V_inline})
  54. - Inline::CPP (%{V_inline_cpp})
  55. - Inline::Struct (%{V_inline_struct})
  56. %prep
  57. %setup0 -q -c
  58. %setup1 -q -T -D -a 1
  59. %setup2 -q -T -D -a 2
  60. %build
  61. %install
  62. # perform common prolog operations
  63. %{l_prefix}/bin/perl-openpkg prolog
  64. # build and install Inline module
  65. %{l_shtool} subst \
  66. -e 's/my $default[^;]*;/my $default = "y";/' \
  67. Inline-%{V_inline}/C/Makefile.PL
  68. %{l_prefix}/bin/perl-openpkg install -d Inline-%{V_inline}
  69. # build and install Inline::CPP module
  70. %{l_shtool} subst \
  71. -e 's:$cc_guess);:"%{l_prefix}/bin/g++");:' \
  72. -e 's:$libs_guess);:"-lstdc++");:' \
  73. Inline-CPP-%{V_inline_cpp}/Makefile.PL
  74. %{l_prefix}/bin/perl-openpkg install -d Inline-CPP-%{V_inline_cpp}
  75. # build and install Inline::Struct module
  76. %{l_prefix}/bin/perl-openpkg install -d Inline-Struct-%{V_inline_struct}
  77. # perform common epilog operations
  78. %{l_prefix}/bin/perl-openpkg epilog
  79. %files -f files
  80. %clean
  81. rm -rf $RPM_BUILD_ROOT