# 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 # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # Please submit bugfixes or comments via http://bugs.opensuse.org/ Name: perl-HTTP-Recorder Version: 0.06 Release: 0 Summary: Record interaction with websites License: GPL-2.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 BuildRoot: %{_tmppath}/%{name}-%{version}-build %{perl_requires} BuildRequires: make 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 %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. %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 %build %__perl Makefile.PL PREFIX="%{_prefix}" %__make %{?_smp_flags} %install %perl_make_install %perl_process_packlist %check %__make test %clean %{?buildroot:%__rm -rf "%{buildroot}"} %files %defattr(-,root,root) %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