rpms/perl-Unicode-MapUTF8/F-9 perl-Unicode-MapUTF8.spec,1.13,1.14

Paul Howarth pghmcfc at fedoraproject.org
Thu May 22 14:17:39 UTC 2008


Author: pghmcfc

Update of /cvs/pkgs/rpms/perl-Unicode-MapUTF8/F-9
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv29598

Modified Files:
	perl-Unicode-MapUTF8.spec 
Log Message:
- rebuild for Fedora 9 (#447921)
- add buildreqs Test::More, Test::Pod, Test::Pod::Coverage, and
  Test::Distribution for better test coverage
- simplify package build in line with perl spec template
- no need to define %{perl_vendorlib}
- mark pod as %doc
- use %{version} macro in source URL



Index: perl-Unicode-MapUTF8.spec
===================================================================
RCS file: /cvs/pkgs/rpms/perl-Unicode-MapUTF8/F-9/perl-Unicode-MapUTF8.spec,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- perl-Unicode-MapUTF8.spec	27 Sep 2007 18:22:53 -0000	1.13
+++ perl-Unicode-MapUTF8.spec	22 May 2008 14:16:38 -0000	1.14
@@ -1,22 +1,20 @@
-%{!?perl_vendorlib: %define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)}
-
 Name:           perl-Unicode-MapUTF8
 Version:        1.11
-Release:        6%{?dist}
+Release:        8%{?dist}
 
 Summary:        Conversions to and from arbitrary character sets and UTF8
 
 Group:          Development/Libraries
 License:        GPL+ or Artistic
 URL:            http://search.cpan.org/dist/Unicode-MapUTF8/
-Source0:        http://www.cpan.org/authors/id/S/SN/SNOWHARE/Unicode-MapUTF8-1.11.tar.gz
+Source0:        http://www.cpan.org/authors/id/S/SN/SNOWHARE/Unicode-MapUTF8-%{version}.tar.gz
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildArch:      noarch
-BuildRequires:  perl-devel
-BuildRequires:  perl(Jcode), perl(Unicode::String), perl(Unicode::Map)
-BuildRequires:  perl(Unicode::Map8)
-
+BuildRequires:  perl(ExtUtils::MakeMaker), perl(Jcode)
+BuildRequires:  perl(Unicode::Map), perl(Unicode::Map8), perl(Unicode::String)
+BuildRequires:  perl(Test::More), perl(Test::Pod), perl(Test::Pod::Coverage)
+BuildRequires:  perl(Test::Distribution)
 
 %description
 Unicode::MapUTF8 Provides an adapter layer between core routines for
@@ -33,22 +31,19 @@
 
 
 %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 -depth -type d -exec rmdir {} 2>/dev/null ';'
 chmod -R u+w $RPM_BUILD_ROOT/*
 
 
-%check || :
+%check
 make test
 
 
@@ -59,11 +54,25 @@
 %files
 %defattr(-,root,root,-)
 %doc README
-%{perl_vendorlib}/Unicode
-%{_mandir}/man3/*.3*
+%dir %{perl_vendorlib}/Unicode/
+%doc %{perl_vendorlib}/Unicode/MapUTF8.pod
+%{perl_vendorlib}/Unicode/MapUTF8.pm
+%{_mandir}/man3/Unicode::MapUTF8.3pm*
 
 
 %changelog
+* Thu May 21 2008 Paul Howarth <paul at city-fan.org> 1.11-8
+- rebuild for Fedora 9 (#447921)
+- add buildreqs Test::More, Test::Pod, Test::Pod::Coverage, and
+  Test::Distribution for better test coverage
+
+* Thu Dec  6 2007 Paul Howarth <paul at city-fan.org> 1.11-7
+- simplify package build in line with perl spec template
+- no need to define %%{perl_vendorlib}
+- refactor buildreqs to support build on EL4/5
+- mark pod as %%doc
+- use %%{version} macro in source URL
+
 * Thu Sep 27 2007 Aurelien Bompard <abompard at fedoraproject.org> 1.11-6
 - fix license tag again (thanks Tom)
 




More information about the Fedora-perl-devel-list mailing list