From 084ee8dc5fe04a2efbd24f7be141e81ea8dd4b00 Mon Sep 17 00:00:00 2001 From: Robert-André Mauchin Date: Oct 22 2018 16:39:57 +0000 Subject: Initial import (#1636497) --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3287de7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/martian-2.1.0.tar.gz diff --git a/golang-github-google-martian.spec b/golang-github-google-martian.spec new file mode 100644 index 0000000..35103e2 --- /dev/null +++ b/golang-github-google-martian.spec @@ -0,0 +1,72 @@ +# Run tests in check section +%bcond_without check + +# https://github.com/google/martian +%global goipath github.com/google/martian +Version: 2.1.0 + +%global common_description %{expand: +Martian Proxy is a programmable HTTP proxy designed to be used for testing. + +Martian is a great tool to use if you want to: + + - Verify that all (or some subset) of requests are secure + - Mock external services at the network layer + - Inject headers, modify cookies or perform other mutations of HTTP requests + and responses + - Verify that pingbacks happen when you think they should + - Unwrap encrypted traffic (requires install of CA certificate in browser) + +By taking advantage of Go cross-compilation, Martian can be deployed anywhere +that Go can target.} + +%gometa + +Name: %{goname} +Release: 1%{?dist} +Summary: Library for building custom HTTP/S proxies +License: ASL 2.0 +URL: %{gourl} +Source0: %{gosource} + +BuildRequires: golang(golang.org/x/net/websocket) + +%description +%{common_description} + + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel +%{common_description} + +This package contains library source intended for +building other packages which use import path with +%{goipath} prefix. + + +%prep +%forgeautosetup + + +%install +%goinstall + + +%if %{with check} +%check +%gochecks -t marbl -t static +%endif + + +%files devel -f devel.file-list +%license LICENSE +%doc README.md + + +%changelog +* Fri Oct 05 2018 Robert-André Mauchin - 2.1.0-1 +- First package for Fedora + diff --git a/sources b/sources new file mode 100644 index 0000000..bfdec6e --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (martian-2.1.0.tar.gz) = f0eba952ee39b5cbb1f0182710a5bd22b9043aa895b4fb7b2cedae51cd0dee3e06268beede151ae1d3af741834780b3bcf676aabccca4189e45110db967c9dde