perl-MIME-Types-vl.spec 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. %bcond_with Mojolicious
  2. Name: perl-MIME-Types
  3. Version: 2.17
  4. Release: 1%{?_dist_release}
  5. Summary: MIME types module for Perl
  6. License: GPL or Artistic
  7. Group: Development/Libraries
  8. URL: http://search.cpan.org/dist/MIME-Types/
  9. Source0: http://www.cpan.org/authors/id/M/MA/MARKOV/MIME-Types-%{version}.tar.gz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. Vendor: Project Vine
  12. Distribution: Vine Linux
  13. BuildArch: noarch
  14. BuildRequires: perl(ExtUtils::MakeMaker)
  15. BuildRequires: perl(Test::MinimumVersion)
  16. BuildRequires: perl(Test::More)
  17. BuildRequires: perl(Test::Pod)
  18. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  19. %description
  20. MIME types are used in MIME compliant lines, for instance as part of
  21. e-mail and HTTP traffic, to indicate the type of content which is
  22. transmitted. Sometimes real knowledge about a mime-type is need.
  23. This module maintains a set of MIME::Type objects, which each describe
  24. one known mime type. There are many types defined by RFCs and vendors,
  25. so the list is long but not complete. Please don't hestitate to ask to
  26. add additional information.
  27. %prep
  28. %setup -q -n MIME-Types-%{version}
  29. %build
  30. %{__perl} Makefile.PL INSTALLDIRS=vendor
  31. make %{?_smp_mflags}
  32. %install
  33. rm -rf %{buildroot}
  34. make pure_install PERL_INSTALL_ROOT=%{buildroot}
  35. find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
  36. find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
  37. chmod -R u+w %{buildroot}/*
  38. %if %{without Mojolicious}
  39. rm -rf %{buildroot}%{perl_vendorlib}/MojoX/
  40. rm -rf %{buildroot}%{_mandir}/man3/Mojo*
  41. %endif
  42. %check
  43. make test
  44. make test TEST_FILES="xt/*.t"
  45. %clean
  46. rm -rf %{buildroot}
  47. %files
  48. %defattr(-,root,root,-)
  49. %doc ChangeLog README
  50. %{perl_vendorlib}/MIME/
  51. %if %{with Mojolicious}
  52. %{perl_vendorlib}/MojoX/
  53. %endif
  54. %{_mandir}/man3/*.3*
  55. %changelog
  56. * Sat May 18 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.17-1
  57. - new upstream release.
  58. - rebuilt with perl-5.26.
  59. * Mon Jun 30 2014 Daisuke SUZUKI <daisuke@vinelinux.org> 2.0.4-1
  60. - update to 2.0.4
  61. * Sat Mar 10 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.31-1
  62. - updated to 1.31
  63. * Sat Apr 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.19-3
  64. - rebuild with perl-5.12.3
  65. * Tue Nov 13 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.19-2vl1
  66. - Initial build for Vine Linux
  67. * Tue Apr 17 2007 Ville Skyttä <ville.skytta at iki.fi> - 1.19-2
  68. - BuildRequire perl(Test::More).
  69. * Mon Mar 26 2007 Ville Skyttä <ville.skytta at iki.fi> - 1.19-1
  70. - 1.19.
  71. - BuildRequire perl(ExtUtils::MakeMaker).
  72. * Wed Nov 22 2006 Ville Skyttä <ville.skytta at iki.fi> - 1.18-1
  73. - 1.18.
  74. * Fri Sep 15 2006 Ville Skyttä <ville.skytta at iki.fi> - 1.17-2
  75. - Rebuild.
  76. * Tue Aug 15 2006 Ville Skyttä <ville.skytta at iki.fi> - 1.17-1
  77. - 1.17.
  78. * Sun Oct 2 2005 Ville Skyttä <ville.skytta at iki.fi> - 1.16-1
  79. - 1.16.
  80. * Fri Apr 1 2005 Ville Skyttä <ville.skytta at iki.fi> - 1.15-2
  81. - 1.15.
  82. * Tue May 25 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.13-0.fdr.3
  83. - Require perl(:MODULE_COMPAT_*) (bug 1649).
  84. * Mon May 17 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.13-0.fdr.2
  85. - Sync with IANA 20040517.
  86. - Require perl >= 1:5.6.1 for vendor install dir support.
  87. - Use pure_install to avoid perllocal.pod workarounds.
  88. * Sat Apr 24 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.13-0.fdr.1
  89. - Update to 1.13 + IANA 20040424.
  90. * Sun Feb 1 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.12-0.fdr.2
  91. - Reduce directory ownership bloat.
  92. * Wed Jan 21 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.12-0.fdr.1
  93. - Update to 1.12.
  94. * Wed Jan 14 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.11-0.fdr.1
  95. - Update to 1.11.
  96. * Wed Dec 31 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.10-0.fdr.2
  97. - BuildRequires perl(Test::More).
  98. * Fri Dec 19 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.10-0.fdr.1
  99. - Update to 1.10.
  100. * Thu Nov 6 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.09-0.fdr.1
  101. - Update to 1.09.
  102. * Tue Nov 4 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.08-0.fdr.1
  103. - Update to 1.08.
  104. * Sat Oct 11 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.07-0.fdr.2
  105. - Install into vendor dirs.
  106. - Don't use fedora-rpm-helper.
  107. - Specfile cleanup.
  108. * Wed Jul 30 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.07-0.fdr.1
  109. - Update to 1.07.
  110. - Use fedora-rpm-helper.
  111. * Tue Jun 24 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.06-0.fdr.1
  112. - First build.