Accepting request 48043 from home:jnweiger:perl
reviewed, OK, THX OBS-URL: https://build.opensuse.org/request/show/48043 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-File-MimeInfo?expand=0&rev=4
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 13 18:42:04 UTC 2010 - jw@novell.com
|
||||
|
||||
- recreated specfile with cpanspec 1.78
|
||||
- should now also work on SLES_10
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Aug 24 20:05:25 UTC 2010 - jw@novell.com
|
||||
|
||||
|
||||
+56
-68
@@ -1,87 +1,75 @@
|
||||
#
|
||||
# spec file for package perl-File-MimeInfo (Version 0.15)
|
||||
#
|
||||
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
Name: perl-File-MimeInfo
|
||||
Version: 0.15
|
||||
Release: 0%{?dist}
|
||||
License: CHECK(GPL+ or Artistic)
|
||||
Group: Development/Libraries
|
||||
Summary: Determine file type
|
||||
Source: http://search.cpan.org/CPAN/authors/id/P/PA/PARDUS/File-MimeInfo/File-MimeInfo-%{version}.tar.gz
|
||||
Url: http://search.cpan.org/dist/File-MimeInfo
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
Requires: perl = %(eval "`%{__perl} -V:version`"; echo $version)
|
||||
BuildArch: noarch
|
||||
BuildRequires: perl(Carp)
|
||||
BuildRequires: perl(Exporter)
|
||||
BuildRequires: perl(Fcntl)
|
||||
BuildRequires: perl(File::BaseDir) >= 0.03
|
||||
BuildRequires: perl(File::DesktopEntry) >= 0.04
|
||||
BuildRequires: perl(Module::Build::Compat)
|
||||
BuildRequires: perl(Pod::Usage)
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
Requires: perl(File::BaseDir) >= 0.03
|
||||
# norootforbuild
|
||||
|
||||
Name: perl-File-MimeInfo
|
||||
Version: 0.15
|
||||
Release: 1
|
||||
Summary: Determine file type
|
||||
License: GPL+ or Artistic
|
||||
Group: Development/Libraries/Perl
|
||||
Url: http://search.cpan.org/dist/File-MimeInfo/
|
||||
Source: http://www.cpan.org/authors/id/P/PA/PARDUS/File-MimeInfo/File-MimeInfo-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildArch: noarch
|
||||
%if 0%{?suse_version} < 1120
|
||||
BuildRequires: perl-macros
|
||||
%endif
|
||||
BuildRequires: perl(Carp)
|
||||
BuildRequires: perl(Exporter)
|
||||
BuildRequires: perl(Fcntl)
|
||||
BuildRequires: perl(File::BaseDir) >= 0.03
|
||||
BuildRequires: perl(File::DesktopEntry) >= 0.04
|
||||
BuildRequires: perl(Pod::Usage)
|
||||
BuildRequires: perl(Module::Build)
|
||||
Requires: perl = %{perl_version}
|
||||
Requires: perl(Carp)
|
||||
Requires: perl(Exporter)
|
||||
Requires: perl(Fcntl)
|
||||
Requires: perl(File::BaseDir) >= 0.03
|
||||
Requires: perl(File::DesktopEntry) >= 0.04
|
||||
# /usr/share/mime/magic
|
||||
Requires: shared-mime-info
|
||||
|
||||
|
||||
%description
|
||||
This module can be used to determine the mime type of a file. It tries
|
||||
to implement the freedesktop specification for a shared MIME
|
||||
database.For this module shared-mime-info-spec 0.13 was used.This
|
||||
package only uses the globs file. No real magic checking is used. The
|
||||
the File::MimeInfo::Magic manpage package is provided for magic typing.
|
||||
|
||||
|
||||
This module can be used to determine the mime type of a file. It tries to
|
||||
implement the freedesktop specification for a shared MIME database.
|
||||
This package only uses the globs file. No real magic checking is used. The
|
||||
the File::MimeInfo::Magic package is provided for magic typing.
|
||||
|
||||
%prep
|
||||
%setup -q -n File-MimeInfo-%{version}
|
||||
|
||||
%build
|
||||
if [ -f Build.PL ]; then
|
||||
%{__perl} Build.PL --installdirs vendor
|
||||
else
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
fi
|
||||
if [ -f Build.PL ]; then
|
||||
./Build build flags=%{?_smp_mflags}
|
||||
else
|
||||
make %{?_smp_mflags}
|
||||
fi
|
||||
%{__perl} Build.PL installdirs=vendor
|
||||
./Build
|
||||
%check
|
||||
./Build test
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot}
|
||||
|
||||
if [ -f Build.PL ]; then
|
||||
./Build pure_install --destdir %{buildroot}
|
||||
else
|
||||
make pure_install PERL_INSTALL_ROOT=%{buildroot}
|
||||
fi
|
||||
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
|
||||
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
|
||||
|
||||
mkdir -p %{buildroot}/%{_mandir}/man3/ %{buildroot}/usr/bin
|
||||
touch %{buildroot}/%{_mandir}/man3/File-MimeInfo.3pm.gz
|
||||
|
||||
%{_fixperms} %{buildroot}/*
|
||||
|
||||
%check
|
||||
if [ -f Build.PL ]; then
|
||||
./Build test
|
||||
else
|
||||
make test
|
||||
fi
|
||||
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
|
||||
%perl_gen_filelist
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
%{__rm} -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,-)
|
||||
%doc Changes README
|
||||
%{perl_vendorlib}/*
|
||||
%{_mandir}/man*/*.*
|
||||
/usr/bin/*
|
||||
%doc Changes mimeopen mimetype README
|
||||
|
||||
%changelog
|
||||
* Sat Jun 26 2010 %{packager} 0.15-0
|
||||
- initial SUSE packaging
|
||||
- generated with cpan2dist (CPANPLUS::Dist::SUSE version 0.0.8)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user