perl-dns.spec 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. ##
  2. ## perl-dns.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2016 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.22
  25. %define V_net_dns 1.06_05
  26. %define V_net_dns_async 1.07
  27. # package information
  28. Name: perl-dns
  29. Summary: Perl Modules for use with DNS
  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: 20161112
  39. # list of sources
  40. Source0: http://www.cpan.org/authors/id/N/NL/NLNETLABS/Net-DNS-%{V_net_dns}.tar.gz
  41. Source1: http://www.cpan.org/authors/id/S/SH/SHEVEK/Net-DNS-Async-%{V_net_dns_async}.tar.gz
  42. # build information
  43. BuildPreReq: OpenPKG, openpkg >= 20160101, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20040126
  44. PreReq: OpenPKG, openpkg >= 20160101, perl >= %{V_perl}
  45. BuildPreReq: perl-mail, perl-crypto, perl-net
  46. PreReq: perl-mail, perl-crypto, perl-net
  47. %description
  48. Perl modules for use with networks:
  49. - Net::DNS (%{V_net_dns})
  50. %track
  51. prog perl-dns:Net-DNS = {
  52. version = %{V_net_dns}
  53. url = http://www.cpan.org/authors/id/N/NL/NLNETLABS/
  54. regex = Net-DNS-(__VER__)\.tar\.gz
  55. }
  56. prog perl-dns:Net-DNS-Async = {
  57. version = %{V_net_dns_async}
  58. url = http://www.cpan.org/authors/id/S/SH/SHEVEK/
  59. regex = Net-DNS-Async-(__VER__)\.tar\.gz
  60. }
  61. %prep
  62. %setup -q -c
  63. %setup -q -T -D -a 1
  64. %build
  65. %install
  66. %{l_prefix}/bin/perl-openpkg prepare
  67. %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
  68. %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
  69. %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
  70. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
  71. %files -f files
  72. %clean