Author: agaran Date: Wed Jan 9 13:43:39 2008 GMT Module: SPECS Tag: HEAD ---- Log message: - initial, builds here, rel 1
---- Files affected: SPECS: perl-Object-Declare.spec (NONE -> 1.1) (NEW) ---- Diffs: ================================================================ Index: SPECS/perl-Object-Declare.spec diff -u /dev/null SPECS/perl-Object-Declare.spec:1.1 --- /dev/null Wed Jan 9 14:43:39 2008 +++ SPECS/perl-Object-Declare.spec Wed Jan 9 14:43:34 2008 @@ -0,0 +1,72 @@ +# $Revision$, $Date$ +# +# Conditional build: +%bcond_without tests # do not perform "make test" +# +%include /usr/lib/rpm/macros.perl +%define pdir Object +%define pnam Declare +Summary: Object::Declare - Declarative object constructor +#Summary(pl): +Name: perl-Object-Declare +Version: 0.22 +Release: 1 +License: MIT +Group: Development/Languages/Perl +Source0: http://www.cpan.org/modules/by-authors/id/A/AU/AUDREYT/Object-Declare-0.22.tar.gz +# Source0-md5: 9607cd7b485bd7e01c3286f1dd8df187 +BuildRequires: perl-devel >= 1:5.8.0 +BuildRequires: rpm-perlprov >= 4.1-13 +%if %{with tests} +BuildRequires: perl(Sub::Override) +%endif +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +This module exports one function, declare, for building named +objects with a declarative syntax, similar to how Jifty::DBI::Schema +defines its columns. + +In list context, declare returns a list of name/object pairs in the +order of declaration (allowing duplicates), suitable for putting into a hash. +In scalar context, declare returns a hash reference. + +# %description -l pl +# 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} install \ + DESTDIR=$RPM_BUILD_ROOT + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc Changes README +%{perl_vendorlib}/Object/*.pm +#%%{perl_vendorlib}/Object/Declare +%{_mandir}/man3/* + +%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) +%changelog +* %{date} PLD Team <[EMAIL PROTECTED]> +All persons listed below can be reached at <cvs_login>@pld-linux.org + +$Log$ +Revision 1.1 2008-01-09 13:43:34 agaran +- initial, builds here, rel 1 + ================================================================ _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
