perl-Net-UPnP-vl.spec 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. Name: perl-Net-UPnP
  2. Version: 1.4.3
  3. Release: 2%{?_dist_release}
  4. Summary: Perl extension for UPnP
  5. Summary(ja): UPnP のための Perl 拡張
  6. License: BSD
  7. Group: Development/Libraries
  8. URL: http://search.cpan.org/dist/Net-UPnP/
  9. Source0: http://search.cpan.org/CPAN/authors/id/S/SK/SKONNO/Net-UPnP-%{version}.tar.gz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. BuildArch: noarch
  12. BuildRequires: perl
  13. BuildRequires: perl(ExtUtils::MakeMaker)
  14. BuildRequires: perl(strict)
  15. BuildRequires: perl(warnings)
  16. # Run-time:
  17. # Socket not used at tests
  18. BuildRequires: perl(vars)
  19. BuildRequires: perl(version)
  20. # Tests:
  21. BuildRequires: perl(Test::More)
  22. Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
  23. Vendor: Project Vine
  24. Distribution: Vine Linux
  25. %description
  26. This package provides some functions to control UPnP devices.
  27. %prep
  28. %setup -q -n Net-UPnP-%{version}
  29. # Fix file attributes
  30. find -name '*.pm' -exec chmod a-x '{}' +
  31. chmod a-x Changes README
  32. # Fix shebangs
  33. for file in examples/*.pl; do
  34. sed '1 s|^#!/usr/local/bin/perl|#!%{__perl}|g' "$file" > "${file}.mod" && \
  35. touch -r "$file" "${file}.mod" && \
  36. mv "${file}.mod" "$file"
  37. done
  38. %build
  39. perl Makefile.PL INSTALLDIRS=vendor
  40. make %{?_smp_mflags}
  41. %install
  42. rm -rf $RPM_BUILD_ROOT
  43. make pure_install DESTDIR=$RPM_BUILD_ROOT
  44. find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
  45. %{_fixperms} $RPM_BUILD_ROOT/*
  46. %check
  47. make test
  48. %clean
  49. rm -rf $RPM_BUILD_ROOT
  50. %files
  51. %doc Changes README examples/
  52. %{perl_vendorlib}/Net/
  53. %{_mandir}/man3/Net::UPnP*
  54. %changelog
  55. * Sat Jan 31 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 1.4.3-2
  56. - Initial build for Vine Linux
  57. * Mon Oct 20 2014 Petr Pisar <ppisar@redhat.com> - 1:1.4.3-1
  58. - 1.4.3 bump
  59. * Thu Aug 28 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.4.2-15
  60. - Perl 5.20 rebuild
  61. * Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.4.2-14
  62. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
  63. * Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.4.2-13
  64. - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
  65. * Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 1:1.4.2-12
  66. - Perl 5.18 rebuild
  67. * Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.4.2-11
  68. - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
  69. * Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.4.2-10
  70. - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
  71. * Sun Jun 10 2012 Petr Pisar <ppisar@redhat.com> - 1:1.4.2-9
  72. - Perl 5.16 rebuild
  73. * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.4.2-8
  74. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  75. * Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1:1.4.2-7
  76. - Perl mass rebuild
  77. * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.4.2-6
  78. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  79. * Tue Dec 21 2010 Marcela Maslanova <mmaslano@redhat.com> - 1:1.4.2-5
  80. - 661697 rebuild for fixing problems with vendorach/lib
  81. * Fri May 14 2010 Petr Pisar <ppisar@redhat.com> - 1:1.4.2-4
  82. - Remove duplicate BuildRequires perl(version)
  83. * Tue May 04 2010 Marcela Maslanova <mmaslano@redhat.com> - 1:1.4.2-3
  84. - Added BR: perl(version) to fix FTBFS.
  85. * Tue May 04 2010 Marcela Maslanova <mmaslano@redhat.com> - 1:1.4.2-2
  86. - Mass rebuild with perl-5.12.0
  87. * Sun Dec 27 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1:1.4.2-1
  88. - Update to 1.4.2.
  89. - Fix spelling in rpm version: 1.4.1 instead of previous 1.41.
  90. * Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 1.4.1-5
  91. - rebuild against perl 5.10.1
  92. * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.1-4
  93. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  94. * Wed Apr 15 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.4.1-3
  95. - Review fixes.
  96. * Sun Apr 12 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.4.1-2
  97. - Add missing BR: Test::More.
  98. * Sun Apr 12 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.4.1-1
  99. - Specfile autogenerated by cpanspec 1.77.