perl-wx.spec 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. ##
  2. ## perl-wx.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2009 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ##
  5. ## Permission to use, copy, modify, and distribute this software for
  6. ## any purpose with or without fee is hereby granted, provided that
  7. ## the above copyright notice and this permission notice appear in all
  8. ## copies.
  9. ##
  10. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  11. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  12. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  13. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  14. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  15. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  16. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  17. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  18. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  19. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  20. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  21. ## SUCH DAMAGE.
  22. ##
  23. # package versions
  24. %define V_perl 5.10
  25. %define V_wx 0.53
  26. %define V_wx_perl_treechecker 1.13
  27. # package information
  28. Name: perl-wx
  29. Summary: Perl Modules for use with the wxWindows GUI
  30. URL: http://www.cpan.org/
  31. Vendor: Perl Community
  32. Packager: OpenPKG Foundation e.V.
  33. Distribution: OpenPKG Community
  34. Class: EVAL
  35. Group: Perl
  36. License: GPL/Artistic
  37. Version: %{V_perl}
  38. Release: 20090904
  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. # build information
  43. Prefix: %{l_prefix}
  44. BuildRoot: %{l_buildroot}
  45. BuildPreReq: OpenPKG, openpkg >= 20040212, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20040126
  46. PreReq: OpenPKG, openpkg >= 20040212, perl >= %{V_perl}
  47. BuildPreReq: wx
  48. PreReq: wx
  49. AutoReq: no
  50. AutoReqProv: no
  51. %description
  52. Perl modules for use with wxWindows GUI:
  53. - Wx (%{V_wx})
  54. - Wx::Perl::TreeChecker (%{V_wx_perl_treechecker})
  55. %track
  56. prog perl-wx:Wx = {
  57. version = %{V_wx}
  58. url = http://www.cpan.org/modules/by-module/Wx/
  59. regex = Wx-(__VER__)\.tar\.gz
  60. }
  61. prog perl-wx:Wx-Perl-TreeChecker = {
  62. version = %{V_wx_perl_treechecker}
  63. url = http://www.cpan.org/modules/by-module/Wx/
  64. regex = Wx-Perl-TreeChecker-(__VER__)\.tar\.gz
  65. }
  66. %prep
  67. %setup -q -c
  68. %setup -q -T -D -a 1
  69. %build
  70. %install
  71. rm -rf $RPM_BUILD_ROOT
  72. %{l_prefix}/bin/perl-openpkg prepare
  73. %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
  74. %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
  75. %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
  76. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
  77. %files -f files
  78. %clean
  79. rm -rf $RPM_BUILD_ROOT