perl-wx.spec 3.0 KB

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