@ -1,17 +1,21 @@
%{!?perl_vendorarch: %define perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo $installvendorarch)}
Name: perl-Unicode-Map
Name: perl-Unicode-Map
Version: 0.112
Version: 0.112
Release: 30%{?dist}
Release: 31%{?dist}
Summary: Perl module for mapping charsets from and to utf16 unicode
Summary: Perl module for mapping charsets from and to utf16 unicode
License: GPL+ or Artistic
License: GPL+ or Artistic
URL: http://search.cpan.org/dist/Unicode-Map/
URL: http://search.cpan.org/dist/Unicode-Map/
Source0: http://www.cpan.org/authors/id/M/MS/MSCHWARTZ/Unicode-Map-0.112.tar.gz
Source0: http://www.cpan.org/authors/id/M/MS/MSCHWARTZ/Unicode-Map-0.112.tar.gz
BuildRequires: perl
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Carp)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
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}
%{?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
sets, e.g. chinese GB2312. Anyway, if you stick to the basic
functionality (see documentation) you can use both modules
functionality (see documentation) you can use both modules
equivalently.
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
%prep
%setup -q -n Unicode-Map-%{version}
%setup -q -n Unicode-Map-%{version}
# See bug 191387
# See bug 191387
echo '
echo '
# Add support for perl-Spreadsheet-ParseExcel
# Add support for perl-Spreadsheet-ParseExcel
@ -41,35 +41,43 @@ src: $DestUnicode/VENDORS/MICSFT/WINDOWS/CP932.TXT
map: $DestMap/MS/WIN/CP932Excel.map
map: $DestMap/MS/WIN/CP932Excel.map
' >> Map/REGISTRY
' >> Map/REGISTRY
%build
%build
CFLAGS="$RPM_OPT_FLAGS" %{__perl} Makefile.PL INSTALLDIRS=vendor
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
make %{?_smp_mflags} OPTIMIZE="$RPM_OPT_FLAGS"
make %{?_smp_mflags}
%install
%install
make install \
make pure_install DESTDIR=%{buildroot}
PERL_INSTALL_ROOT=$RPM_BUILD_ROOT \
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
INSTALLARCHLIB=$RPM_BUILD_ROOT%{perl_archlib}
find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
find $RPM_BUILD_ROOT -type f -a \( -name perllocal.pod -o -name .packlist \
%{_fixperms} %{buildroot}
-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/*
%check
%check
make test
make test
%files
%files
%doc COPYING Changes README
%license COPYING
%{_bindir}/m*
%doc Changes README
%{perl_vendorarch}/auto/Unicode
%{_bindir}/map
%{perl_vendorarch}/Unicode
%{_bindir}/mirrorMappings
%{_mandir}/man[13]/*.[13]*
%{_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
%changelog
* Mon Aug 11 2014 Paul Howarth <paul@city-fan.org> - 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@lists.fedoraproject.org> - 0.112-30
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.112-30
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
- 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
* Tue Feb 21 2006 Aurelien Bompard <gauret[AT]free.fr> 0.112-7
- rebuild for FC5
- 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
- rebuilt
* Mon Feb 2 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.112-0.fdr.5
* Mon Feb 2 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.112-0.fdr.5