2010-07-19 07:22:03 +00:00
|
|
|
Name: perl-Test-Without-Module
|
|
|
|
Version: 0.17
|
2010-12-22 21:35:08 +00:00
|
|
|
Release: 3%{?dist}
|
2010-07-19 07:22:03 +00:00
|
|
|
Summary: Test fallback behavior in absence of modules
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
Group: Development/Libraries
|
|
|
|
URL: http://search.cpan.org/dist/Test-Without-Module/
|
|
|
|
Source0: http://www.cpan.org/modules/by-module/Test/Test-Without-Module-%{version}.tar.gz
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
|
BuildRequires: perl(File::Slurp)
|
|
|
|
BuildRequires: perl(Test::More)
|
|
|
|
BuildRequires: perl(Test::Pod)
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
|
|
|
|
%{?perl_default_filter}
|
|
|
|
|
|
|
|
%description
|
|
|
|
This module allows you to deliberately hide modules from a program even
|
|
|
|
though they are installed. This is mostly useful for testing modules that
|
|
|
|
have a fallback when a certain dependency module is not installed.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n Test-Without-Module-%{version}
|
|
|
|
find . -type f -exec chmod 644 {} \;
|
|
|
|
sed -i -e 's/\r//' README Changes
|
|
|
|
|
|
|
|
%build
|
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $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 -depth -type d -exec rmdir {} 2>/dev/null \;
|
|
|
|
|
|
|
|
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
|
|
|
|
|
|
%check
|
|
|
|
make test
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc Changes MANIFEST.skip README
|
|
|
|
%{perl_vendorlib}/*
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
|
|
|
%changelog
|
2010-12-22 21:35:08 +00:00
|
|
|
* Wed Dec 22 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.17-3
|
|
|
|
- 661697 rebuild for fixing problems with vendorach/lib
|
|
|
|
|
2010-07-19 07:22:03 +00:00
|
|
|
* Thu Jul 22 2010 Emmanuel Seyman <emmanuel.seyman@club-internet.fr> - 0.17-2
|
|
|
|
- Remove executable permissions
|
|
|
|
- Dos2unix the README and Changes file
|
|
|
|
- Americanise the summary
|
|
|
|
|
|
|
|
* Sun Jun 27 2010 Emmanuel Seyman <emmanuel.seyman@club-internet.fr> 0.17-1
|
|
|
|
- Specfile autogenerated by cpanspec 1.78.
|