diff --git a/.gitignore b/.gitignore index dfc8338..44d3f7c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1 @@ -/mux-e718e93.tar.gz -/mux-136d54f.tar.gz +/mux-8096f47.tar.gz diff --git a/golang-github-gorilla-mux.spec b/golang-github-gorilla-mux.spec index 69b97d0..c2e0527 100644 --- a/golang-github-gorilla-mux.spec +++ b/golang-github-gorilla-mux.spec @@ -1,16 +1,20 @@ %global debug_package %{nil} -%global import_path github.com/gorilla/mux -%global gopath %{_datadir}/gocode -%global commit 136d54f81f00414c45c3c68dd47e98cc97519c5e +%global provider github +%global provider_tld com +%global project gorilla +%global repo mux +# https://github.com/gorilla/mux +%global import_path %{provider}.%{provider_tld}/%{project}/%{repo} +%global commit 8096f47503459bcc74d1f4c487b7e6e42e5746b5 %global shortcommit %(c=%{commit}; echo ${c:0:7}) -Name: golang-github-gorilla-mux +Name: golang-%{provider}-%{project}-%{repo} Version: 0 -Release: 0.15.git%{shortcommit}%{?dist} +Release: 0.16.git%{shortcommit}%{?dist} Summary: A powerful URL router and dispatcher for golang License: BSD URL: http://www.gorillatoolkit.org/pkg/mux -Source0: https://github.com/gorilla/mux/archive/%{commit}/mux-%{shortcommit}.tar.gz +Source0: https://%{import_path}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz BuildArch: noarch %description @@ -22,9 +26,9 @@ registered routes and calls a handler for the route that matches the URL or other conditions. %package devel -BuildRequires: golang +BuildRequires: golang >= 1.2.1-3 BuildRequires: golang(github.com/gorilla/context) -Requires: golang +Requires: golang >= 1.2.1-3 Requires: golang(github.com/gorilla/context) Summary: A powerful URL router and dispatcher for golang Provides: golang(%{import_path}) = %{version}-%{release} @@ -41,24 +45,27 @@ This package contains library source intended for building other packages which use gorilla/mux. %prep -%setup -n %setup -n mux-%{commit} +%setup -q -n %{repo}-%{commit} %build %install -install -d %{buildroot}/%{gopath}/src/%{import_path} -cp -av *.go %{buildroot}/%{gopath}/src/%{import_path} +install -d -p %{buildroot}/%{gopath}/src/%{import_path} +cp -pav *.go %{buildroot}/%{gopath}/src/%{import_path} %check GOPATH=%{gopath}:%{buildroot}/%{gopath} go test %{import_path} %files devel %doc LICENSE README.md -%dir %{gopath}/src/github.com/gorilla -%dir %{gopath}/src/github.com/gorilla/mux -%{gopath}/src/%{import_path}/*.go +%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project} +%{gopath}/src/%{import_path} %changelog +* Tue Apr 21 2015 jchaloup - 0-0.16.git8096f47 +- Bump to upstream 8096f47503459bcc74d1f4c487b7e6e42e5746b5 + related: #1001317 + * Thu Jul 31 2014 Lokesh Mandvekar - 0-0.15.git - do not own dirs owned by golang - archfulness and defattr for el6 handled separately diff --git a/sources b/sources index 08f2ed1..5f0bda0 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -09b6fc6485df4dff29435e0321264555 mux-136d54f.tar.gz +9b643adab0edea5dd1dc7a2951ed5216 mux-8096f47.tar.gz