57 lines
1.4 KiB
RPMSpec
57 lines
1.4 KiB
RPMSpec
Name: perl-Test-Differences
|
|
Version: 0.47
|
|
Release: 1%{?dist}
|
|
Summary: Test strings and data structures and show differences if not ok
|
|
|
|
Group: Development/Libraries
|
|
License: GPL or Artistic
|
|
URL: http://search.cpan.org/dist/Test-Differences/
|
|
Source0: http://www.cpan.org/authors/id/R/RB/RBS/Test-Differences-%{version}.tar.gz
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
BuildArch: noarch
|
|
BuildRequires: perl(Text::Diff) >= 0.34
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
%description
|
|
When the code you're testing returns multiple lines, records or data
|
|
structures and they're just plain wrong, an equivalent to the Unix
|
|
diff utility may be just what's needed.
|
|
|
|
|
|
%prep
|
|
%setup -q -n Test-Differences-%{version}
|
|
|
|
|
|
%build
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
%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 eg/
|
|
%{perl_vendorlib}/Test/
|
|
%{_mandir}/man3/*.3pm*
|
|
|
|
|
|
%changelog
|
|
* Mon May 01 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.47-1
|
|
- First build.
|