Browse Source

* perl-Test-MockDBI: new package
* perl-Test-MockObject: new package
* perl-UNIVERSAL-isa: new package
* perl-UNIVERSAL-can: new package


git-svn-id: http://trac.vinelinux.org/repos/projects/specs@5700 ec354946-7b23-47d6-9f5a-488ba84defc7

shaolin 12 years ago
parent
commit
83e6c5c85d

+ 68 - 0
p/perl-Test-MockDBI/perl-Test-MockDBI-vl.spec

@@ -0,0 +1,68 @@
+%define pkgname Test-MockDBI
+
+Name:       perl-%{pkgname}
+Version:    0.65
+Release:    1%{?_dist_release}
+Summary:    Test by mocking-up DBI 
+License:    Artistic or GPL+
+Group:      Development/Perl
+Url:        http://search.cpan.org/dist/%{pkgname}
+Source0:    http://search.cpan.org/CPAN/authors/id/A/AF/AFF/%{pkgname}-%{version}.tar.gz
+BuildRequires:  perl
+BuildRequires:  perl(DBI)
+BuildRequires: perl(Test::MockObject)
+Requires:       perl(DBI)
+BuildArch: noarch
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
+
+Vendor:         Project Vine
+Distribution:   Vine Linux
+Packager:       shaolin
+
+%description
+Test::MockDBI provides a way to test DBI interfaces by creating rules for
+changing the DBI\'s behavior, then examining the standard output for
+matching patterns. 
+
+%prep
+%setup -q -n %{pkgname}-%{version}
+find . -type f -print0 | xargs -0 chmod 644
+%{__cat} > DBI.cfg << EOF
+DSN  DBI:SQLite:dbname=test
+USER test
+PASS 
+SQL  SELECT 1
+EOF
+
+
+%build
+%{__perl} Makefile.PL
+%{__make} %{?_smp_mflags}
+
+%check
+%{__make} test
+
+%install
+%{__make} install DESTDIR=${RPM_BUILD_ROOT}
+%{__rm} -rf ${RPM_BUILD_ROOT}%{perl_archlib}
+
+%clean
+rm -rf %buildroot
+
+%files
+%defattr(-,root,root,755)
+%doc Changes HISTORY README TODO
+%{_mandir}/man3/*
+%{perl_sitelib}/*
+
+
+
+%changelog
+* Mon Feb 20 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.65-1
+- initial build for Vine Linux
+
+* Fri Sep 30 2011 Leonardo Coelho <leonardoc@mandriva.com> 0.650.0-1mdv2012.0
++ Revision: 702167
+- first mandriva version
+- Created package structure for 'perl-Test-MockDBI'.
+

+ 144 - 0
p/perl-Test-MockObject/perl-Test-MockObject-vl.spec

@@ -0,0 +1,144 @@
+%define pkgname Test-MockObject
+
+Name:           perl-%{pkgname}
+Version:        1.09
+Release:        1%{?_dist_release}
+Summary:        Perl extension for emulating troublesome interfaces
+
+Group:          Development/Libraries
+License:        Artistic or GPL+
+URL:            http://search.cpan.org/dist/Test-MockObject/
+Source0:        http://www.cpan.org/authors/id/C/CH/CHROMATIC/Test-MockObject-%{version}.tar.gz
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildArch:      noarch
+BuildRequires:  perl(CGI)
+BuildRequires:  perl(Module::Build)
+BuildRequires:  perl(Test::Exception)
+BuildRequires:  perl(Test::Pod), perl(Test::Pod::Coverage)
+BuildRequires:  perl(UNIVERSAL::can) >= 1.11
+BuildRequires:  perl(UNIVERSAL::isa) >= 0.06
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+Vendor:         Project Vine
+Distribution:   Vine Linux
+Packager:       shaolin
+
+%description
+Test::MockObject is a highly polymorphic testing object, capable of
+looking like all sorts of objects.  This makes white-box testing much
+easier, as you can concentrate on what the code being tested sends to
+and receives from the mocked object, instead of worrying about faking
+up your own data.  (Another option is not to test difficult things.
+Now you have no excuse.)
+
+
+%prep
+%setup -q -n Test-MockObject-%{version}
+
+
+%build
+%{__perl} Build.PL
+./Build
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
+find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';'
+%{_fixperms} $RPM_BUILD_ROOT/*
+
+
+%check
+PERL_RUN_ALL_TESTS=1 ./Build test
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%files
+%defattr(-,root,root,-)
+%doc Changes README
+%{perl_sitelib}/Test/*.pm
+%dir %{perl_sitelib}/Test/MockObject
+%{perl_sitelib}/Test/MockObject/*.pm
+%{_mandir}/man3/*.3pm*
+
+
+%changelog
+* Mon Feb 20 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.09-1
+- initial package for Vine Linux
+
+* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.09-9
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
+
+* Wed Dec 22 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.09-8
+- 661697 rebuild for fixing problems with vendorach/lib
+
+* Thu Dec 09 2010 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.09-7
+- Add BR: perl(CGI) (Fix FTBFS: BZ 660972).
+
+* Thu May 06 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.09-6
+- Mass rebuild with perl-5.12.0
+
+* Thu Feb  4 2010 Marcela Mašláňová <mmaslano@redhat.com> - 1.09-5
+- 552253 merge review
+
+* Fri Dec  4 2009 Stepan Kasal <skasal@redhat.com> - 1.09-4
+- rebuild against perl 5.10.1
+
+* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.09-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
+* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.09-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+
+* Thu Nov 20 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.09-1
+- update to 1.09
+
+* Wed Mar 05 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.08-2
+- rebuild for new perl
+
+* Fri Jun 29 2007 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.08-1
+- Update to 1.08.
+
+* Thu Oct  5 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.07-1
+- Update to 1.07.
+
+* Fri Apr 21 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.06-1
+- Update to 1.06.
+
+* Tue Apr 11 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.05-1
+- Update to 1.05.
+
+* Thu Mar 30 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.04-1
+- Update to 1.04.
+- Makefile.PL -> Build.PL.
+
+* Mon Mar 13 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.03-1
+- Update to 1.03.
+
+* Tue Feb 28 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.02-1
+- Update to 1.02.
+
+* Fri Jul 15 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.00-1
+- Update to 1.00.
+
+* Fri Apr  7 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 0:0.15-3
+- rebuilt
+
+* Tue Dec 28 2004 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0:0.15-2
+- Build requires Test::Simple >= 0.44 (bug 2324).
+
+* Wed Dec 01 2004 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0:0.15-0.fdr.1
+- Update to 0.15.
+
+* Tue May 25 2004 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0:0.14-0.fdr.1
+- Update to 0.14.
+- Require perl >= 1:5.6.1 for vendor install dir support.
+- Use pure_install to avoid perllocal.pod workarounds.
+- Moved make test to section %%check.
+
+* Wed Nov 19 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.12-0.fdr.1
+- First build.

+ 111 - 0
p/perl-UNIVERSAL-can/perl-UNIVERSAL-can-vl.spec

@@ -0,0 +1,111 @@
+%define pkgname UNIVERSAL-can
+
+Name:           perl-%{pkgname}
+Version:        1.15
+Release:        6%{?_dist_release}
+Summary:        Hack around people calling UNIVERSAL::can() as a function
+
+Group:          Development/Libraries
+License:        Artistic or GPL+
+URL:            http://search.cpan.org/dist/UNIVERSAL-can/
+Source0:        http://www.cpan.org/authors/id/C/CH/CHROMATIC/UNIVERSAL-can-%{version}.tar.gz
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildArch:      noarch
+BuildRequires:  perl(Module::Build)
+BuildRequires:  perl(Test::Simple) >= 0.60
+BuildRequires:  perl(Test::Pod) >= 1.14
+BuildRequires:  perl(Test::Pod::Coverage) >= 1.04
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+Vendor:         Project Vine
+Distribution:   Vine Linux
+Packager:       shaolin
+
+%description
+The UNIVERSAL class provides a few default methods so that all objects
+can use them. Object orientation allows programmers to override these
+methods in subclasses to provide more specific and appropriate behavior.
+
+Some authors call methods in the UNIVERSAL class on potential invocants
+as functions, bypassing any possible overriding. This is wrong and you
+should not do it. Unfortunately, not everyone heeds this warning and
+their bad code can break your good code.
+
+
+%prep
+%setup -q -n UNIVERSAL-can-%{version}
+
+
+%build
+%{__perl} Build.PL
+./Build
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
+chmod -R u+w $RPM_BUILD_ROOT/*
+
+
+%check
+PERL_RUN_ALL_TESTS=1 ./Build test
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%files
+%defattr(-,root,root,-)
+%doc Changes README
+%{perl_sitelib}/UNIVERSAL/
+%{_mandir}/man3/*.3*
+
+
+%changelog
+* Mon Feb 20 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.15-1
+- initial build for Vine Linux
+
+* Mon Jun 20 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.15-6
+- Perl mass rebuild
+
+* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.15-5
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
+
+* Thu Dec 23 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.15-4
+- 661697 rebuild for fixing problems with vendorach/lib
+
+* Fri May 07 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.15-3
+- Mass rebuild with perl-5.12.0
+
+* Fri Dec  4 2009 Stepan Kasal <skasal@redhat.com> - 1.15-2
+- rebuild against perl 5.10.1
+
+* Wed Oct  7 2009 Marcela Mašláňová <mmaslano@redhat.com> - 1.15-1
+- update to new upstream release
+
+* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12-4
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
+* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+
+* Wed Mar  5 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.12-2
+- rebuild for new perl
+
+* Wed Apr  5 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.12-1
+- Update to 1.12.
+
+* Fri Feb 10 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.11-1
+- Update to 1.11.
+- No longer build requires perl(Test::Exception).
+
+* Thu Feb  9 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.03-2
+- Missing build requirement: perl(Test::Exception).
+
+* Wed Feb  8 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.03-1
+- Update to 1.03.
+
+* Tue Dec 27 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.01-1
+- First build.

+ 125 - 0
p/perl-UNIVERSAL-isa/perl-UNIVERSAL-isa-vl.spec

@@ -0,0 +1,125 @@
+%define pkgname UNIVERSAL-isa
+
+Name:           perl-%{pkgname}
+Version:        1.03
+Release:        8%{?_dist_release}
+Summary:        Hack around module authors using UNIVERSAL::isa as a function
+
+Group:          Development/Libraries
+License:        Artistic or GPL+
+URL:            http://search.cpan.org/dist/UNIVERSAL-isa/
+Source0:        http://search.cpan.org/CPAN/authors/id/C/CH/CHROMATIC/UNIVERSAL-isa-%{version}.tar.gz
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildArch:      noarch
+BuildRequires:  perl(Module::Build)
+BuildRequires:  perl(Test::More)
+
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+Vendor:         Project Vine
+Distribution:   Vine Linux
+Packager:       shaolin
+
+%description
+Whenever you use "isa" in UNIVERSAL as a function, a kitten using
+Test::MockObject dies. Normally, the kittens would be helpless, but
+if they use UNIVERSAL::isa (the module whose docs you are reading),
+the kittens can live long and prosper.
+
+This module replaces UNIVERSAL::isa with a version that makes sure
+that if it's called as a function on objects which override isa,
+isa will be called on those objects as a method.
+
+In all other cases the real UNIVERSAL::isa is just called directly.
+
+
+%prep
+%setup -q -n UNIVERSAL-isa-%{version}
+%{__perl} -pi -e 's{^#!%{__perl}\b}{##!%{__perl}}' lib/UNIVERSAL/isa.pm
+
+
+%build
+%{__perl} Build.PL
+./Build
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
+chmod -R u+w $RPM_BUILD_ROOT/*
+
+
+%check
+./Build test
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%files
+%defattr(-,root,root,-)
+%doc Changes README
+%{perl_sitelib}/UNIVERSAL/
+%{_mandir}/man3/*.3pm*
+
+
+%changelog
+* Mon Feb 20 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.03-1
+- initial build for Vine Linux
+
+* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.03-8
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
+
+* Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.03-7
+- Perl mass rebuild
+
+* Thu Jun 09 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.03-6
+- Perl 5.14 mass rebuild
+
+* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.03-5
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
+
+* Thu Dec 23 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.03-4
+- 661697 rebuild for fixing problems with vendorach/lib
+
+* Fri May 07 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.03-3
+- Mass rebuild with perl-5.12.0
+
+* Fri Dec  4 2009 Stepan Kasal <skasal@redhat.com> - 1.03-2
+- rebuild against perl 5.10.1
+
+* Wed Oct  7 2009 Marcela Mašláňová <mmaslano@redhat.com> - 1.03-1
+- update to new upstream release
+
+* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.01-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
+* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.01-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+
+* Thu Nov 20 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.01-1
+- update to 1.01
+
+* Wed Mar 05 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.06-5
+- rebuild for new perl
+
+* Wed Jan 02 2008 Ralf Corsépius <rc040203@freenet.de> - 0.06-4
+- Update License-tag.
+
+* Tue Dec 11 2007 Ralf Corsépius <rc040203@freenet.de> - 0.06-3
+- Add BR: perl(Test::More).
+
+* Fri Sep  8 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.06-2
+- Rebuild for FC6.
+
+* Fri Feb 24 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.06-1
+- Update to 0.06.
+- New files: Changes and README.
+
+* Tue Jan 31 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.05-2
+- Source URL correction.
+
+* Tue Dec 27 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.05-1
+- First build.