[packages/perl-XML-Entities] - new
adamg
adamg at pld-linux.org
Fri Feb 22 17:21:32 CET 2013
commit e58329dc6ecb58028308269aa6d2d9c34db73351
Author: Adam Gołębiowski <adamg at pld-linux.org>
Date: Fri Feb 22 17:20:56 2013 +0100
- new
perl-XML-Entities.spec | 69 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 69 insertions(+)
---
diff --git a/perl-XML-Entities.spec b/perl-XML-Entities.spec
new file mode 100644
index 0000000..fceaa2d
--- /dev/null
+++ b/perl-XML-Entities.spec
@@ -0,0 +1,69 @@
+# $Revision:$, $Date:$
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+#
+%define pdir XML
+%define pnam Entities
+%include /usr/lib/rpm/macros.perl
+Summary: XML::Entities - Decode strings with XML entities
+Summary(pl.UTF-8): XML::Entities - dekodowania łańcuchów znaków zawierających encje XML
+Name: perl-XML-Entities
+Version: 1.0001
+Release: 1
+# same as perl
+License: GPL v1+ or Artistic
+Group: Development/Languages/Perl
+Source0: http://www.cpan.org/modules/by-module/XML/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: b989ba88e488fddb6ac99f6be4304220
+URL: http://search.cpan.org/dist/XML-Entities/
+BuildRequires: perl-Module-Build
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Based upon the HTML::Entities module by Gisle Aas
+
+This module deals with decoding of strings with XML character
+entities. The module provides two functions:
+
+The list of entities is defined in the XML::Entities::Data module. The
+list can be generated from the w3.org definition (or any other). Check
+perldoc XML::Entities::Data for more details.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}
+
+%build
+%{__perl} Build.PL \
+ destdir=$RPM_BUILD_ROOT \
+ installdirs=vendor
+./Build
+
+%{?with_tests:./Build test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+./Build install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%attr(755,root,root) %{_bindir}/download-entities.pl
+%{perl_vendorlib}/XML/*.pm
+%{perl_vendorlib}/XML/Entities
+%{_mandir}/man1/*
+%{_mandir}/man3/*
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log:$
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-XML-Entities.git/commitdiff/e58329dc6ecb58028308269aa6d2d9c34db73351
More information about the pld-cvs-commit
mailing list