perl-File-MimeInfo-vl.spec 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. Name: perl-File-MimeInfo
  2. Version: 0.26
  3. Release: 1%{?_dist_release}
  4. Summary: Determine file type and open application
  5. License: GPL+ or Artistic
  6. Group: Development/Libraries
  7. URL: http://search.cpan.org/dist/File-MimeInfo/
  8. Source0: http://www.cpan.org/authors/id/P/PA/PARDUS/File-MimeInfo/File-MimeInfo-%{version}.tar.gz
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  10. BuildArch: noarch
  11. BuildRequires: perl(File::BaseDir)
  12. BuildRequires: perl(File::DesktopEntry)
  13. BuildRequires: perl(Module::Build)
  14. BuildRequires: perl(Test::More)
  15. BuildRequires: perl(Test::Pod)
  16. BuildRequires: perl(Test::Pod::Coverage)
  17. # needed for some tests otherwise there are warnings
  18. BuildRequires: shared-mime-info
  19. # there is also a mimeinfo.cache file created by desktop-file-utils
  20. # needed. It won't be there if building in a chroot, even if
  21. # desktop-file-utils is installed if desktop-file-utils was never run.
  22. Requires: shared-mime-info
  23. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  24. Vendor: Project Vine
  25. Distribution: Vine Linux
  26. Packager: shaolin
  27. %description
  28. This module can be used to determine the mime type of a file. It tries to
  29. implement the freedesktop specification for a shared MIME database.
  30. %prep
  31. %setup -q -n File-MimeInfo-%{version}
  32. %build
  33. %{__perl} Makefile.PL INSTALLDIRS=vendor
  34. make %{?_smp_mflags}
  35. %install
  36. rm -rf %{buildroot}
  37. make pure_install PERL_INSTALL_ROOT=%{buildroot}
  38. find %{buildroot} -type f -name .packlist -exec rm -f {} \;
  39. find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
  40. %{_fixperms} %{buildroot}/*
  41. %check
  42. make test
  43. %clean
  44. rm -rf %{buildroot}
  45. %files
  46. %doc Changes README.md
  47. %{_bindir}/mimeopen
  48. %{_bindir}/mimetype
  49. %{perl_vendorlib}/*
  50. %{_mandir}/man1/*
  51. %{_mandir}/man3/*
  52. %changelog
  53. * Sat Nov 8 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 0.26-1
  54. - updated to 0.26
  55. - built with perl 5.16.3
  56. * Thu Mar 01 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.16-2
  57. - rebuild
  58. * Mon Feb 27 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.16-1
  59. - initial build for Vine Linux
  60. * Fri Jan 13 2012 Marcela Mašláňová <mmaslano@redhat.com> - 0.16-1
  61. - bump to 0.16
  62. - remove patch, which is included in new release
  63. * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.15-10
  64. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  65. * Tue Jun 21 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.15-9
  66. - Perl mass rebuild & apply test fix from cpan RT#66841 & clean spec
  67. * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.15-8
  68. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  69. * Thu Dec 16 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.15-7
  70. - 661697 rebuild for fixing problems with vendorach/lib
  71. * Sat May 01 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.15-6
  72. - Mass rebuild with perl-5.12.0
  73. * Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 0.15-5
  74. - rebuild against perl 5.10.1
  75. * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.15-4
  76. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  77. * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.15-3
  78. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  79. * Thu Mar 6 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.15-2
  80. - rebuild for new perl
  81. * Thu Feb 14 2008 Patrice Dumas <pertusus@free.fr> 0.15-1
  82. - update to 0.15, remove upstreamed no-ask patch
  83. * Wed Aug 8 2007 Patrice Dumas <pertusus@free.fr> 0.14-1
  84. - update to 0.14
  85. * Thu Nov 16 2006 Patrice Dumas <pertusus@free.fr> 0.13-3
  86. - add a Requires on shared-mime-info (Bug #215972)
  87. * Wed Oct 11 2006 Patrice Dumas <pertusus@free.fr> 0.13-2
  88. - add an option to launch mimeopen non interactively
  89. * Wed Oct 11 2006 Patrice Dumas <pertusus@free.fr> 0.13-1
  90. - Specfile autogenerated by cpanspec 1.69.