Browse Source

* perl-Test-MockModule: new package

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@5699 ec354946-7b23-47d6-9f5a-488ba84defc7
shaolin 12 năm trước cách đây
mục cha
commit
19f177fc7f
1 tập tin đã thay đổi với 81 bổ sung0 xóa
  1. 81 0
      p/perl-Test-MockModule/perl-Test-MockModule-vl.spec

+ 81 - 0
p/perl-Test-MockModule/perl-Test-MockModule-vl.spec

@@ -0,0 +1,81 @@
+%define pkgname Test-MockModule
+
+Name:           perl-%{pkgname}
+Version:        0.05
+Release:        1%{?_dist_release}
+Group:          Development/Libraries
+License:        Artistic or GPL+
+URL:            http://search.cpan.org/dist/Test-MockModule/
+Source0:        http://search.cpan.org/CPAN/authors/id/S/SI/SIMONFLK/Test-MockModule-%{version}.tar.gz
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildArch:      noarch
+BuildRequires:  perl(Test::More), perl(Test::Pod), perl(Test::Pod::Coverage)
+Requires:  perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+Vendor:         Project Vine
+Distribution:   Vine Linux
+Packager:       shaolin
+
+Summary:        Override subroutines in a module for unit testing
+
+%description
+%{summary}.
+
+%prep
+%setup -q -n Test-MockModule-%{version}
+
+%build
+%{__perl} Makefile.PL
+make
+
+%install
+rm -rf ${RPM_BUILD_ROOT}
+make pure_install PERL_INSTALL_ROOT=${RPM_BUILD_ROOT}
+find ${RPM_BUILD_ROOT} -type f -name .packlist -exec rm -f {} ';'
+find ${RPM_BUILD_ROOT} -type d -depth -exec rmdir {} 2>/dev/null ';'
+chmod -R u+w ${RPM_BUILD_ROOT}/*
+
+%check
+make test
+
+%clean
+rm -rf ${RPM_BUILD_ROOT}
+
+%files
+%defattr(-,root,root,-)
+%doc Changes README
+%{perl_sitelib}/Test/MockModule.pm
+%{_mandir}/man3/*.3*
+
+
+%changelog
+* Mon Feb 20 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.05-1
+- initial build for Vine Linux
+
+* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.05-9
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
+* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.05-8
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+
+* Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.05-7
+- Rebuild for perl 5.10 (again)
+
+* Sun Jan 20 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.05-6
+- rebuild for new perl
+
+* Sun Aug 26 2007 Tom "spot" Callaway <tcallawa@redhat.com> 0.05-5
+- license tag fix
+
+* Fri Sep 15 2006 Tom "spot" Callaway <tcallawa@redhat.com> 0.05-4
+- bump for fc6
+
+* Wed Jul 27 2005 Tom "spot" Callaway <tcallawa@redhat.com> 0.05-3
+- add missing BuildRequires
+
+* Fri Jul  8 2005 Tom "spot" Callaway <tcallawa@redhat.com> 0.05-2
+- cleanups
+
+* Wed Jul  6 2005 Tom "spot" Callaway <tcallawa@redhat.com> 0.05-1
+- Initial package for Fedora Extras