perl-File-MimeInfo-vl.spec 3.7 KB

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