[golang-bitbucket-ww-goautoneg/f20] First package for Fedora - resolves: #1198803
Jan Chaloupka
jchaloup at fedoraproject.org
Wed Mar 4 22:23:29 UTC 2015
commit bd675608ad7683bbbebae6864ecfaa5ac8c38927
Author: Jan Chaloupka <jchaloup at redhat.com>
Date: Wed Mar 4 23:16:35 2015 +0100
First package for Fedora
- resolves: #1198803
.gitignore | 1 +
golang-bitbucket-ww-goautoneg.spec | 60 ++++++++++++++++++++++++
move-license-to-LICENSE.patch | 95 ++++++++++++++++++++++++++++++++++++++
sources | 1 +
4 files changed, 157 insertions(+)
---
diff --git a/.gitignore b/.gitignore
index e69de29..47a3761 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/75cd24fc2f2c.zip
diff --git a/golang-bitbucket-ww-goautoneg.spec b/golang-bitbucket-ww-goautoneg.spec
new file mode 100644
index 0000000..7055f01
--- /dev/null
+++ b/golang-bitbucket-ww-goautoneg.spec
@@ -0,0 +1,60 @@
+%global debug_package %{nil}
+%global provider bitbucket
+%global provider_tld org
+%global project ww
+%global repo goautoneg
+# https://bitbucket.org/ww/goautoneg
+%global import_path %{provider}.%{provider_tld}/%{project}/%{repo}
+%global commit 75cd24fc2f2c2a2088577d12123ddee5f54e0675
+%global shortcommit %(c=%{commit}; echo ${c:0:12})
+
+Name: golang-%{provider}-%{project}-%{repo}
+Version: 0
+Release: 0.1.git%{shortcommit}%{?dist}
+Summary: HTTP Content-Type Autonegotiation
+License: BSD
+URL: https://%{import_path}
+Source0: https://%{import_path}/get/%{shortcommit}.zip
+Patch0: move-license-to-LICENSE.patch
+%if 0%{?fedora} >= 19 || 0%{?rhel} >= 7
+BuildArch: noarch
+%else
+ExclusiveArch: %{ix86} x86_64 %{arm}
+%endif
+
+%description
+%{summary}
+
+%package devel
+BuildRequires: golang >= 1.2.1-3
+Requires: golang >= 1.2.1-3
+Summary: %{summary}
+
+%description devel
+%{summary}
+
+This package contains library source intended for
+building other packages which use %{project}/%{repo}.
+
+%prep
+%setup -q -n %{project}-%{repo}-%{shortcommit}
+%patch0 -p1
+
+%build
+
+%install
+install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
+cp -pav *.go %{buildroot}/%{gopath}/src/%{import_path}/
+
+%check
+GOPATH=%{buildroot}/%{gopath}:%{gopath} go test %{import_path}
+
+%files devel
+%doc README.txt LICENSE
+%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
+%{gopath}/src/%{import_path}
+
+%changelog
+* Wed Mar 04 2015 jchaloup <jchaloup at redhat.com> - 0-0.1.git75cd24fc2f2c
+- First package for Fedora
+ resolves: #1198803
diff --git a/move-license-to-LICENSE.patch b/move-license-to-LICENSE.patch
new file mode 100644
index 0000000..e281a8e
--- /dev/null
+++ b/move-license-to-LICENSE.patch
@@ -0,0 +1,95 @@
+From 4d48cc874df7793e1bcdf4774e54433ab0851c3a Mon Sep 17 00:00:00 2001
+From: Jan Chaloupka <jchaloup at redhat.com>
+Date: Wed, 4 Mar 2015 21:28:18 +0100
+Subject: [PATCH] move license to LICENSE
+
+---
+ LICENSE | 32 ++++++++++++++++++++++++++++++++
+ README.txt | 32 --------------------------------
+ 2 files changed, 32 insertions(+), 32 deletions(-)
+ create mode 100644 LICENSE
+
+diff --git a/LICENSE b/LICENSE
+new file mode 100644
+index 0000000..f72a92e
+--- /dev/null
++++ b/LICENSE
+@@ -0,0 +1,32 @@
++Copyright (c) 2011, Open Knowledge Foundation Ltd.
++All rights reserved.
++
++Redistribution and use in source and binary forms, with or without
++modification, are permitted provided that the following conditions are
++met:
++
++ Redistributions of source code must retain the above copyright
++ notice, this list of conditions and the following disclaimer.
++
++ Redistributions in binary form must reproduce the above copyright
++ notice, this list of conditions and the following disclaimer in
++ the documentation and/or other materials provided with the
++ distribution.
++
++ Neither the name of the Open Knowledge Foundation Ltd. nor the
++ names of its contributors may be used to endorse or promote
++ products derived from this software without specific prior written
++ permission.
++
++THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
++"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
++LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
++A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
++HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
++SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
++LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
++DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
++THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
++(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
++OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
++
+diff --git a/README.txt b/README.txt
+index 7723656..d4ab93d 100644
+--- a/README.txt
++++ b/README.txt
+@@ -8,38 +8,6 @@ HTTP Content-Type Autonegotiation.
+ The functions in this package implement the behaviour specified in
+ http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html
+
+-Copyright (c) 2011, Open Knowledge Foundation Ltd.
+-All rights reserved.
+-
+-Redistribution and use in source and binary forms, with or without
+-modification, are permitted provided that the following conditions are
+-met:
+-
+- Redistributions of source code must retain the above copyright
+- notice, this list of conditions and the following disclaimer.
+-
+- Redistributions in binary form must reproduce the above copyright
+- notice, this list of conditions and the following disclaimer in
+- the documentation and/or other materials provided with the
+- distribution.
+-
+- Neither the name of the Open Knowledge Foundation Ltd. nor the
+- names of its contributors may be used to endorse or promote
+- products derived from this software without specific prior written
+- permission.
+-
+-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+-"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+-LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+-A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+-HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+-SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+-LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+-THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+-OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+-
+
+ FUNCTIONS
+
+--
+1.9.3
+
diff --git a/sources b/sources
index e69de29..8090cdf 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+3a94252d10ab8590675792afeef2a183 75cd24fc2f2c.zip
More information about the scm-commits
mailing list