commit 48f3c115057613b0b34a2a1edd28ac58a91f4873 Author: Petr PÃsaÅ <ppisar@xxxxxxxxxx> Date: Wed Apr 6 09:07:01 2011 +0200 Import .gitignore | 1 + perl-MooseX-TrackDirty-Attributes.spec | 57 ++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 59 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..7d0bb84 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/MooseX-TrackDirty-Attributes-0.02.tar.gz diff --git a/perl-MooseX-TrackDirty-Attributes.spec b/perl-MooseX-TrackDirty-Attributes.spec new file mode 100644 index 0000000..3e13f42 --- /dev/null +++ b/perl-MooseX-TrackDirty-Attributes.spec @@ -0,0 +1,57 @@ +Name: perl-MooseX-TrackDirty-Attributes +Version: 0.02 +Release: 1%{?dist} +Summary: Track dirtied attributes +License: LGPLv2+ +Group: Development/Libraries +URL: http://search.cpan.org/dist/MooseX-TrackDirty-Attributes/ +Source0: http://www.cpan.org/authors/id/R/RS/RSRCHBOY/MooseX-TrackDirty-Attributes-%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Moose) >= 0.90 +BuildRequires: perl(namespace::autoclean) >= 0.08 +# Tests only: +BuildRequires: perl(Carp) +BuildRequires: perl(English) +BuildRequires: perl(Moose::Exporter) +BuildRequires: perl(Moose::Role) +BuildRequires: perl(Moose::Util::MetaRole) +BuildRequires: perl(FindBin) +BuildRequires: perl(Test::Moose) +BuildRequires: perl(Test::More) >= 0.92 +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +Requires: perl(Moose) >= 0.90 +Requires: perl(namespace::autoclean) >= 0.08 + +%description +MooseX::TrackDirty::Attributes does the necessary metaclass fiddling to +track if attributes are dirty; that is, if they're set to some value not +from a builder, default, or construction. An attribute can be returned to a +clean state by invoking its clearer. + +%prep +%setup -q -n MooseX-TrackDirty-Attributes-%{version} + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%files +%defattr(-,root,root,-) +%doc Changes README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Mon Apr 04 2011 Petr Pisar <ppisar@xxxxxxxxxx> 0.02-1 +- Specfile autogenerated by cpanspec 1.78. +- Remove BuildRoot stuff diff --git a/sources b/sources index e69de29..8738ea8 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +502f45cf99cedc76d58f6f5035d3a449 MooseX-TrackDirty-Attributes-0.02.tar.gz -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel