[golang-github-gorilla-context/f20: 4/4] should work fine, no pkg archives installed

Lokesh Mandvekar lsm5 at fedoraproject.org
Sun Sep 22 05:56:13 UTC 2013


commit eef7e50c142aaa9368178ba13e2f2441729b5df5
Author: Lokesh Mandvekar <lsm5 at redhat.com>
Date:   Sun Sep 22 00:55:50 2013 -0500

    should work fine, no pkg archives installed
    
    Signed-off-by: Lokesh Mandvekar <lsm5 at redhat.com>

 golang-github-gorilla-context.spec |  117 ++++++++++++++++++++++++++++++++++++
 1 files changed, 117 insertions(+), 0 deletions(-)
---
diff --git a/golang-github-gorilla-context.spec b/golang-github-gorilla-context.spec
new file mode 100644
index 0000000..3d6f3db
--- /dev/null
+++ b/golang-github-gorilla-context.spec
@@ -0,0 +1,117 @@
+%global import_path     github.com/gorilla/context
+%global gopath          %{_datadir}/gocode
+%global commit          708054d61e5a2918b9f4e9700000ee611dcf03f5
+%global shortcommit     %(c=%{commit}; echo ${c:0:7})
+
+Name:           golang-github-gorilla-context
+Version:        0
+Release:        0.15.git%{shortcommit}%{?dist}
+Summary:        A golang registry for global request variables
+License:        BSD
+URL:            http://www.gorillatoolkit.org/pkg/context
+Source0:        https://%{import_path}/archive/%{commit}/context-%{shortcommit}.tar.gz
+BuildArch:      noarch
+
+%description
+Package gorilla/context stores values shared during a request lifetime.
+
+For example, a router can set variables extracted from the URL and later
+application handlers can access those values, or it can be used to store
+sessions values to be saved at the end of a request. There are several
+other common uses.
+
+%package devel
+Requires:       golang
+Summary:        A golang registry for global request variables
+Provides:       golang("%{import_path}") = %{version}-%{release}
+
+
+%description devel
+Package gorilla/context stores values shared during a request lifetime.
+
+For example, a router can set variables extracted from the URL and later
+application handlers can access those values, or it can be used to store
+sessions values to be saved at the end of a request. There are several
+other common uses.
+
+This package contains library source intended for building other packages
+which use gorilla/context.
+
+
+%prep
+%setup -n context-%{commit}
+
+%build
+
+%install
+install -d %{buildroot}/%{gopath}/src/%{import_path}
+cp -av *.go %{buildroot}/%{gopath}/src/%{import_path}
+
+
+%files devel
+%defattr(-,root,root,-)
+%doc LICENSE README.md
+%dir %attr(755,root,root) %{gopath}
+%dir %attr(755,root,root) %{gopath}/src
+%dir %attr(755,root,root) %{gopath}/src/github.com
+%dir %attr(755,root,root) %{gopath}/src/github.com/gorilla
+%dir %attr(755,root,root) %{gopath}/src/github.com/gorilla/context
+%{gopath}/src/%{import_path}/*.go
+
+
+%changelog
+* Sun Sep 22 2013 Matthew Miller <mattdm at fedoraproject.org> 0-0.15.git708054d
+- install just the source code for devel package
+
+* Tue Sep 17 2013 Lokesh Mandvekar <lsm5 at redhat.com> 0-0.14.git708054d
+- docdir unversioned
+
+
+* Tue Sep 17 2013 Lokesh Mandvekar <lsm5 at redhat.com> 0-0.13.git708054d
+- Version format changed
+
+* Mon Sep 16 2013 Lokesh Mandvekar <lsm5 at redhat.com> git708054d-12
+- debuginfo not generated, was empty to begin with
+- devel package buildrequires golang
+- package owns all directories in import_path
+
+* Mon Sep 16 2013 Lokesh Mandvekar <lsm5 at redhat.com> git708054d-11
+- Only devel package generated
+- docdir corrected
+- Provides moved to devel package
+
+* Thu Sep 12 2013 Lokesh Mandvekar <lsm5 at redhat.com> git708054d-10
+- package owns directories it creates
+- devel package requires golang
+
+* Wed Sep 11 2013 Lokesh Mandvekar <lsm5 at redhat.com> git708054d-9
+- rm from install removed
+
+* Tue Sep 10 2013 Lokesh Mandvekar <lsm5 at redhat.com> git708054d-8
+- cleanup in prep and build as per guidelines
+
+* Tue Sep 10 2013 Lokesh Mandvekar <lsm5 at redhat.com> git708054d-7
+- rpm builds under all circumstances
+- 
+* Mon Sep 09 2013 Lokesh Mandvekar <lsm5 at redhat.com> git708054d-6
+- Devel package summary corrected
+
+* Mon Sep 09 2013 Lokesh Mandvekar <lsm5 at redhat.com> git708054d-5
+- Installed files listed explicitly
+- Pkg archive directory issues solved (thanks to Vincent Batts)
+- Pkg archive files installed in devel package
+
+* Thu Aug 29 2013 Lokesh Mandvekar <lsm5 at redhat.com> git708054d-4
+- variables introduced: pkgarch, GOPATH and so on- arch specific .a archives installed
+- credit to Vincent Batts (vbatts at redhat.com) for golang-* help
+
+* Thu Aug 29 2013 Lokesh Mandvekar <lsm5 at redhat.com> 0.0.1-3
+- global debug lines removed
+- package name changed
+- source file installation location updated
+
+* Wed Aug 28 2013 Lokesh Mandvekar <lsm5 at redhat.com> 0.0.1-2
+- Fixed permissions
+
+* Mon Aug 26 2013 Lokesh Mandvekar <lsm5 at redhat.com> 0.0.1-1
+- Initial fedora package


More information about the scm-commits mailing list