[4920] | 1 | %define pkgname Test-Classy |
---|
| 2 | |
---|
| 3 | # Basic Information |
---|
| 4 | Name: perl-%{pkgname} |
---|
| 5 | Version: 0.09 |
---|
| 6 | Release: 1%{?_dist_release} |
---|
| 7 | License: Artistic or GPL |
---|
| 8 | Group: Development/Libraries |
---|
| 9 | Source0: http://search.cpan.org/CPAN/authors/id/I/IS/ISHIGAKI/%{pkgname}-%{version}.tar.gz |
---|
| 10 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 11 | |
---|
| 12 | Vendor: Project Vine |
---|
| 13 | Distribution: Vine Linux |
---|
| 14 | Packager: yasumichi |
---|
| 15 | |
---|
| 16 | Summary: write your unit tests in other modules than *.t |
---|
| 17 | Summary(ja): *.t 以外のモジュールで単体テストを書く |
---|
| 18 | |
---|
| 19 | # Dependency |
---|
| 20 | Requires: perl |
---|
| 21 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
| 22 | |
---|
| 23 | BuildRequires: perl |
---|
| 24 | |
---|
| 25 | %description |
---|
| 26 | This is yet another Test::Class-like unit testing framework. As stated in |
---|
| 27 | Test::Class pod, you don't need to care if your tests are small and working |
---|
| 28 | correctly. If not, this may be one of your options. |
---|
| 29 | |
---|
| 30 | Unlike Test::Class, Test::Classy (actually Test::Classy::Base) is based on |
---|
| 31 | Test::More and exports everything Test::More exports. Test::Classy doesn't |
---|
| 32 | control test flow as fully as Test::Class, but it may be easier to skip and |
---|
| 33 | limit tests. |
---|
| 34 | |
---|
| 35 | #%%description -l ja |
---|
| 36 | |
---|
| 37 | %prep |
---|
| 38 | %setup -q -n Test-Classy-0.09 |
---|
| 39 | |
---|
| 40 | %build |
---|
| 41 | perl Makefile.PL |
---|
| 42 | %{__make} |
---|
| 43 | |
---|
| 44 | %install |
---|
| 45 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 46 | %{__make} install DESTDIR=${RPM_BUILD_ROOT} |
---|
| 47 | |
---|
| 48 | find $RPM_BUILD_ROOT%{_prefix} -type f -print | |
---|
| 49 | sed "s@^$RPM_BUILD_ROOT@@g" | |
---|
| 50 | grep -v ^%{_mandir} | |
---|
| 51 | grep -v perllocal.pod | |
---|
| 52 | grep -v "\.packlist" > %{name}.files |
---|
| 53 | if [ "$(cat %{name}.files)X" = "X" ] ; then |
---|
| 54 | echo "ERROR: EMPTY FILE LIST" |
---|
| 55 | exit -1 |
---|
| 56 | fi |
---|
| 57 | |
---|
| 58 | # remove unnecessary files. |
---|
| 59 | %{__rm} ${RPM_BUILD_ROOT}%{perl_archlib}/perllocal.pod |
---|
| 60 | %{__rm} ${RPM_BUILD_ROOT}%{perl_sitearch}/auto/Test/Classy/.packlist |
---|
| 61 | |
---|
| 62 | |
---|
| 63 | %clean |
---|
| 64 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 65 | |
---|
| 66 | |
---|
| 67 | %files -f %{name}.files |
---|
| 68 | %defattr(-,root,root) |
---|
| 69 | %doc Changes README |
---|
| 70 | %dir %{perl_sitelib}/Test/Classy |
---|
| 71 | %{_mandir}/*/* |
---|
| 72 | |
---|
| 73 | |
---|
| 74 | %changelog |
---|
| 75 | * Mon Oct 10 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.09-1 |
---|
| 76 | - initial build for Vine Linux |
---|