[perl-XML-DTDParser] Initial import (#791363).
Bill Pemberton
wfp at fedoraproject.org
Wed Feb 22 20:23:52 UTC 2012
commit 8e219c1d4ac3827d71d8eb3a735aec7d806c8a01
Author: Bill Pemberton <wfp5p at virginia.edu>
Date: Wed Feb 22 15:23:44 2012 -0500
Initial import (#791363).
.gitignore | 1 +
perl-XML-DTDParser.spec | 77 +++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 79 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..9149302 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/XML-DTDParser-2.01.tar.gz
diff --git a/perl-XML-DTDParser.spec b/perl-XML-DTDParser.spec
new file mode 100644
index 0000000..1419b42
--- /dev/null
+++ b/perl-XML-DTDParser.spec
@@ -0,0 +1,77 @@
+Name: perl-XML-DTDParser
+Version: 2.01
+Release: 3%{?dist}
+Summary: Quick and dirty DTD parser
+License: GPL+ or Artistic
+Group: Development/Libraries
+URL: http://search.cpan.org/dist/XML-DTDParser/
+Source0: http://www.cpan.org/authors/id/J/JE/JENDA/XML-DTDParser-%{version}.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildArch: noarch
+
+# build requirements
+BuildRequires: perl(ExtUtils::MakeMaker)
+
+# module requirements
+BuildRequires: perl(Cwd)
+BuildRequires: perl(Exporter)
+BuildRequires: perl(File::Spec)
+BuildRequires: perl(FileHandle)
+
+# test requirements
+# Data::Compare is optional and would need to be dropped for epel
+BuildRequires: perl(Data::Compare)
+BuildRequires: perl(Test)
+
+Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+%description
+This module parses a DTD file and creates a data structure containing info
+about all tags, their allowed parameters, children, parents, optionality,
+and others.
+
+%prep
+%setup -q -n XML-DTDParser-%{version}
+
+%{__sed} -i 's/\r//' README
+
+%build
+%{__perl} Makefile.PL INSTALLDIRS=vendor
+make %{?_smp_mflags}
+
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+make pure_install DESTDIR=$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 \;
+
+%{_fixperms} $RPM_BUILD_ROOT/*
+
+%check
+make test
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root,-)
+%doc Changes README
+%{perl_vendorlib}/XML/DTDParser.pm
+%{_mandir}/man3/XML::DTDParser.3pm*
+
+%changelog
+* Wed Feb 22 2012 Bill Pemberton <wfp5p at virginia.edu> - 2.01-3
+- list files explictly
+- use DESTDIR instead of RPM_INSTALL_ROOT on install
+- add comments about why the various BuildRequires are there
+
+* Mon Feb 20 2012 Bill Pemberton <wfp5p at virginia.edu> - 2.01-2
+- Only fix line endings on README
+- Add a few BuildRequires
+
+* Thu Feb 16 2012 Bill Pemberton <wfp5p at virginia.edu> 2.01-1
+- Initial spec
diff --git a/sources b/sources
index e69de29..8ee574b 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+746b6a7ecc60a8dde1bc5a81ddb068a6 XML-DTDParser-2.01.tar.gz
More information about the scm-commits
mailing list