[perl-XML-Entities] update to 1.0000 and clean spec
Remi Collet
remi at fedoraproject.org
Mon Aug 30 16:58:19 UTC 2010
commit 003985c81af98c2daf8afe2f5c866b6a6ab13c0c
Author: remi <fedora at famillecollet.com>
Date: Mon Aug 30 18:58:16 2010 +0200
update to 1.0000 and clean spec
.gitignore | 4 +---
perl-XML-Entities.spec | 27 ++++++++++++---------------
2 files changed, 13 insertions(+), 18 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index dcadcfc..441c6de 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1 @@
-perl-XML-Entities-iso9573-2003.tgz
-XML-Entities-0.0307.tar.gz
-/XML-Entities-1.0000.tar.gz
+XML-Entities-1.0000.tar.gz
diff --git a/perl-XML-Entities.spec b/perl-XML-Entities.spec
index 6dbb2db..0d2abd1 100644
--- a/perl-XML-Entities.spec
+++ b/perl-XML-Entities.spec
@@ -1,8 +1,8 @@
-%define perlname XML-Entities
+%global perlname XML-Entities
Name: perl-XML-Entities
-Version: 0.0307
-Release: 2%{?dist}
+Version: 1.0000
+Release: 1%{?dist}
Summary: Decode strings with XML entities
Group: Development/Libraries
@@ -10,17 +10,15 @@ License: GPL+ or Artistic
URL: http://search.cpan.org/dist/XML-Entities/
Source: http://search.cpan.org/CPAN/authors/id/S/SI/SIXTEASE/%{perlname}-%{version}.tar.gz
-# wget -r -nH -l 1 --cut-dirs=2 -nv http://www.w3.org/2003/entities/iso9573-2003doc/overview.html
-# tar czf perl-XML-Entities-iso9573-2003.tgz iso9573-2003doc/overview.html iso9573-2003/*ent
-Source1: %{name}-iso9573-2003.tgz
-
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(HTML::Parser) perl(LWP::Simple) perl(Test::More)
+
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+%{?perl_default_filter}
+
%description
This module provides a mapping from the standard XML entities to their Unicode
@@ -31,16 +29,10 @@ from a DTD file with entity definitions.
%prep
%setup -q -n %{perlname}
-tar xzf %{SOURCE1}
-
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
-# Use file provided rather than download it.
-sed -i -e "s;bin/download-entities.pl lib/XML/Entities/Data.pm;bin/download-entities.pl file://$PWD/iso9573-2003doc/overview.html lib/XML/Entities/Data.pm;" \
- Makefile
-
make %{?_smp_mflags}
@@ -49,7 +41,7 @@ rm -rf %{buildroot}
make pure_install PERL_INSTALL_ROOT=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} ';' -print
find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';' -print
-chmod -R u+rwX,go+rX,go-w %{buildroot}/*
+%{_fixperms} $RPM_BUILD_ROOT/*
%clean
@@ -64,12 +56,17 @@ make test
%defattr(-, root, root, -)
%doc Changes README
%{_mandir}/man3/XML*
+%{_mandir}/man3/download-entities.*
%{_mandir}/man1/download-entities.*
%{_bindir}/download-entities.pl
%{perl_vendorlib}/XML
%changelog
+* Mon Aug 30 2010 Remi Collet <Fedora at famillecollet.com> 1.0000-1
+- update to 1.000
+- remove Source1 as Entities are now shipped with the module itself
+
* Fri May 07 2010 Marcela Maslanova <mmaslano at redhat.com> - 0.0307-2
- Mass rebuild with perl-5.12.0
More information about the scm-commits
mailing list