perl-wx.spec 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. ##
  2. ## perl-wx.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. # package versions
  26. %define V_wx 0.18
  27. %define V_wx_perl_treechecker 1.08
  28. # package information
  29. Name: perl-wx
  30. Summary: Perl Modules for use with the wxWindows GUI
  31. URL: http://www.cpan.org/
  32. Vendor: Perl Community
  33. Packager: The OpenPKG Project
  34. Distribution: OpenPKG [EVAL]
  35. Group: Language
  36. License: GPL/Artistic
  37. Version: 20031124
  38. Release: 20031124
  39. # list of sources
  40. Source0: http://www.cpan.org/modules/by-module/Wx/Wx-%{V_wx}.tar.gz
  41. Source1: http://www.cpan.org/modules/by-module/Wx/Wx-Perl-TreeChecker-%{V_wx_perl_treechecker}.tar.gz
  42. Patch0: perl-wx.patch
  43. # build information
  44. Prefix: %{l_prefix}
  45. BuildRoot: %{l_buildroot}
  46. BuildPreReq: OpenPKG, openpkg >= 20020206, perl, perl-openpkg, wx
  47. PreReq: OpenPKG, openpkg >= 20020206, perl, perl-openpkg, wx
  48. AutoReq: no
  49. AutoReqProv: no
  50. %description
  51. Perl modules for use with wxWindows GUI:
  52. - Wx (%{V_wx})
  53. - Wx::Perl::TreeChecker (%{V_wx_perl_treechecker})
  54. %prep
  55. %setup0 -q -c
  56. %setup1 -q -T -D -a 1
  57. ( cd Wx-%{V_wx}
  58. %patch0 -p0
  59. ) || exit $?
  60. %build
  61. %install
  62. # perform common prolog operations
  63. %{l_prefix}/bin/perl-openpkg prolog
  64. # build and install individual modules
  65. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE0}
  66. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE1}
  67. # perform common epilog operations
  68. %{l_prefix}/bin/perl-openpkg epilog
  69. %files -f files
  70. %clean
  71. rm -rf $RPM_BUILD_ROOT