perl-inline.spec 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. ##
  2. ## perl-inline.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2003 Cable & Wireless Deutschland GmbH
  4. ## Copyright (c) 2000-2003 The OpenPKG Project <http://www.openpkg.org/>
  5. ## Copyright (c) 2000-2003 Ralf S. Engelschall <rse@engelschall.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.24
  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: 20030105
  39. Release: 20030105
  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 >= 20020206, perl >= 5.8.0, perl-crypto, perl-parse
  48. PreReq: OpenPKG, openpkg >= 20020206, perl >= 5.8.0, 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. chmod u+w Inline-%{V_inline}/C/Makefile.PL
  66. %{l_shtool} subst \
  67. -e 's/my $default[^;]*;/my $default = "y";/' \
  68. Inline-%{V_inline}/C/Makefile.PL
  69. %{l_prefix}/bin/perl-openpkg install -d Inline-%{V_inline}
  70. # build and install Inline::CPP module
  71. chmod u+w Inline-CPP-%{V_inline_cpp}/Makefile.PL
  72. %{l_shtool} subst \
  73. -e 's:$cc_guess);:"%{l_prefix}/bin/g++");:' \
  74. -e 's:$libs_guess);:"-lstdc++");:' \
  75. Inline-CPP-%{V_inline_cpp}/Makefile.PL
  76. %{l_prefix}/bin/perl-openpkg install -d Inline-CPP-%{V_inline_cpp}
  77. # build and install Inline::Struct module
  78. %{l_prefix}/bin/perl-openpkg install -d Inline-Struct-%{V_inline_struct}
  79. # perform common epilog operations
  80. %{l_prefix}/bin/perl-openpkg epilog
  81. %files -f files
  82. %clean
  83. rm -rf $RPM_BUILD_ROOT