5a0aae
Name:           perl-HTTP-Negotiate
5a0aae
Version:        6.01
291b3e
Release:        5%{?dist}
5a0aae
Summary:        Choose a variant to serve
5a0aae
License:        GPL+ or Artistic
5a0aae
Group:          Development/Libraries
5a0aae
URL:            http://search.cpan.org/dist/HTTP-Negotiate/
5a0aae
Source0:        http://www.cpan.org/authors/id/G/GA/GAAS/HTTP-Negotiate-%{version}.tar.gz
5a0aae
BuildArch:      noarch
5a0aae
BuildRequires:  perl(Exporter)
5a0aae
BuildRequires:  perl(ExtUtils::MakeMaker)
5a0aae
BuildRequires:  perl(HTTP::Headers) >= 6
5a0aae
# Tests only:
5a0aae
BuildRequires:  perl(Test)
5a0aae
BuildRequires:  perl(HTTP::Request)
5a0aae
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
5a0aae
Requires:       perl(HTTP::Headers) >= 6
5a0aae
Conflicts:      perl-libwww-perl < 6
5a0aae
5a0aae
# Remove underspecified dependencies
5a0aae
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}perl\\(HTTP::Headers\\)$
5a0aae
5a0aae
%description
5a0aae
This module provides a complete implementation of the HTTP content
5a0aae
negotiation algorithm specified in draft-ietf-http-v11-spec-00.ps chapter
5a0aae
12. Content negotiation allows for the selection of a preferred content
5a0aae
representation based upon attributes of the negotiable variants and the
5a0aae
value of the various Accept* header fields in the request.
5a0aae
5a0aae
%prep
5a0aae
%setup -q -n HTTP-Negotiate-%{version}
5a0aae
5a0aae
%build
5a0aae
perl Makefile.PL INSTALLDIRS=vendor
5a0aae
make %{?_smp_mflags}
5a0aae
5a0aae
%install
5a0aae
make pure_install DESTDIR=%{buildroot}
5a0aae
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
5a0aae
%{_fixperms} %{buildroot}/*
5a0aae
5a0aae
%check
5a0aae
make test
5a0aae
5a0aae
%files
5a0aae
%doc Changes README
5a0aae
%{perl_vendorlib}/*
5a0aae
%{_mandir}/man3/*
5a0aae
5a0aae
%changelog
291b3e
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 6.01-5
291b3e
- Mass rebuild 2013-12-27
291b3e
5a0aae
* Wed Nov 14 2012 Petr Šabata <contyk@redhat.com> - 6.01-4
5a0aae
- Modernize the spec and drop command macros
5a0aae
5a0aae
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.01-3
5a0aae
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
5a0aae
5a0aae
* Tue Jun 12 2012 Petr Pisar <ppisar@redhat.com> - 6.01-2
5a0aae
- Perl 5.16 rebuild
5a0aae
5a0aae
* Mon Feb 20 2012 Petr Pisar <ppisar@redhat.com> - 6.01-1
5a0aae
- 6.01 bump
5a0aae
5a0aae
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.00-4
5a0aae
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
5a0aae
5a0aae
* Mon Jun 25 2011 Marcela Mašláňová <mmaslano@redhat.com> - 6.00-3
5a0aae
- add new filter
5a0aae
5a0aae
* Tue Jun 21 2011 Marcela Mašláňová <mmaslano@redhat.com> - 6.00-2
5a0aae
- Perl mass rebuild
5a0aae
5a0aae
* Thu Mar 17 2011 Petr Pisar <ppisar@redhat.com> 6.00-1
5a0aae
- Specfile autogenerated by cpanspec 1.78.
5a0aae
- Remove BuildRoot stuff
5a0aae
- Conflicts with perl-libwww-perl-5* and older