- update to 0.15, remove upstreamed no-ask patch

This commit is contained in:
pertusus 2008-02-14 21:54:47 +00:00
parent b963988e62
commit c2700a547d
4 changed files with 6 additions and 40 deletions

View File

@ -1 +1 @@
File-MimeInfo-0.14.tar.gz
File-MimeInfo-0.15.tar.gz

View File

@ -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

View File

@ -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 <pertusus@free.fr> 0.15-1
- update to 0.15, remove upstreamed no-ask patch
* Wed Aug 8 2007 Patrice Dumas <pertusus@free.fr> 0.14-1
- update to 0.14

View File

@ -1 +1 @@
b4cb0ea1a30730c24747199784d90968 File-MimeInfo-0.14.tar.gz
41fa5a252203e1d6023ab5849fd9e0df File-MimeInfo-0.15.tar.gz