2006-09-08 16:30:44 +00:00
|
|
|
Name: perl-Moose
|
2007-10-15 04:47:41 +00:00
|
|
|
Version: 0.26
|
2007-03-23 15:59:03 +00:00
|
|
|
Release: 1%{?dist}
|
2006-09-08 16:30:44 +00:00
|
|
|
Summary: Complete modern object system for Perl 5
|
2007-10-15 04:47:41 +00:00
|
|
|
License: GPL+ or Artistic
|
2006-09-08 16:30:44 +00:00
|
|
|
Group: Development/Libraries
|
|
|
|
URL: http://search.cpan.org/dist/Moose/
|
|
|
|
Source0: http://www.cpan.org/authors/id/S/ST/STEVAN/Moose-%{version}.tar.gz
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
BuildArch: noarch
|
2007-05-04 16:21:07 +00:00
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
2006-09-08 16:30:44 +00:00
|
|
|
|
2007-10-15 04:47:41 +00:00
|
|
|
# write temp db to tmpdir rather than .
|
|
|
|
Patch: t202_tmpfile.patch
|
|
|
|
|
2007-05-04 16:21:07 +00:00
|
|
|
# core
|
2007-10-15 04:47:41 +00:00
|
|
|
BuildRequires: perl(Test::More) >= 0.62
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
2007-05-04 16:21:07 +00:00
|
|
|
# cpan
|
2007-10-15 04:47:41 +00:00
|
|
|
BuildRequires: perl(Class::MOP) >= 0.39
|
2007-10-15 05:06:49 +00:00
|
|
|
BuildRequires: perl(Module::Build)
|
2007-10-15 04:47:41 +00:00
|
|
|
BuildRequires: perl(Sub::Exporter) >= 0.954
|
|
|
|
BuildRequires: perl(Sub::Install) >= 0.92
|
|
|
|
BuildRequires: perl(Test::Exception) >= 0.21
|
2006-09-08 16:30:44 +00:00
|
|
|
BuildRequires: perl(Test::LongString)
|
|
|
|
BuildRequires: perl(UNIVERSAL::require) >= 0.10
|
|
|
|
# optional test #1 (in no particular order)
|
|
|
|
BuildRequires: perl(Test::Pod), perl(Test::Pod::Coverage)
|
|
|
|
# optional test #2
|
|
|
|
BuildRequires: perl(DBM::Deep) >= 0.983, perl(DateTime::Format::MySQL)
|
|
|
|
# optional test #3
|
|
|
|
BuildRequires: perl(HTTP::Headers), perl(Params::Coerce), perl(URI)
|
|
|
|
# optional test #4
|
|
|
|
# commented out as Locale::US's license is ambiguous at the moment, precluding
|
|
|
|
# packaging it.
|
|
|
|
#BuildRequires: perl(Regexp::Common), perl(Locale::US)
|
2007-05-04 16:21:07 +00:00
|
|
|
# optional test #5
|
2006-11-16 17:31:13 +00:00
|
|
|
BuildRequires: perl(IO::File), perl(IO::String)
|
2007-04-07 18:44:52 +00:00
|
|
|
# optional test #6
|
|
|
|
BuildRequires: perl(Test::Deep)
|
2007-05-04 16:21:07 +00:00
|
|
|
# optional test #7
|
|
|
|
BuildRequires: perl(Declare::Constraints::Simple)
|
2007-04-07 18:44:52 +00:00
|
|
|
# optional test #8 (as of 0.20)
|
|
|
|
BuildRequires: perl(Module::Refresh)
|
2006-09-08 16:30:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
Moose is an extension of the Perl 5 object system.
|
|
|
|
|
2006-10-10 15:53:46 +00:00
|
|
|
Yes, I know there has been an explosion recently of new ways to build
|
|
|
|
objects in Perl 5, most of them based on inside-out objects and other
|
|
|
|
such things. Moose is different because it is not a new object system
|
|
|
|
for Perl 5, but instead an extension of the existing object system.
|
|
|
|
|
|
|
|
Moose is built on top of Class::MOP, which is a metaclass system for
|
|
|
|
Perl 5. This means that Moose not only makes building normal Perl 5
|
|
|
|
objects better, but it also provides the power of metaclass programming.
|
|
|
|
|
|
|
|
While Moose is very much inspired by Perl 6, it is not itself Perl
|
|
|
|
6. Instead, it is an OO system for Perl 5. I built Moose because I was
|
|
|
|
tired or writing the same old boring Perl 5 OO code, and drooling over
|
|
|
|
Perl 6 OO. So instead of switching to Ruby, I wrote Moose :)
|
|
|
|
|
2006-09-08 16:30:44 +00:00
|
|
|
%prep
|
|
|
|
%setup -q -n Moose-%{version}
|
|
|
|
|
2007-10-15 04:47:41 +00:00
|
|
|
# test patches
|
|
|
|
%patch
|
|
|
|
|
2006-09-08 16:30:44 +00:00
|
|
|
%build
|
|
|
|
%{__perl} Build.PL installdirs=vendor
|
|
|
|
./Build
|
|
|
|
|
2007-06-01 00:46:47 +00:00
|
|
|
find t/ -type f -exec perl -pi -e 's|^#!/usr/local/bin|#!/usr/bin|' {} +
|
|
|
|
|
2007-05-04 16:21:07 +00:00
|
|
|
# Filter unwanted Provides:
|
|
|
|
cat << \EOF > %{name}-prov
|
|
|
|
#!/bin/sh
|
|
|
|
%{__perl_provides} $* |\
|
|
|
|
sed -e '/perl(MyMoose.*)/d; /perl(Bar)/d; /perl(Foo)/d'
|
|
|
|
EOF
|
|
|
|
|
|
|
|
%define __perl_provides %{_builddir}/Moose-%{version}/%{name}-prov
|
|
|
|
chmod +x %{__perl_provides}
|
|
|
|
|
2006-09-08 16:30:44 +00:00
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
./Build install destdir=%{buildroot} create_packlist=0
|
|
|
|
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
|
|
|
|
|
|
|
|
%{_fixperms} %{buildroot}/*
|
|
|
|
|
|
|
|
%check
|
|
|
|
./Build test
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2007-05-04 16:21:07 +00:00
|
|
|
%doc Changes README t/
|
2006-09-08 16:30:44 +00:00
|
|
|
%{perl_vendorlib}/*
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
|
|
|
%changelog
|
2007-10-15 04:47:41 +00:00
|
|
|
* Sun Oct 14 2007 Chris Weyl <cweyl@alumni.drew.edu> 0.26-1
|
|
|
|
- udpate to 0.26
|
|
|
|
|
|
|
|
* Sat Aug 11 2007 Chris Weyl <cweyl@alumni.drew.edu> 0.24-1
|
|
|
|
- update to 0.24
|
|
|
|
- license tag: GPL -> GPL+
|
|
|
|
- patch t/202_...t to write to a tmpdir rather than .
|
|
|
|
|
2007-06-01 00:46:47 +00:00
|
|
|
* Thu May 31 2007 Chris Weyl <cweyl@alumni.drew.edu> 0.22-1
|
|
|
|
- update to 0.22
|
|
|
|
|
2007-05-04 16:21:07 +00:00
|
|
|
* Fri May 04 2007 Chris Weyl <cweyl@alumni.drew.edu> 0.21-1
|
|
|
|
- update to 0.21
|
|
|
|
|
|
|
|
* Tue May 01 2007 Chris Weyl <cweyl@alumni.drew.edu> 0.20-2
|
|
|
|
- add t/ to %%doc
|
|
|
|
- add br for optional test #7
|
|
|
|
|
2007-04-07 18:44:52 +00:00
|
|
|
* Sat Apr 07 2007 Chris Weyl <cweyl@alumni.drew.edu> 0.20-1
|
|
|
|
- update to 0.20
|
|
|
|
- add additional BR's for new optional tests
|
|
|
|
|
2007-03-23 15:59:03 +00:00
|
|
|
* Fri Mar 23 2007 Chris Weyl <cweyl@alumni.drew.edu> 0.18-1
|
|
|
|
- Sub::Name only needed as a br for Moose < 0.18
|
|
|
|
- update to 0.18
|
|
|
|
|
2006-11-16 17:31:13 +00:00
|
|
|
* Thu Nov 16 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.17-2
|
|
|
|
- add IO::File and IO::String to br's for testing
|
|
|
|
|
2006-11-16 16:57:17 +00:00
|
|
|
* Thu Nov 16 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.17-1
|
|
|
|
- update to 0.17
|
|
|
|
|
2006-11-06 18:49:28 +00:00
|
|
|
* Mon Nov 06 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.15-1
|
|
|
|
- update to 0.15
|
|
|
|
|
2006-10-10 15:46:56 +00:00
|
|
|
* Tue Oct 10 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.14-1
|
|
|
|
- update to 0.14
|
|
|
|
- drop some cruft from the specfile
|
2006-10-10 15:53:46 +00:00
|
|
|
- make %%description a touch more verbose :)
|
2006-10-10 15:46:56 +00:00
|
|
|
|
2006-10-04 04:24:23 +00:00
|
|
|
* Tue Oct 03 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.13-1
|
|
|
|
- update to 0.13
|
|
|
|
|
2006-09-08 16:31:03 +00:00
|
|
|
* Fri Sep 08 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.12-2
|
|
|
|
- bump
|
|
|
|
|
2006-09-08 16:30:44 +00:00
|
|
|
* Sat Sep 02 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.12-1
|
|
|
|
- Specfile autogenerated by cpanspec 1.69.1.
|