rpms/perl-Unicode-String/EL-5 perl-Unicode-String.spec,1.9,1.10

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


Author: pghmcfc

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

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


Index: perl-Unicode-String.spec
===================================================================
RCS file: /cvs/pkgs/rpms/perl-Unicode-String/EL-5/perl-Unicode-String.spec,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- perl-Unicode-String.spec	30 Aug 2006 16:25:18 -0000	1.9
+++ perl-Unicode-String.spec	6 Dec 2007 12:33:22 -0000	1.10
@@ -1,45 +1,46 @@
-%{!?perl_vendorarch: %define perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo $installvendorarch)}
-
 Name:           perl-Unicode-String
 Version:        2.09
-Release:        2%{?dist}
+Release:        6%{?dist}
 
 Summary:        Perl modules to handle various Unicode issues
 
 Group:          Development/Libraries
-License:        GPL or Artistic
+License:        (GPL+ or Artistic) and (GPLv2+ or Artistic)
 URL:            http://search.cpan.org/dist/Unicode-String/
-Source0:        http://www.cpan.org/authors/id/G/GA/GAAS/Unicode-String-2.09.tar.gz
+Source0:        http://www.cpan.org/authors/id/G/GA/GAAS/Unicode-String-%{version}.tar.gz
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
-Requires:       perl(MIME::Base64)
-BuildRequires:  perl(MIME::Base64)
+Requires:       perl(MIME::Base64) >= 2.00
+BuildRequires:  perl(MIME::Base64) >= 2.00, perl(ExtUtils::MakeMaker)
 
 %description
-%{summary}.
+These are experimental modules to handle various Unicode issues.  They
+were made before perl included native UTF8 support.
 
 
 %prep
 %setup -q -n Unicode-String-%{version}
 
+for f in README String.pm; do
+  iconv -f iso-8859-15 -t utf8 < ${f} > ${f}.utf8
+  mv ${f}.utf8 ${f}
+done
 
 %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
 
 
@@ -50,12 +51,31 @@
 %files
 %defattr(-,root,root,-)
 %doc Changes README
-%{perl_vendorarch}/auto/Unicode
-%{perl_vendorarch}/Unicode
-%{_mandir}/man3/*.3*
+%{perl_vendorarch}/Unicode/
+%{perl_vendorarch}/auto/Unicode/
+%{_mandir}/man3/Unicode::CharName.3pm*
+%{_mandir}/man3/Unicode::String.3pm*
 
 
 %changelog
+* Thu Dec  6 2007 Paul Howarth <paul at city-fan.org> 2.09-6
+- simplify package build in line with perl spec template
+- more detailed package description
+- no need to define %%{perl_vendorarch}
+- refactor buildreqs to support build on EL4/5
+- re-encode String.pm and README as UTF-8
+- more specific %%files list
+- use %%{version} macro in source URL
+
+* Thu Sep 27 2007 Aurelien Bompard <abompard at fedoraproject.org> 2.09-5
+- fix license tag again (thanks Tom)
+
+* Sun Aug 26 2007 Aurelien Bompard <abompard at fedoraproject.org> 2.09-4
+- fix license tag (like perl itself)
+
+* Mon Aug 13 2007 Aurelien Bompard <abompard at fedoraproject.org> 2.09-3
+- BR: perl-devel
+
 * Wed Aug 30 2006 Aurelien Bompard <abompard at fedoraproject.org> 2.09-2
 - rebuild
 




More information about the fedora-extras-commits mailing list