You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
perl-Data-Validate-Domain/perl-Data-Validate-Domain.spec

103 lines
2.9 KiB

Name: perl-Data-Validate-Domain
8 years ago
Version: 0.14
9 years ago
Release: 1%{?dist}
Summary: Domain validation methods Perl module
Group: Development/Libraries
License: GPL+ or Artistic
URL: http://search.cpan.org/dist/Data-Validate-Domain
9 years ago
Source0: http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/Data-Validate-Domain-%{version}.tar.gz
BuildArch: noarch
9 years ago
BuildRequires: coreutils
BuildRequires: findutils
BuildRequires: make
BuildRequires: perl
BuildRequires: perl-generators
9 years ago
BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::MakeMaker)
9 years ago
BuildRequires: perl(File::Spec)
8 years ago
BuildRequires: perl(Net::Domain::TLD) >= 1.74
9 years ago
BuildRequires: perl(strict)
9 years ago
BuildRequires: perl(Test2::Plugin::UTF8)
8 years ago
BuildRequires: perl(Test::More) >= 1.302015
9 years ago
BuildRequires: perl(warnings)
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
%description
This module collects domain validation routines to make input validation, and
untainting easier and more readable.
All functions return an untainted value if the test passes, and undef if it
fails. This means that you should always check for a defined status explicitly.
Don't assume the return will be true. (e.g. is_username('0'))
The value to test is always the first (and often only) argument.
%prep
%setup -q -n Data-Validate-Domain-%{version}
find lib -name "*.pm" -exec chmod -c a-x {} +
%build
perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
%{__make} pure_install DESTDIR=$RPM_BUILD_ROOT
8 years ago
find %{buildroot} -type f -name .packlist -delete
%{_fixperms} %{buildroot}/*
%check
make test
%files
9 years ago
%license LICENSE
9 years ago
%doc Changes README.md
%{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog
8 years ago
* Wed Aug 31 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.14-1
- 0.14 bump
9 years ago
* Mon Aug 01 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.12-1
- 0.12 bump
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.11-3
- Perl 5.24 rebuild
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
9 years ago
* Mon Aug 31 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.11-1
- 0.11 bump
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
10 years ago
* Thu Jun 04 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.10-6
- Perl 5.22 rebuild
11 years ago
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.10-5
- Perl 5.20 rebuild
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
12 years ago
* Thu Jul 18 2013 Petr Pisar <ppisar@redhat.com> - 0.10-2
- Perl 5.18 rebuild
* Tue Jan 22 2013 Normunds Neimanis <fedorapkg at rule.lv> 0.10-1
- Initial package for Fedora