|
@@ -2,25 +2,33 @@
|
|
|
|
|
|
# Basic Information
|
|
# Basic Information
|
|
Name: perl-%{pkgname}
|
|
Name: perl-%{pkgname}
|
|
-Version: 0.09
|
|
+Version: 0.10
|
|
Release: 1%{?_dist_release}
|
|
Release: 1%{?_dist_release}
|
|
|
|
+Summary: write your unit tests in other modules than *.t
|
|
|
|
+Summary(ja): *.t 以外のモジュールで単体テストを書く
|
|
|
|
+
|
|
License: Artistic or GPL
|
|
License: Artistic or GPL
|
|
Group: Development/Libraries
|
|
Group: Development/Libraries
|
|
|
|
+URL: http://search.cpan.org/~ishigaki/Test-Classy/
|
|
|
|
+
|
|
Source0: http://search.cpan.org/CPAN/authors/id/I/IS/ISHIGAKI/%{pkgname}-%{version}.tar.gz
|
|
Source0: http://search.cpan.org/CPAN/authors/id/I/IS/ISHIGAKI/%{pkgname}-%{version}.tar.gz
|
|
|
|
+
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
+BuildArch: noarch
|
|
|
|
+BuildRequires: perl(Class::Data::Inheritable)
|
|
|
|
+BuildRequires: perl(Class::Inspector)
|
|
|
|
+BuildRequires: perl(Data::Dump)
|
|
|
|
+BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
|
+BuildRequires: perl(Module::Find)
|
|
|
|
+BuildRequires: perl(Term::Encoding)
|
|
|
|
+BuildRequires: perl(Test::UseAllModules)
|
|
|
|
+BuildRequires: perl(Sub::Install)
|
|
|
|
+Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
|
|
Vendor: Project Vine
|
|
Vendor: Project Vine
|
|
Distribution: Vine Linux
|
|
Distribution: Vine Linux
|
|
Packager: yasumichi
|
|
Packager: yasumichi
|
|
|
|
|
|
-Summary: write your unit tests in other modules than *.t
|
|
|
|
-Summary(ja): *.t 以外のモジュールで単体テストを書く
|
|
|
|
-
|
|
|
|
-# Dependency
|
|
|
|
-Requires: perl
|
|
|
|
-Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
-
|
|
|
|
-BuildRequires: perl
|
|
|
|
|
|
|
|
%description
|
|
%description
|
|
This is yet another Test::Class-like unit testing framework. As stated in
|
|
This is yet another Test::Class-like unit testing framework. As stated in
|
|
@@ -35,42 +43,41 @@ limit tests.
|
|
#%%description -l ja
|
|
#%%description -l ja
|
|
|
|
|
|
%prep
|
|
%prep
|
|
-%setup -q -n Test-Classy-0.09
|
|
+%setup -q -n Test-Classy-%{version}
|
|
|
|
|
|
%build
|
|
%build
|
|
-perl Makefile.PL
|
|
+perl Makefile.PL INSTALLDIRS=vendor
|
|
-%{__make}
|
|
+make %{?_smp_mflags}
|
|
|
|
|
|
%install
|
|
%install
|
|
-%{__rm} -rf ${RPM_BUILD_ROOT}
|
|
+rm -rf $RPM_BUILD_ROOT
|
|
-%{__make} install DESTDIR=${RPM_BUILD_ROOT}
|
|
+make pure_install DESTDIR=$RPM_BUILD_ROOT
|
|
-
|
|
+find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
|
|
-find $RPM_BUILD_ROOT%{_prefix} -type f -print |
|
|
+find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} ';' 2>/dev/null
|
|
- sed "s@^$RPM_BUILD_ROOT@@g" |
|
|
+%{_fixperms} $RPM_BUILD_ROOT
|
|
- grep -v ^%{_mandir} |
|
|
|
|
- grep -v perllocal.pod |
|
|
|
|
- grep -v "\.packlist" > %{name}.files
|
|
|
|
-if [ "$(cat %{name}.files)X" = "X" ] ; then
|
|
|
|
- echo "ERROR: EMPTY FILE LIST"
|
|
|
|
- exit -1
|
|
|
|
-fi
|
|
|
|
-
|
|
|
|
-# remove unnecessary files.
|
|
|
|
-%{__rm} ${RPM_BUILD_ROOT}%{perl_archlib}/perllocal.pod
|
|
|
|
-%{__rm} ${RPM_BUILD_ROOT}%{perl_sitearch}/auto/Test/Classy/.packlist
|
|
|
|
-
|
|
|
|
|
|
|
|
%clean
|
|
%clean
|
|
-%{__rm} -rf ${RPM_BUILD_ROOT}
|
|
+rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
+%check
|
|
|
|
+make test
|
|
|
|
|
|
-%files -f %{name}.files
|
|
+
|
|
|
|
+%files
|
|
%defattr(-,root,root)
|
|
%defattr(-,root,root)
|
|
%doc Changes README
|
|
%doc Changes README
|
|
-%dir %{perl_sitelib}/Test/Classy
|
|
+%{perl_vendorlib}/Test/*
|
|
-%{_mandir}/*/*
|
|
+%{_mandir}/man3/*
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Tue Nov 25 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 0.10-1
|
|
|
|
+- updated to 0.10
|
|
|
|
+- built with perl 5.16.3
|
|
|
|
+- installed module to vendor_perl
|
|
|
|
+- added BuildArch: noarch
|
|
|
|
+- added BuildRequires: perl modules
|
|
|
|
+- added URL tag
|
|
|
|
+
|
|
* Mon Oct 10 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.09-1
|
|
* Mon Oct 10 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.09-1
|
|
- initial build for Vine Linux
|
|
- initial build for Vine Linux
|