From c2700a547d43f8c5f3d2067f48612c11e5dfdfcf Mon Sep 17 00:00:00 2001 From: pertusus Date: Thu, 14 Feb 2008 21:54:47 +0000 Subject: [PATCH] - update to 0.15, remove upstreamed no-ask patch --- .cvsignore | 2 +- perl-File-MimeInfo-0.13-no-ask-option.diff | 35 ---------------------- perl-File-MimeInfo.spec | 7 +++-- sources | 2 +- 4 files changed, 6 insertions(+), 40 deletions(-) delete mode 100644 perl-File-MimeInfo-0.13-no-ask-option.diff diff --git a/.cvsignore b/.cvsignore index 8b7815a..6d913ce 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -File-MimeInfo-0.14.tar.gz +File-MimeInfo-0.15.tar.gz diff --git a/perl-File-MimeInfo-0.13-no-ask-option.diff b/perl-File-MimeInfo-0.13-no-ask-option.diff deleted file mode 100644 index 5b66c73..0000000 --- a/perl-File-MimeInfo-0.13-no-ask-option.diff +++ /dev/null @@ -1,35 +0,0 @@ ---- /usr/bin/mimeopen 2006-10-11 16:57:53.000000000 +0200 -+++ mimeopen 2006-10-11 21:27:45.000000000 +0200 -@@ -24,6 +24,7 @@ - 'magic-only' => ['M'], - 'ask' => ['a'], - 'ask-default' => ['d'], -+ 'no-ask' => ['n'], - ); - - while ((@ARGV) && ($ARGV[0] =~ /^-/)) { -@@ -153,7 +154,10 @@ - exit 6; - } - --if ($args{ask}) { -+if ($args{'no-ask'}) { -+ $default = defined($default) ? $default : $other[0]; -+} -+elsif ($args{ask}) { - $default = choose($mimetype, 0, grep defined($_), $default, @other); - } - elsif ($args{'ask-default'}) { -@@ -305,6 +309,12 @@ - - Print the version of the program and exit. - -+=item B<-n>, B<--no-ask> -+ -+Don't ask the user which program to use. Choose the default program or the -+first program known to handle the file mimetype. This does not set the -+default application. -+ - =back - - =head1 BUGS diff --git a/perl-File-MimeInfo.spec b/perl-File-MimeInfo.spec index 2f2b80c..6f9d5c3 100644 --- a/perl-File-MimeInfo.spec +++ b/perl-File-MimeInfo.spec @@ -1,12 +1,11 @@ Name: perl-File-MimeInfo -Version: 0.14 +Version: 0.15 Release: 1%{?dist} Summary: Determine file type and open application License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/File-MimeInfo/ Source0: http://www.cpan.org/authors/id/P/PA/PARDUS/File-MimeInfo/File-MimeInfo-%{version}.tar.gz -Patch0: perl-File-MimeInfo-0.13-no-ask-option.diff BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: perl(Module::Build) perl(Test::More) perl(Test::Pod) @@ -26,7 +25,6 @@ implement the freedesktop specification for a shared MIME database. %prep %setup -q -n File-MimeInfo-%{version} -%patch0 %build %{__perl} Makefile.PL INSTALLDIRS=vendor @@ -58,6 +56,9 @@ rm -rf $RPM_BUILD_ROOT %{_mandir}/man3/* %changelog +* Thu Feb 14 2008 Patrice Dumas 0.15-1 +- update to 0.15, remove upstreamed no-ask patch + * Wed Aug 8 2007 Patrice Dumas 0.14-1 - update to 0.14 diff --git a/sources b/sources index 03775fb..4262d70 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -b4cb0ea1a30730c24747199784d90968 File-MimeInfo-0.14.tar.gz +41fa5a252203e1d6023ab5849fd9e0df File-MimeInfo-0.15.tar.gz