perl-sip.spec 2.8 KB

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