From 319dcf8818e00ee5196f28d1e81ef4b2b79f9a451e01c33cbb821f9a471a8e85 Mon Sep 17 00:00:00 2001 From: Marcus Rueckert Date: Thu, 22 Oct 2015 23:25:30 +0000 Subject: [PATCH] - initial package OBS-URL: https://build.opensuse.org/package/show/server:dns/golang-github.com-abh-geoip?expand=0&rev=1 --- .gitattributes | 23 +++++++ .gitignore | 1 + ...h-geoip-0.0.0+git1445555561.e5f8ea0.tar.xz | 3 + golang-github.com-abh-geoip.changes | 5 ++ golang-github.com-abh-geoip.spec | 60 +++++++++++++++++++ 5 files changed, 92 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 github.com-abh-geoip-0.0.0+git1445555561.e5f8ea0.tar.xz create mode 100644 golang-github.com-abh-geoip.changes create mode 100644 golang-github.com-abh-geoip.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/github.com-abh-geoip-0.0.0+git1445555561.e5f8ea0.tar.xz b/github.com-abh-geoip-0.0.0+git1445555561.e5f8ea0.tar.xz new file mode 100644 index 0000000..24b3183 --- /dev/null +++ b/github.com-abh-geoip-0.0.0+git1445555561.e5f8ea0.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f8edc31b57d3e6b659ba85bf21162b457c569550fd605f7d2f0212f009f56303 +size 8580 diff --git a/golang-github.com-abh-geoip.changes b/golang-github.com-abh-geoip.changes new file mode 100644 index 0000000..3bc1d1c --- /dev/null +++ b/golang-github.com-abh-geoip.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Thu Oct 22 23:18:17 UTC 2015 - mrueckert@suse.de + +- initial package + diff --git a/golang-github.com-abh-geoip.spec b/golang-github.com-abh-geoip.spec new file mode 100644 index 0000000..efcd192 --- /dev/null +++ b/golang-github.com-abh-geoip.spec @@ -0,0 +1,60 @@ +# +# spec file for package golang-github.com-abh-geoip +# +# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +Name: golang-github.com-abh-geoip +Version: 0.0.0+git1445555561.e5f8ea0 +Release: 0 +%define mod_name github.com-abh-geoip +License: MIT +Summary: GeoIP API for Golang +Url: https://github.com/abh/geoip +Group: Development/Libraries/Go +Source: github.com-abh-geoip-%{version}.tar.xz +BuildRequires: golang-packaging +BuildRequires: GeoIP-devel +BuildRequires: pkgconfig +BuildRoot: %{_tmppath}/%{name}-%{version}-build +%{go_provides} +%description +This package wraps the libgeoip C library for access from Go (golang) + +%gosrc_package + +%prep +%setup -q -n %{mod_name}-%{version} + +%build +%goprep github.com/abh/geoip +%gobuild ... + +%install +%goinstall +%gosrc + +mv %{buildroot}%{_bindir}/{ex,%{name}-demo} + +%files +%defattr(-,root,root,-) +%doc README.md LICENSE +%{_bindir}/%{name}-demo +%{go_contribdir}/* + +%files source +%defattr(-,root,root,-) +%{go_contribsrcdir}/* + +%changelog