Blame golang-github-gorilla-mux.spec

48862f6
%global debug_package   %{nil}
41a3b1e
%global import_path     github.com/gorilla/mux
922e0c7
%global gopath          %{_datadir}/gocode
41a3b1e
%global commit          e718e932ee606838744df844eb75064959eb74bc
41a3b1e
%global shortcommit     %(c=%{commit}; echo ${c:0:7})
41a3b1e
922e0c7
Name:           golang-github-gorilla-mux
41a3b1e
Version:        0
a8889de
Release:        0.11.git%{shortcommit}%{?dist}
41a3b1e
Summary:        A powerful URL router and dispatcher for golang
41a3b1e
License:        BSD
41a3b1e
URL:            http://www.gorillatoolkit.org/pkg/mux
41a3b1e
Source0:        https://github.com/gorilla/mux/archive/%{commit}/mux-%{shortcommit}.tar.gz
bdd5546
%if 0%{?fedora} >= 19 || 0%{?rhel} >= 7
bdd5546
BuildArch:      noarch
bdd5546
%else
48862f6
ExclusiveArch:  %{ix86} x86_64 %{arm}
bdd5546
%endif
41a3b1e
41a3b1e
%description
41a3b1e
Package gorilla/mux implements a request router and dispatcher.
41a3b1e
41a3b1e
The name mux stands for "HTTP request multiplexer". Like the standard
41a3b1e
http.ServeMux, mux.Router matches incoming requests against a list of
41a3b1e
registered routes and calls a handler for the route that matches the URL or
41a3b1e
other conditions.
41a3b1e
41a3b1e
%package devel
a8889de
Requires:       golang
a8889de
Requires:       golang(github.com/gorilla/context)
41a3b1e
Summary:        A powerful URL router and dispatcher for golang
30e68ca
Provides:       golang(%{import_path}) = %{version}-%{release}
41a3b1e
41a3b1e
%description devel
922e0c7
Package gorilla/mux implements a request router and dispatcher.
922e0c7
922e0c7
The name mux stands for "HTTP request multiplexer". Like the standard
922e0c7
http.ServeMux, mux.Router matches incoming requests against a list of
922e0c7
registered routes and calls a handler for the route that matches the URL or
922e0c7
other conditions.
922e0c7
922e0c7
This package contains library source intended for building other packages
922e0c7
which use gorilla/mux.
922e0c7
41a3b1e
41a3b1e
%prep
922e0c7
%setup -n %setup -n mux-%{commit}
41a3b1e
41a3b1e
%build
41a3b1e
41a3b1e
%install
922e0c7
install -d %{buildroot}/%{gopath}/src/%{import_path}
922e0c7
cp -av *.go %{buildroot}/%{gopath}/src/%{import_path}
922e0c7
41a3b1e
41a3b1e
%files devel
41a3b1e
%defattr(-,root,root,-)
922e0c7
%doc LICENSE README.md
922e0c7
%dir %attr(755,root,root) %{gopath}
922e0c7
%dir %attr(755,root,root) %{gopath}/src
922e0c7
%dir %attr(755,root,root) %{gopath}/src/github.com
922e0c7
%dir %attr(755,root,root) %{gopath}/src/github.com/gorilla
922e0c7
%dir %attr(755,root,root) %{gopath}/src/github.com/gorilla/mux
922e0c7
%{gopath}/src/%{import_path}/*.go
41a3b1e
41a3b1e
%changelog
a8889de
* Fri Jan 17 2014 Lokesh Mandvekar <lsm5@redhat.com> 0-0.11.gite718e93
a8889de
- revert golang >= 1.2 version requirement
a8889de
f552aa6
* Wed Jan 15 2014 Lokesh Mandvekar <lsm5@redhat.com> 0-0.10.gite718e93
f552aa6
- require golang 1.2 and later
f552aa6
30e68ca
* Wed Oct 16 2013 Lokesh Mandvekar <lsm5@redhat.com> 0-0.9.gite718e93
30e68ca
- double quotes removed from provides and br
30e68ca
bdd5546
* Tue Oct 08 2013 Lokesh Mandvekar <lsm5@redhat.com> 0-0.8.gite718e93
bdd5546
- noarch for f19+ and rhel7+, exclusivearch otherwise
bdd5546
48862f6
* Mon Oct 07 2013 Lokesh Mandvekar <lsm5@redhat.com> 0-0.7.gite718e93
48862f6
- exclusivearch as per golang package
48862f6
- debug_package nil
48862f6
922e0c7
* Sun Sep 22 2013 Matthew Miller <mattdm@fedoraproject.org> 0-0.6.gite718e93
922e0c7
- install just the source code for devel package
922e0c7
41a3b1e
* Tue Sep 17 2013 Lokesh Mandvekar <lsm5@redhat.com> 0-0.5.gite718e93
41a3b1e
- Version format changed
41a3b1e
- docdir changed
41a3b1e
- debuginfo no longer generated
41a3b1e
- package owns all directories in import_path
41a3b1e
41a3b1e
* Mon Sep 16 2013 Lokesh Mandvekar <lsm5@redhat.com> gite718e93-4
41a3b1e
- only devel package generated
41a3b1e
- Provides moved to devel package
41a3b1e
41a3b1e
* Tue Sep 10 2013 Lokesh Mandvekar <lsm5@redhat.com> gite718e93-3
41a3b1e
- Depends on golang("github.com/gorilla/context"), not golang directly
41a3b1e
- Pkg archives handled (thanks to Vincent Batts (vbatts@redhat.com)
41a3b1e
- Devel package generated
41a3b1e
41a3b1e
* Wed Aug 28 2013 Lokesh Mandvekar <lsm5@redhat.com> 0.0.1-2
41a3b1e
- Fixed permissions
41a3b1e
41a3b1e
* Mon Aug 26 2013 Lokesh Mandvekar <lsm5@redhat.com> 0.0.1-1
41a3b1e
- Initial fedora package