LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File go-go-geoip.spec of Package go-go-geoip (Project devel:languages:go)

#
# spec file for package go-go-geoip
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) , 2011, Sascha Peilicke <saschpe@gmx.de>
#
# 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:           go-go-geoip
Version:        0.0.0+git20110702
Release:        0
Summary:        Simple libGeoIP binding for Go
License:        WTFPL
Group:          Development/Languages/Other
Url:            https://github.com/stiletto/go-geoip
Source:         go-geoip-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM fix undefined GeoIP_open
Patch:		go-geoip-ldflags.patch
BuildRequires:  go-devel
BuildRequires:	libGeoIP-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%{go_provides}
%{go_requires}
%{go_recommends}

%description
Simple libGeoIP binding for the Go programming language.

%godoc_package

%prep
%setup -q -n go-geoip
%patch -p1
rm -rf Makefile
mkdir -p examples
mv suck-cocks.go examples

%build
%goprep geoip
%gobuild

%install
%goinstall
%godoc

%check
%gotest geoip

%files
%defattr(-,root,root,-)
%doc COPYING
%{go_contribdir}/*

%files doc
%defattr(-,root,root,-)
%{go_contribsrcdir}/*

%changelog