Accepting request 327297 from devel:languages:perl:autoupdate

automatic update

OBS-URL: https://build.opensuse.org/request/show/327297
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-HTTP-Recorder?expand=0&rev=2
This commit is contained in:
Stephan Kulow
2015-08-27 10:17:58 +00:00
committed by Git OBS Bridge
parent 3f7a8c345a
commit cb3db8106c
5 changed files with 53 additions and 56 deletions

View File

@@ -1,9 +1,7 @@
# vim: set sw=4 ts=4 et nu:
#
# spec file for package perl-HTTP-Recorder
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2012 Pascal Bleser <pascal.bleser@opensuse.org>
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,86 +16,56 @@
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
Name: perl-HTTP-Recorder
Version: 0.06
Version: 0.07
Release: 0
Summary: Record interaction with websites
License: GPL-2.0+ or Artistic-1.0
%define cpan_name HTTP-Recorder
Summary: Record Interaction with Websites
License: CHECK(GPL-1.0+ or Artistic-1.0)
Group: Development/Libraries/Perl
Source: http://search.cpan.org/CPAN/authors/id/S/SE/SEMUELF/HTTP-Recorder-%{version}.tar.gz
Url: http://search.cpan.org/dist/HTTP-Recorder
Url: http://search.cpan.org/dist/HTTP-Recorder/
Source0: http://www.cpan.org/authors/id/S/SE/SEMUELF/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires: make
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Getopt::Long)
BuildRequires: perl(HTML::Parser)
BuildRequires: perl(HTML::TokeParser)
BuildRequires: perl(HTTP::Proxy)
BuildRequires: perl(HTTP::Request::Params)
BuildRequires: perl(LWP::UserAgent)
BuildRequires: perl(Pod::Usage)
BuildRequires: perl(URI::Escape)
BuildRequires: perl(URI::QueryParam)
Requires: perl(Getopt::Long)
Requires: perl(HTML::Parser)
Requires: perl(HTML::TokeParser)
Requires: perl(HTTP::Proxy)
Requires: perl(HTTP::Request::Params)
Requires: perl(LWP::UserAgent)
Requires: perl(Pod::Usage)
Requires: perl(URI::Escape)
Requires: perl(URI::QueryParam)
%if 0%{?suse_version} >= 1120
BuildArch: noarch
%endif
%{perl_requires}
%description
Perl module to record interaction with websites, including a proxy.
%package -n httprecorder
Summary: Proxy to record HTTP Interaction with Websites
Group: Productivity/Networking/Web/Proxy
Requires: %{name} = %{version}
%description -n httprecorder
Quick script for using HTTP::Recorder module.
record interaction with websites
%prep
%setup -q -n "HTTP-Recorder-%{version}"
%__sed -i '/^auto_install/d' Makefile.PL
find . -type f -exec %__chmod 0644 {} \;
find . -type f -name '*.pm' -exec %__sed -i 's/\r$//' {} \;
%__sed -i 's/\r$//' CHANGES bin/httprecorder
%setup -q -n %{cpan_name}-%{version}
%build
%__perl Makefile.PL PREFIX="%{_prefix}"
%__make %{?_smp_flags}
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
%check
%{__make} test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%check
%__make test
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files
%defattr(-,root,root)
%files -f %{name}.files
%defattr(-,root,root,755)
%doc CHANGES README
%dir %{perl_vendorlib}/HTTP
%{perl_vendorlib}/HTTP/Recorder.pm
%{perl_vendorlib}/HTTP/Recorder
%doc %{perl_man3dir}/HTTP::Recorder.%{perl_man3ext}%{ext_man}
%files -n httprecorder
%defattr(-,root,root)
%{_bindir}/httprecorder
%doc %{_mandir}/man1/httprecorder.1*
%changelog