From 5fb51c6a4a9eed9e287f938d829791089d499ba1 Mon Sep 17 00:00:00 2001 From: Xavier Bachelot Date: Fri, 6 Jan 2012 16:04:51 +0100 Subject: [PATCH] cosmetic spec fixes before first build --- perl-Encode-EUCJPASCII.spec | 60 +++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 perl-Encode-EUCJPASCII.spec diff --git a/perl-Encode-EUCJPASCII.spec b/perl-Encode-EUCJPASCII.spec new file mode 100644 index 0000000..69b9458 --- /dev/null +++ b/perl-Encode-EUCJPASCII.spec @@ -0,0 +1,60 @@ +Name: perl-Encode-EUCJPASCII +Version: 0.03 +Release: 2%{?dist} +Summary: EucJP-ascii - An eucJP-open mapping +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Encode-EUCJPASCII/ +Source0: http://www.cpan.org/modules/by-module/Encode/Encode-EUCJPASCII-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Test::More) +BuildRequires: perl(Test::Pod) +BuildRequires: perl(File::Spec) +BuildRequires: perl(Encode) +BuildRequires: perl(XSLoader) +BuildRequires: perl(base) +BuildRequires: perl(Encode::CJKConstants) +BuildRequires: perl(Encode::JP::JIS7) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%{?perl_default_filter} + +%description +This module provides eucJP-ascii, one of eucJP-open mappings, and its +derivative. + +%prep +%setup -q -n Encode-EUCJPASCII-%{version} + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT +make pure_install DESTDIR=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' +find $RPM_BUILD_ROOT -type f -name '*.bs' -a -size 0 -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 Changes README +%{perl_vendorarch}/* +%exclude %dir %{perl_vendorarch}/auto/ + +%changelog +* Thu Jan 05 2012 Xavier Bachelot 0.03-2 +- Follow the rpmdevtools perl spec template to fix packaging bugs. +- Add missing implicit BuildRequires. + +* Tue Nov 29 2011 Xavier Bachelot 0.03-1 +- Initial Fedora release.