From 46dd1b3a1ceb05207c6dbabe26aaaf0b250cd7e3 Mon Sep 17 00:00:00 2001 From: Xavier Bachelot Date: Thu, 30 Apr 2009 17:22:06 +0000 Subject: [PATCH] Initial import. --- .cvsignore | 1 + import.log | 1 + perl-MIME-Charset.spec | 63 ++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 66 insertions(+) create mode 100644 import.log create mode 100644 perl-MIME-Charset.spec diff --git a/.cvsignore b/.cvsignore index e69de29..dbce2ad 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +MIME-Charset-1.006.2.tar.gz diff --git a/import.log b/import.log new file mode 100644 index 0000000..775e433 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +perl-MIME-Charset-1_006_2-2_fc10:HEAD:perl-MIME-Charset-1.006.2-2.fc10.src.rpm:1241112010 diff --git a/perl-MIME-Charset.spec b/perl-MIME-Charset.spec new file mode 100644 index 0000000..ab7b7a0 --- /dev/null +++ b/perl-MIME-Charset.spec @@ -0,0 +1,63 @@ +Name: perl-MIME-Charset +Version: 1.006.2 +Release: 2%{?dist} +Summary: Charset Informations for MIME +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/MIME-Charset/ +Source0: http://www.cpan.org/modules/by-module/MIME/MIME-Charset-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +BuildRequires: perl(ExtUtils::MakeMaker) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +MIME::Charset provides informations about character sets used for MIME +messages on Internet. + +%prep +%setup -q -n MIME-Charset-%{version} + +cat << \EOF > %{name}-prov +#!/bin/sh +%{__perl_provides} $* |\ +sed -e '/perl(MIME::Charset)$/d' +EOF + +%global __perl_provides %{_builddir}/MIME-Charset-%{version}/%{name}-prov +chmod +x %{__perl_provides} + + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT + +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT + +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc ARTISTIC Changes COPYING GPL README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Tue Apr 28 2009 Xavier Bachelot 1.006.2-2 +- Filter duplicate Provides:. + +* Fri Apr 24 2009 Xavier Bachelot 1.006.2-1 +- Specfile autogenerated by cpanspec 1.77. +- Fix license. diff --git a/sources b/sources index e69de29..c8ab53c 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +22a140a7f323518301d9998bf50e2e17 MIME-Charset-1.006.2.tar.gz