From 396de336b36367dbbbeb434696cb6df448f47b5a Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Wed, 28 Nov 2018 11:18:22 +0100 Subject: [PATCH] Import LWP::Protocol::connect --- .gitattributes | 1 + .tito/releasers.conf | 1 + .tito/tito.props | 5 ++- LWP-Protocol-connect-6.09.tar.gz | 3 ++ perl-LWP-Protocol-connect.spec | 65 ++++++++++++++++++++++++++++++++ 5 files changed, 73 insertions(+), 2 deletions(-) create mode 100644 .gitattributes create mode 120000 .tito/releasers.conf create mode 100644 LWP-Protocol-connect-6.09.tar.gz create mode 100644 perl-LWP-Protocol-connect.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..f087b42 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.tar.gz filter=lfs diff=lfs merge=lfs -text diff --git a/.tito/releasers.conf b/.tito/releasers.conf new file mode 120000 index 0000000..867c32f --- /dev/null +++ b/.tito/releasers.conf @@ -0,0 +1 @@ +../../tito_libs/releasers.conf \ No newline at end of file diff --git a/.tito/tito.props b/.tito/tito.props index eab3f19..fb351a8 100644 --- a/.tito/tito.props +++ b/.tito/tito.props @@ -1,5 +1,6 @@ [buildconfig] -builder = tito.builder.Builder -tagger = tito.tagger.VersionTagger +builder = fws.builder.GitLfsBuilder +tagger = tito.tagger.ReleaseTagger changelog_do_not_remove_cherrypick = 0 changelog_format = %s (%ae) +lib_dir = ../tito_libs diff --git a/LWP-Protocol-connect-6.09.tar.gz b/LWP-Protocol-connect-6.09.tar.gz new file mode 100644 index 0000000..377c9d5 --- /dev/null +++ b/LWP-Protocol-connect-6.09.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9f252394775e23aa42c3176611e5930638ab528d5190110b4731aa5b0bf35a15 +size 15208 diff --git a/perl-LWP-Protocol-connect.spec b/perl-LWP-Protocol-connect.spec new file mode 100644 index 0000000..9a2e203 --- /dev/null +++ b/perl-LWP-Protocol-connect.spec @@ -0,0 +1,65 @@ +Name: perl-LWP-Protocol-connect +Version: 6.09 +Release: 0.beta1%{?dist} +Summary: Provides HTTP/CONNECT proxy support for LWP::UserAgent +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/LWP-Protocol-connect/ +Source0: http://www.cpan.org/authors/id/B/BE/BENNING/LWP-Protocol-connect-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(HTTP::Request) +BuildRequires: perl(IO::Socket::SSL) +BuildRequires: perl(LWP::Protocol) +BuildRequires: perl(LWP::Protocol::http) +BuildRequires: perl(LWP::Protocol::https) +BuildRequires: perl(LWP::UserAgent) +BuildRequires: perl(Test::Exception) +BuildRequires: perl(Test::More) +BuildRequires: perl(URI::http) +Requires: perl(HTTP::Request) +Requires: perl(IO::Socket::SSL) +Requires: perl(LWP::Protocol) +Requires: perl(LWP::Protocol::http) +Requires: perl(LWP::Protocol::https) +Requires: perl(LWP::UserAgent) +Requires: perl(URI::http) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +The LWP::Protocol::connect module provides support for using https over a +proxy via the HTTP/CONNECT method. + +%prep +%setup -q -n LWP-Protocol-connect-%{version} + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT + +make pure_install PERL_INSTALL_ROOT=$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 dist.ini LICENSE META.json README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Wed Nov 28 2018 Daniel Berteaud 6.09-1 +- First build (created with cpanspec)