diff --git a/.gitignore b/.gitignore index e69de29..57b8d8a 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Test-Directory-0.041.tar.gz diff --git a/perl-Test-Directory.spec b/perl-Test-Directory.spec new file mode 100644 index 0000000..acac0c0 --- /dev/null +++ b/perl-Test-Directory.spec @@ -0,0 +1,58 @@ +Name: perl-Test-Directory +Version: 0.041 +Release: 1%{?dist} +Summary: Perl extension for maintaining test directories +License: GPL+ or Artistic +URL: http://search.cpan.org/dist/Test-Directory/ +Source0: http://www.cpan.org/modules/by-module/Test/Test-Directory-%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl +BuildRequires: perl-generators +BuildRequires: perl(:VERSION) >= 5.6.2 +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 +# Run-time: +BuildRequires: perl(Carp) +BuildRequires: perl(Fcntl) +BuildRequires: perl(File::Spec) +BuildRequires: perl(File::Temp) +BuildRequires: perl(strict) +BuildRequires: perl(Test::Builder::Module) +BuildRequires: perl(warnings) +# Tests: +BuildRequires: perl(constant) +BuildRequires: perl(lib) +BuildRequires: perl(Test::Builder::Tester) +BuildRequires: perl(Test::Exception) +BuildRequires: perl(Test::More) +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) + +%description +Testing code can involve making sure that files are created and deleted as +expected. Doing this manually can be error prone, as it's easy to forget a +file, or miss that some unexpected file was added. This module simplifies +maintaining test directories by tracking their status as they are modified +or tested with this API, making it simple to test both individual files, as +well as to verify that there are no missing or unknown files. + +%prep +%setup -q -n Test-Directory-%{version} + +%build +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 +make %{?_smp_mflags} + +%install +make pure_install DESTDIR=$RPM_BUILD_ROOT +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%files +%doc Changes README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Fri Apr 21 2017 Petr Pisar 0.041-1 +- Specfile autogenerated by cpanspec 1.78. diff --git a/sources b/sources index e69de29..3018b58 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +SHA512 (Test-Directory-0.041.tar.gz) = 51647e3cf83d52485db4a9a2e93f6e3d2e0ff59b638e1d5ed0386a7798e864f29c2ffbbcc7fbf095d2f0e053b916d2e3eb15e2f804fae1cd77e82d438649e4f3