|
|
d7ff908 |
%global debug_package %{nil}
|
|
|
d7ff908 |
%global provider github
|
|
|
d7ff908 |
%global provider_tld com
|
|
|
d7ff908 |
%global project glacjay
|
|
|
d7ff908 |
%global repo goini
|
|
|
d7ff908 |
%global import_path %{provider}.%{provider_tld}/%{project}/%{repo}
|
|
|
d7ff908 |
%global commit 5261baf26f41eeffae5fd27be784302e389b7699
|
|
|
d7ff908 |
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
|
|
d7ff908 |
# github.com/rakyll/goini has no license.
|
|
|
d7ff908 |
# But it is forked from github.com/glacjay/goini and unchanged.
|
|
|
d7ff908 |
# Lets provide these source codes as well.
|
|
|
d7ff908 |
%global rcommit 907cca0f578a5316fb864ec6992dc3d9730ec58c
|
|
|
d7ff908 |
%global rscommit %(c=%{rcommit}; echo ${c:0:7})
|
|
|
d7ff908 |
%global rimport_path %{provider}.%{provider_tld}/rakyll/goini
|
|
|
d7ff908 |
|
|
|
d7ff908 |
Name: golang-%{provider}-%{project}-%{repo}
|
|
|
d7ff908 |
Version: 0
|
|
|
d7ff908 |
Release: 0.1.git%{shortcommit}%{?dist}
|
|
|
d7ff908 |
Summary: INI file parser in go
|
|
|
d7ff908 |
License: MIT
|
|
|
d7ff908 |
URL: https://%{import_path}
|
|
|
d7ff908 |
Source0: https://%{import_path}/archive/%{rcommit}/%{repo}-%{rscommit}.tar.gz
|
|
|
d7ff908 |
Source1: https://%{import_path}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
|
|
|
d7ff908 |
%if 0%{?fedora} >= 19 || 0%{?rhel} >= 7
|
|
|
d7ff908 |
BuildArch: noarch
|
|
|
d7ff908 |
%else
|
|
|
d7ff908 |
ExclusiveArch: %{ix86} x86_64 %{arm}
|
|
|
d7ff908 |
%endif
|
|
|
d7ff908 |
|
|
|
d7ff908 |
%description
|
|
|
d7ff908 |
%{summary}
|
|
|
d7ff908 |
|
|
|
d7ff908 |
%package devel
|
|
|
d7ff908 |
BuildRequires: golang >= 1.2.1-3
|
|
|
d7ff908 |
Requires: golang >= 1.2.1-3
|
|
|
d7ff908 |
Summary: %{summary}
|
|
|
d7ff908 |
Provides: golang(%{import_path}) = %{version}-%{release}
|
|
|
d7ff908 |
Provides: golang(%{rimport_path}) = %{version}-%{release}
|
|
|
d7ff908 |
|
|
|
d7ff908 |
%description devel
|
|
|
d7ff908 |
%{summary}
|
|
|
d7ff908 |
|
|
|
d7ff908 |
This package contains library source intended for
|
|
|
d7ff908 |
building other packages which use %{project}/%{repo}.
|
|
|
d7ff908 |
|
|
|
d7ff908 |
%prep
|
|
|
d7ff908 |
%setup -q -n %{repo}-%{rcommit}
|
|
|
d7ff908 |
%setup -q -n %{repo}-%{commit} -T -b 1
|
|
|
d7ff908 |
|
|
|
d7ff908 |
%build
|
|
|
d7ff908 |
|
|
|
d7ff908 |
%install
|
|
|
d7ff908 |
install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
|
|
|
d7ff908 |
cp -pav *.go %{buildroot}/%{gopath}/src/%{import_path}/
|
|
|
d7ff908 |
cp -pav example.ini empty.ini %{buildroot}/%{gopath}/src/%{import_path}/
|
|
|
d7ff908 |
pushd ../%{repo}-%{rcommit}
|
|
|
d7ff908 |
install -d -p %{buildroot}/%{gopath}/src/%{rimport_path}/
|
|
|
d7ff908 |
cp -pav *.go %{buildroot}/%{gopath}/src/%{rimport_path}/
|
|
|
d7ff908 |
|
|
|
d7ff908 |
%check
|
|
|
d7ff908 |
#--- FAIL: TestString (0.00 seconds)
|
|
|
d7ff908 |
# ini_test.go:167: Dict cannot be stringified as expected.
|
|
|
d7ff908 |
|
|
|
d7ff908 |
%files devel
|
|
|
d7ff908 |
%doc LICENSE.txt
|
|
|
d7ff908 |
%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
|
|
|
d7ff908 |
%{gopath}/src/%{import_path}
|
|
|
d7ff908 |
%dir %{gopath}/src/%{provider}.%{provider_tld}/rakyll
|
|
|
d7ff908 |
%{gopath}/src/%{rimport_path}
|
|
|
d7ff908 |
|
|
|
d7ff908 |
|
|
|
d7ff908 |
%changelog
|
|
|
d7ff908 |
* Tue Jan 13 2015 jchaloup <jchaloup@redhat.com> - 0-0.1.git5261baf
|
|
|
d7ff908 |
- First package for Fedora
|
|
|
d7ff908 |
resolves: #1177486
|