rpms/perl-Unicode-Map/EL-5 perl-Unicode-Map.spec,1.8,1.9

Paul Howarth (pghmcfc) fedora-extras-commits at redhat.com
Thu Dec 6 15:16:55 UTC 2007


Author: pghmcfc

Update of /cvs/pkgs/rpms/perl-Unicode-Map/EL-5
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv21229/EL-5

Modified Files:
	perl-Unicode-Map.spec 
Log Message:
Cleanups for first EPEL versions


Index: perl-Unicode-Map.spec
===================================================================
RCS file: /cvs/pkgs/rpms/perl-Unicode-Map/EL-5/perl-Unicode-Map.spec,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- perl-Unicode-Map.spec	30 Aug 2006 16:16:38 -0000	1.8
+++ perl-Unicode-Map.spec	6 Dec 2007 15:16:22 -0000	1.9
@@ -1,32 +1,31 @@
-%{!?perl_vendorarch: %define perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo $installvendorarch)}
-
 Name:           perl-Unicode-Map
 Version:        0.112
-Release:        8%{?dist}
+Release:        12%{?dist}
 
 Summary:        Perl module for mapping charsets from and to utf16 unicode
 
 Group:          Development/Libraries
-License:        GPL or Artistic
+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
+Source0:        http://www.cpan.org/authors/id/M/MS/MSCHWARTZ/Unicode-Map-%{version}.tar.gz
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
-BuildRequires:  perl
+BuildRequires:  perl(ExtUtils::MakeMaker)
 
 %description
-This module converts strings from and to 2-byte Unicode UCS2
-format. All mappings happen via 2 byte UTF16 encodings, not via 1 byte
-UTF8 encoding. To convert between UTF8 and UTF16 use Unicode::String.
-For historical reasons this module coexists with Unicode::Map8.
-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!
+This module converts strings from and to 2-byte Unicode UCS2 format. All
+mappings happen via 2 byte UTF16 encodings, not via 1 byte UTF8 encoding.
+To convert between UTF8 and UTF16 use Unicode::String.
+
+For historical reasons this module coexists with Unicode::Map8. 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
@@ -42,22 +41,20 @@
 
 
 %build
-CFLAGS="$RPM_OPT_FLAGS" %{__perl} Makefile.PL INSTALLDIRS=vendor
-make %{?_smp_mflags} OPTIMIZE="$RPM_OPT_FLAGS"
+%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
+make %{?_smp_mflags}
 
 
 %install
 rm -rf $RPM_BUILD_ROOT
-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 ';'
+make pure_install PERL_INSTALL_ROOT=$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 ';'
 chmod -R u+w $RPM_BUILD_ROOT/*
 
 
-%check || :
+%check
 make test
 
 
@@ -68,13 +65,35 @@
 %files
 %defattr(-,root,root,-)
 %doc COPYING Changes README
-%{_bindir}/m*
-%{perl_vendorarch}/auto/Unicode
-%{perl_vendorarch}/Unicode
-%{_mandir}/man[13]/*.[13]*
+%{_bindir}/map
+%{_bindir}/mirrorMappings
+%{_bindir}/mkCSGB2312
+%{_bindir}/mkmapfile
+%{perl_vendorarch}/Unicode/
+%{perl_vendorarch}/auto/Unicode/
+%{_mandir}/man1/map.1*
+%{_mandir}/man1/mkmapfile.1*
+%{_mandir}/man3/Unicode::Map.3pm*
 
 
 %changelog
+* Thu Dec  6 2007 Paul Howarth <paul at city-fan.org> 0.112-12
+- simplify package build in line with perl spec template
+- no need to define %%{perl_vendorarch}
+- refactor buildreqs to support build on EL4/5
+- more specific %%files list
+- use %%{version} macro in source URL
+
+* Thu Sep 27 2007 Aurelien Bompard <abompard at fedoraproject.org> 0.112-11
+- fix license tag (thanks Tom)
+
+* Sun Aug 26 2007 Aurelien Bompard <abompard at fedoraproject.org> 0.112-10
+- rebuild for BuildID
+- fix license tag (like perl itself)
+
+* Mon Aug 13 2007 Aurelien Bompard <abompard at fedoraproject.org> 0.112-9
+- BR: perl-devel
+
 * Wed Aug 30 2006 Aurelien Bompard <abompard at fedoraproject.org> 0.112-8
 - Add support for perl-Spreadsheet-ParseExcel (bug 191387)
 




More information about the fedora-extras-commits mailing list