commit a2cb531445b71d9fc65f029543c155f5d0b54081 Author: Paul Howarth <paul@xxxxxxxxxxxx> Date: Mon Aug 11 10:22:33 2014 +0100 Update spec file to more modern style - Specify all dependencies - Simplify %build and %install - No longer need to define %perl_vendorarch - Use %license - Make %files list more explicit - Remove paragraph from %description about this module disappearing when the perl core can handle Unicode perl-Unicode-Map.spec | 74 +++++++++++++++++++++++++++---------------------- 1 files changed, 41 insertions(+), 33 deletions(-) --- diff --git a/perl-Unicode-Map.spec b/perl-Unicode-Map.spec index 2b7219a..86337d2 100644 --- a/perl-Unicode-Map.spec +++ b/perl-Unicode-Map.spec @@ -1,17 +1,21 @@ -%{!?perl_vendorarch: %define perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo $installvendorarch)} - Name: perl-Unicode-Map Version: 0.112 -Release: 30%{?dist} - +Release: 31%{?dist} Summary: Perl module for mapping charsets from and to utf16 unicode - License: GPL+ or Artistic URL: http://search.cpan.org/dist/Unicode-Map/ Source0: http://www.cpan.org/authors/id/M/MS/MSCHWARTZ/Unicode-Map-0.112.tar.gz - -BuildRequires: perl(ExtUtils::MakeMaker) -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +BuildRequires: perl +BuildRequires: perl(Carp) +BuildRequires: perl(DynaLoader) +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Getopt::Long) +BuildRequires: perl(Getopt::Std) +BuildRequires: perl(HTTP::Status) +BuildRequires: perl(LWP::Simple) +BuildRequires: perl(strict) +BuildRequires: perl(vars) +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) %{?perl_default_filter} @@ -24,14 +28,10 @@ Please use Unicode::Map8 unless you need to care for >1 byte character sets, e.g. chinese GB2312. Anyway, if you stick to the basic functionality (see documentation) you can use both modules equivalently. -Practically this module will disappear from earth sooner or later as -Unicode mapping support needs somehow to get into perl's core. If you -like to work on this field please don't hesitate contacting Gisle Aas -and check out the mailing list perl-unicode! - %prep %setup -q -n Unicode-Map-%{version} + # See bug 191387 echo ' # Add support for perl-Spreadsheet-ParseExcel @@ -41,35 +41,43 @@ src: $DestUnicode/VENDORS/MICSFT/WINDOWS/CP932.TXT map: $DestMap/MS/WIN/CP932Excel.map ' >> Map/REGISTRY - %build -CFLAGS="$RPM_OPT_FLAGS" %{__perl} Makefile.PL INSTALLDIRS=vendor -make %{?_smp_mflags} OPTIMIZE="$RPM_OPT_FLAGS" - +perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" +make %{?_smp_mflags} %install -make install \ - PERL_INSTALL_ROOT=$RPM_BUILD_ROOT \ - INSTALLARCHLIB=$RPM_BUILD_ROOT%{perl_archlib} -find $RPM_BUILD_ROOT -type f -a \( -name perllocal.pod -o -name .packlist \ - -o \( -name '*.bs' -a -empty \) \) -exec rm -f {} ';' -find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';' -chmod -R u+w $RPM_BUILD_ROOT/* - +make pure_install DESTDIR=%{buildroot} +find %{buildroot} -type f -name .packlist -exec rm -f {} ';' +find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';' +%{_fixperms} %{buildroot} %check make test - %files -%doc COPYING Changes README -%{_bindir}/m* -%{perl_vendorarch}/auto/Unicode -%{perl_vendorarch}/Unicode -%{_mandir}/man[13]/*.[13]* - +%license COPYING +%doc Changes README +%{_bindir}/map +%{_bindir}/mirrorMappings +%{_bindir}/mkCSGB2312 +%{_bindir}/mkmapfile +%{perl_vendorarch}/auto/Unicode/ +%{perl_vendorarch}/Unicode/ +%{_mandir}/man1/map.1* +%{_mandir}/man1/mkmapfile.1* +%{_mandir}/man3/Unicode::Map.3* %changelog +* Mon Aug 11 2014 Paul Howarth <paul@xxxxxxxxxxxx> - 0.112-31 +- Update spec file to more modern style + - Specify all dependencies + - Simplify %%build and %%install + - No longer need to define %%perl_vendorarch + - Use %%license + - Make %%files list more explicit + - Remove paragraph from %%description about this module disappearing when + the perl core can handle Unicode + * Sat Jun 07 2014 Fedora Release Engineering <rel-eng@xxxxxxxxxxxxxxxxxxxxxxx> - 0.112-30 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild @@ -144,7 +152,7 @@ make test * Tue Feb 21 2006 Aurelien Bompard <gauret[AT]free.fr> 0.112-7 - rebuild for FC5 -* Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net> +* Wed Apr 6 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - rebuilt * Mon Feb 2 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.112-0.fdr.5 -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel