]> git.pld-linux.org Git - packages/perl-MooseX-NonMoose.git/commitdiff
- new auto/th/perl-MooseX-NonMoose-0_22-1
authorzbyniu <zbyniu@pld-linux.org>
Thu, 26 Jan 2012 20:33:30 +0000 (20:33 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    perl-MooseX-NonMoose.spec -> 1.1

perl-MooseX-NonMoose.spec [new file with mode: 0644]

diff --git a/perl-MooseX-NonMoose.spec b/perl-MooseX-NonMoose.spec
new file mode 100644 (file)
index 0000000..8d07562
--- /dev/null
@@ -0,0 +1,72 @@
+#
+# Conditional build:
+%bcond_without tests           # do not perform "make test"
+#
+%define                pdir    MooseX
+%define                pnam    NonMoose
+%include       /usr/lib/rpm/macros.perl
+Summary:       MooseX::NonMoose - easy subclassing of non-Moose classes
+#Summary(pl.UTF-8):    
+Name:          perl-MooseX-NonMoose
+Version:       0.22
+Release:       1
+# same as perl
+License:       GPL v1+ or Artistic
+Group:         Development/Languages/Perl
+Source0:       http://www.cpan.org/modules/by-module/MooseX/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: 08627b8575835e64b44e82424df27a8f
+# generic URL, check or change before uncommenting
+#URL:          http://search.cpan.org/dist/MooseX-NonMoose/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires: perl-List-MoreUtils
+BuildRequires: perl-Moose >= 1.15
+BuildRequires: perl(Test::Fatal)
+%endif
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+MooseX::NonMoose allows for easily subclassing non-Moose classes with
+Moose, taking care of the annoying details connected with doing this,
+such as setting up proper inheritance from Moose::Object and
+installing (and inlining, at make_immutable time) a constructor that
+makes sure things like BUILD methods are called. It tries to be as
+non-intrusive as possible - when this module is used, inheriting from
+non-Moose classes and inheriting from Moose classes should work
+identically, aside from the few caveats mentioned below.
+One of the goals of this module is that including it in a
+Moose::Exporter-based package used across an entire application should
+be possible, without interfering with classes that only inherit from
+Moose modules, or even classes that don't inherit from anything at
+all.
+
+# %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
+%{perl_vendorlib}/MooseX/*.pm
+%{perl_vendorlib}/MooseX/NonMoose
+%{_mandir}/man3/*
This page took 0.090195 seconds and 4 git commands to generate.