5c404af
# Perform an optional test
5c404af
%bcond_without perl_URI_Query_enables_optional_test
5c404af
5c404af
Name:           perl-URI-Query
5c404af
Version:        0.16
e76aa35
Release:        6%{?dist}
5c404af
Summary:        Class providing URI query string manipulation
5c404af
License:        GPL+ or Artistic
5c404af
URL:            https://metacpan.org/release/URI-Query
5c404af
Source0:        https://cpan.metacpan.org/authors/id/G/GA/GAVINC/URI-Query-%{version}.tar.gz
5c404af
BuildArch:      noarch
5c404af
BuildRequires:  make
5c404af
BuildRequires:  perl-generators
5c404af
BuildRequires:  perl-interpreter
5c404af
BuildRequires:  perl(:VERSION) >= 5.5.30
5c404af
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
5c404af
BuildRequires:  perl(strict)
5c404af
BuildRequires:  perl(warnings)
5c404af
# Run-time:
5c404af
BuildRequires:  perl(Carp)
5c404af
BuildRequires:  perl(Clone)
5c404af
BuildRequires:  perl(overload)
5c404af
BuildRequires:  perl(parent)
5c404af
BuildRequires:  perl(URI::Escape)
5c404af
BuildRequires:  perl(vars)
5c404af
# Tests:
5c404af
# English not used
5c404af
# Pod::Coverage::TrustPod not used
5c404af
BuildRequires:  perl(Test::More) >= 0.88
5c404af
# Test::Pod 1.41 not used
5c404af
# Test::Pod::Coverage 1.08 not used
5c404af
%if %{with perl_URI_Query_enables_optional_test}
5c404af
# Optional tests:
5c404af
BuildRequires:  perl(YAML)
5c404af
%endif
5c404af
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
5c404af
5c404af
%description
5c404af
URI::Query provides simple URI query string manipulation, allowing you to
5c404af
create and manipulate URI query strings from GET and POST requests in web
5c404af
applications. This is primarily useful for creating links where you wish to
5c404af
preserve some subset of the parameters to the current request, and potentially
5c404af
add or replace others. Given a query string this is doable with regular
5c404af
expressions, of course, but making sure you get the anchoring and escaping
5c404af
right is tedious and error-prone - this module is simpler.
5c404af
5c404af
%prep
5c404af
%setup -q -n URI-Query-%{version}
5c404af
5c404af
%build
5c404af
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
5c404af
%{make_build}
5c404af
5c404af
%install
5c404af
%{make_install}
5c404af
%{_fixperms} $RPM_BUILD_ROOT/*
5c404af
5c404af
%check
5c404af
unset AUTHOR_TESTING RELEASE_TESTING
5c404af
make test
5c404af
5c404af
%files
5c404af
%license LICENSE
5c404af
%doc ChangeLog README TODO
5c404af
%{perl_vendorlib}/*
5c404af
%{_mandir}/man3/*
5c404af
5c404af
%changelog
e76aa35
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.16-6
e76aa35
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
e76aa35
72b2f73
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 0.16-5
72b2f73
- Perl 5.32 rebuild
72b2f73
3fa2bee
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.16-4
3fa2bee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
3fa2bee
ed7b4e5
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.16-3
ed7b4e5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
ed7b4e5
54bbe6d
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 0.16-2
54bbe6d
- Perl 5.30 rebuild
54bbe6d
5c404af
* Fri Feb 01 2019 Petr Pisar <ppisar@redhat.com> 0.16-1
5c404af
- Specfile autogenerated by cpanspec 1.78.