perl-sip.spec 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. ##
  2. ## perl-sip.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. # versions of individual parts
  24. %define V_perl 5.10
  25. %define V_net_sip 0.53
  26. # package information
  27. Name: perl-sip
  28. Summary: Perl Modules for use with SIP
  29. URL: http://www.cpan.org/
  30. Vendor: Perl Community
  31. Packager: OpenPKG Foundation e.V.
  32. Distribution: OpenPKG Community
  33. Class: BASE
  34. Group: Perl
  35. License: GPL/Artistic
  36. Version: %{V_perl}
  37. Release: 20090904
  38. # list of sources
  39. Source0: http://www.cpan.org/modules/by-module/Net/Net-SIP-%{V_net_sip}.tar.gz
  40. # build information
  41. Prefix: %{l_prefix}
  42. BuildRoot: %{l_buildroot}
  43. BuildPreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20040126
  44. PreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}
  45. BuildPreReq: perl-dns, perl-crypto, perl-time, perl-util
  46. PreReq: perl-dns, perl-crypto, perl-time, perl-util
  47. AutoReq: no
  48. AutoReqProv: no
  49. %description
  50. Perl modules for use with networks:
  51. - Net::SIP (%{V_net_sip})
  52. %track
  53. prog perl-sip:Net-SIP = {
  54. version = %{V_net_sip}
  55. url = http://www.cpan.org/modules/by-module/Net/
  56. regex = Net-SIP-(__VER__)\.tar\.gz
  57. }
  58. %prep
  59. %setup -q -c
  60. %build
  61. %install
  62. rm -rf $RPM_BUILD_ROOT
  63. %{l_prefix}/bin/perl-openpkg prepare
  64. %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
  65. %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
  66. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
  67. %files -f files
  68. %clean
  69. rm -rf $RPM_BUILD_ROOT