SPECS: perl-Data-Visitor.spec (NEW) - initial revision
migo
migo at pld-linux.org
Sat Apr 8 14:51:16 CEST 2006
Author: migo Date: Sat Apr 8 12:51:16 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- initial revision
---- Files affected:
SPECS:
perl-Data-Visitor.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/perl-Data-Visitor.spec
diff -u /dev/null SPECS/perl-Data-Visitor.spec:1.1
--- /dev/null Sat Apr 8 14:51:16 2006
+++ SPECS/perl-Data-Visitor.spec Sat Apr 8 14:51:11 2006
@@ -0,0 +1,72 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+#
+%include /usr/lib/rpm/macros.perl
+%define pdir Data
+%define pnam Visitor
+Summary: Data::Visitor - Visitor style traversal of Perl data structures
+#Summary(pl):
+Name: perl-Data-Visitor
+Version: 0.04
+Release: 1
+# same as perl
+License: GPL v1+ or Artistic
+Group: Development/Languages/Perl
+Source0: http://www.cpan.org/modules/by-authors/id/N/NU/NUFFIN/Data-Visitor-0.04.tar.gz
+# Source0-md5: 44e1ff9daccb68954857c144761e320a
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires: perl-Class-Accessor
+BuildRequires: perl-Test-MockObject >= 1.04
+BuildRequires: perl-Test-use-ok
+%endif
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This module is a simple visitor implementation for Perl values.
+
+It has a main dispatcher method, visit, which takes a single perl value and
+then calls the methods appropriate for that value.
+
+# %description -l pl
+# TODO
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%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
+%{perl_vendorlib}/Data/*.pm
+%{perl_vendorlib}/Data/Visitor
+%{_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 2006/04/08 12:51:11 migo
+- initial revision
+
================================================================
More information about the pld-cvs-commit
mailing list