169 lines
5.2 KiB
RPMSpec
169 lines
5.2 KiB
RPMSpec
Name: perl-Object-InsideOut
|
|
Version: 3.56
|
|
Release: 2%{?dist}
|
|
Summary: Comprehensive inside-out object support module
|
|
|
|
Group: Development/Libraries
|
|
License: GPL+ or Artistic
|
|
URL: http://search.cpan.org/dist/Object-InsideOut
|
|
Source0: http://search.cpan.org/CPAN/authors/id/J/JD/JDHEDDEN/Object-InsideOut-%{version}.tar.gz
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
BuildArch: noarch
|
|
BuildRequires: perl(Exception::Class) >= 1.29
|
|
BuildRequires: perl(Want) >= 0.12
|
|
BuildRequires: perl(Test::Pod)
|
|
BuildRequires: perl(Test::Pod::Coverage)
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
### auto-added brs!
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
BuildRequires: perl(Data::Dumper)
|
|
BuildRequires: perl(Scalar::Util) >= 1.21
|
|
BuildRequires: perl(Config)
|
|
BuildRequires: perl(Test::More) >= 0.5
|
|
BuildRequires: perl(B)
|
|
|
|
### auto-added reqs!
|
|
Requires: perl(B)
|
|
Requires: perl(Config)
|
|
Requires: perl(Data::Dumper)
|
|
Requires: perl(Exception::Class) >= 1.29
|
|
Requires: perl(Scalar::Util) >= 1.21
|
|
|
|
%description
|
|
This module provides comprehensive support for implementing classes using the
|
|
inside-out object model.
|
|
|
|
This module implements inside-out objects as anonymous scalar references that
|
|
are blessed into a class with the scalar containing the ID for the object
|
|
(usually a sequence number). For Perl 5.8.3 and later, the scalar reference is
|
|
set as readonly to prevent accidental modifications to the ID. Object data
|
|
(i.e., fields) are stored within the class's package in either arrays indexed
|
|
by the object's ID, or hashes keyed to the object's ID.
|
|
|
|
%prep
|
|
%setup -q -n Object-InsideOut-%{version}
|
|
|
|
# Filter unwanted Requires, have to break the loop
|
|
cat << \EOF > %{name}-req
|
|
#!/bin/sh
|
|
%{__perl_requires} `perl -p -e 's|\S+%{_docdir}/%{name}-%{version}\S+||'` |\
|
|
sed -e '/perl(Math::Random::MT::Auto)/d'
|
|
EOF
|
|
|
|
%define __perl_requires %{_builddir}/Object-InsideOut-%{version}/%{name}-req
|
|
chmod +x %{__perl_requires}
|
|
|
|
# make sure doc/tests don't generate provides
|
|
# note we first filter out the bits in _docdir...
|
|
cat << \EOF > %{name}-prov
|
|
#!/bin/sh
|
|
%{__perl_provides} `perl -p -e 's|\S+%{_docdir}/%{name}-%{version}\S+||'` |\
|
|
sed -e '/^perl(Object::InsideOut)$/d'
|
|
EOF
|
|
|
|
%define __perl_provides %{_builddir}/Object-InsideOut-%{version}/%{name}-prov
|
|
chmod +x %{__perl_provides}
|
|
|
|
|
|
%build
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
%install
|
|
rm -rf %{buildroot}
|
|
|
|
make pure_install PERL_INSTALL_ROOT=%{buildroot}
|
|
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
|
|
find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
|
|
|
|
%{_fixperms} %{buildroot}/*
|
|
|
|
|
|
%check
|
|
make test
|
|
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc Changes README t/
|
|
%{perl_vendorlib}/*
|
|
%{_mandir}/man3/*.3*
|
|
|
|
|
|
%changelog
|
|
* Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 3.56-2
|
|
- rebuild against perl 5.10.1
|
|
|
|
* Tue Aug 25 2009 Chris Weyl <cweyl@alumni.drew.edu> 3.56-1
|
|
- auto-update to 3.56 (by cpan-spec-update 0.01)
|
|
- altered br on perl(Scalar::Util) (1.19 => 1.21)
|
|
- added a new req on perl(B) (version 0)
|
|
- added a new req on perl(Config) (version 0)
|
|
- added a new req on perl(Data::Dumper) (version 0)
|
|
- added a new req on perl(Exception::Class) (version 1.29)
|
|
- added a new req on perl(Scalar::Util) (version 1.21)
|
|
|
|
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.55-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
* Tue May 19 2009 Chris Weyl <cweyl@alumni.drew.edu> 3.55-1
|
|
- auto-update to 3.55 (by cpan-spec-update 0.01)
|
|
- added a new br on perl(ExtUtils::MakeMaker) (version 0)
|
|
- added a new br on perl(Data::Dumper) (version 0)
|
|
- added a new br on perl(Scalar::Util) (version 1.19)
|
|
- added a new br on perl(Config) (version 0)
|
|
- added a new br on perl(Test::More) (version 0.5)
|
|
- altered br on perl(Exception::Class) (1.22 => 1.29)
|
|
- added a new br on perl(B) (version 0)
|
|
|
|
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.51-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
* Sat Oct 25 2008 Chris Weyl <cweyl@alumni.drew.edu> 3.51-1
|
|
- update to 3.51
|
|
- replace filter-provides.sh style filtering with inline
|
|
|
|
* Tue Mar 04 2008 Tom "spot" Callaway <tcallawa@redhat.com> 3.38-1
|
|
- 3.38
|
|
|
|
* Tue Mar 04 2008 Tom "spot" Callaway <tcallawa@redhat.com> 2.06-2
|
|
- rebuild for new perl
|
|
|
|
* Tue Oct 10 2006 Chris Weyl <cweyl@alumni.drew.edu> 2.06-1
|
|
- update to 2.06
|
|
- add additional BRs: perl(Test::Pod[::Coverage])
|
|
|
|
* Mon Sep 25 2006 Chris Weyl <cweyl@alumni.drew.edu> 2.02-1
|
|
- update to 2.02
|
|
|
|
* Tue Sep 05 2006 Chris Weyl <cweyl@alumni.drew.edu> 1.52-1
|
|
- update to 1.52
|
|
|
|
* Thu Aug 31 2006 Chris Weyl <cweyl@alumni.drew.edu> 1.51-1
|
|
- update to 1.51, which now has a BR of perl(Want)
|
|
- rebuild per mass rebuild
|
|
|
|
* Fri Aug 11 2006 Chris Weyl <cweyl@alumni.drew.edu> 1.49-1
|
|
- update to 1.49
|
|
|
|
* Sat Aug 05 2006 Chris Weyl <cweyl@alumni.drew.edu> 1.48-1
|
|
- update to 1.48
|
|
- drop some unneeded bits from the spec
|
|
|
|
* Wed Jul 5 2006 Chris Weyl <cweyl@alumni.drew.edu> 1.45-1
|
|
- bump release for build
|
|
|
|
* Mon Jul 3 2006 Chris Weyl <cweyl@alumni.drew.edu> 1.45-0.1
|
|
- corrected url's.
|
|
|
|
* Sat Jul 01 2006 Chris Weyl <cweyl@alumni.drew.edu> 1.45-0
|
|
- Initial spec file for F-E
|