SPECS: perl-Data-HashArray.spec (NEW), perl-XML-Pastor.spec (NEW) - new
radek
radek at pld-linux.org
Thu Nov 6 17:40:48 CET 2008
Author: radek Date: Thu Nov 6 16:40:48 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- new
---- Files affected:
SPECS:
perl-Data-HashArray.spec (NONE -> 1.1) (NEW), perl-XML-Pastor.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/perl-Data-HashArray.spec
diff -u /dev/null SPECS/perl-Data-HashArray.spec:1.1
--- /dev/null Thu Nov 6 17:40:48 2008
+++ SPECS/perl-Data-HashArray.spec Thu Nov 6 17:40:43 2008
@@ -0,0 +1,66 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+#
+%include /usr/lib/rpm/macros.perl
+%define pdir Data
+%define pnam HashArray
+Summary: Data::HashArray - An array class of hashes that has magical properties via overloading and AUTOLOAD.
+#Summary(pl.UTF-8):
+Name: perl-Data-HashArray
+Version: 1.0
+Release: 1
+# same as perl
+License: GPL v1+ or Artistic
+Group: Development/Languages/Perl
+Source0: http://www.cpan.org/modules/by-module/Data/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: 56b29c7834e68cec48c0c0bb7e101bd5
+URL: http://search.cpan.org/dist/Data-HashArray/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Normally, Data::HashArray is an array of hashes or hash-based objects.
+This class has some magical properties that make it easier to deal
+with multiplicity.
+
+# %description -l pl.UTF-8
+# TODO
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+ INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} pure_install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes
+%{perl_vendorlib}/Data/*.pm
+%{_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$
+Revision 1.1 2008/11/06 16:40:43 radek
+- new
+
================================================================
Index: SPECS/perl-XML-Pastor.spec
diff -u /dev/null SPECS/perl-XML-Pastor.spec:1.1
--- /dev/null Thu Nov 6 17:40:48 2008
+++ SPECS/perl-XML-Pastor.spec Thu Nov 6 17:40:43 2008
@@ -0,0 +1,87 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+#
+%include /usr/lib/rpm/macros.perl
+%define pdir XML
+%define pnam Pastor
+Summary: XML::Pastor - Generate Perl classes with XML bindings starting from a W3C XSD Schema
+#Summary(pl.UTF-8):
+Name: perl-XML-Pastor
+Version: 1.0.3
+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: 419a54a422a883d59925ea5723dd4ca1
+URL: http://search.cpan.org/dist/XML-Pastor/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires: perl(Data::HashArray)
+BuildRequires: perl-Class-Accessor
+BuildRequires: perl-Class-Data-Inheritable
+BuildRequires: perl-File-chdir
+BuildRequires: perl-libwww
+BuildRequires: perl-URI
+BuildRequires: perl-XML-LibXML >= 1.66
+%endif
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+XML::Pastor is able to generate Perl classes either offline or at
+run-time starting from a W3C XSD Schema.
+
+The generated classes correspond to the global elements, complex and
+simple type declarations in the schema. The generated classes have
+full XML binding, meaning objects belonging to them can be read from
+and written to XML. Accessor methods for attributes and child elements
+will be generated automatically.
+
+Furthermore it is possible to validate the objects of generated
+classes against the original schema although the schema is typically
+no longer accessible.
+
+# %description -l pl.UTF-8
+# TODO
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+ INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} pure_install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%attr(755,root,root) %{_bindir}/*
+%{perl_vendorlib}/XML/*.pm
+%{perl_vendorlib}/XML/Pastor
+%{_mandir}/man3/*
+%{_mandir}/man1/*
+
+%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$
+Revision 1.1 2008/11/06 16:40:43 radek
+- new
+
================================================================
More information about the pld-cvs-commit
mailing list