diff --git a/.gitignore b/.gitignore index e69de29..4bf09de 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/text-6807e77.tar.gz diff --git a/golang-github-kr-text.spec b/golang-github-kr-text.spec new file mode 100644 index 0000000..d8a0895 --- /dev/null +++ b/golang-github-kr-text.spec @@ -0,0 +1,81 @@ +%global debug_package %{nil} +%global import_path github.com/kr/text +%global commit 6807e777504f54ad073ecef66747de158294b639 +%global shortcommit %(c=%{commit}; echo ${c:0:7}) + +Name: golang-github-kr-text +Version: 0 +Release: 0.3.git%{shortcommit}%{?dist} +Summary: Go package for manipulating paragraphs of text +License: MIT +URL: http://godoc.org/%{import_path} +Source0: https://%{import_path}/archive/%{commit}/text-%{shortcommit}.tar.gz +BuildArch: noarch + +%description +%{summary} + +%package devel +BuildRequires: golang >= 1.2.1-3 +BuildRequires: golang(github.com/kr/pty) +Requires: golang >= 1.2.1-3 +Summary: Go package for manipulating paragraphs of text +Provides: golang(%{import_path}) = %{version}-%{release} +Provides: golang(%{import_path}/colwriter) = %{version}-%{release} +Provides: golang(%{import_path}/mc) = %{version}-%{release} + +%description devel +%{summary} + +This package contains the library source intended for building other packages +which use kr/text. + +%prep +%setup -q -n text-%{commit} + +%build + +%install +chmod 664 wrap.go +install -d %{buildroot}/%{gopath}/src/%{import_path} +cp -pav *.go %{buildroot}/%{gopath}/src/%{import_path} + +for d in colwriter mc +do + mv $d/Readme Readme-$d + cp -pav $d %{buildroot}/%{gopath}/src/%{import_path}/ +done + +%check +GOPATH=%{gopath}:%{buildroot}%{gopath} go test %{import_path} +GOPATH=%{gopath}:%{buildroot}%{gopath} go test %{import_path}/colwriter +GOPATH=%{gopath}:%{buildroot}%{gopath} go test %{import_path}/mc + +%files devel +%doc License Readme Readme-colwriter Readme-mc +%dir %{gopath}/src/github.com/kr +%dir %{gopath}/src/%{import_path} +%dir %{gopath}/src/%{import_path}/colwriter +%dir %{gopath}/src/%{import_path}/mc +%{gopath}/src/%{import_path}/*.go +%{gopath}/src/%{import_path}/colwriter/*.go +%{gopath}/src/%{import_path}/mc/*.go + +%changelog +* Fri Sep 19 2014 Jan Chaloupka - 0-0.3.git6807e77 +- add golang version with necessary golang macros +- quiet setup + +* Thu Sep 11 2014 Lokesh Mandvekar - 0-0.2.git6807e77 +- gopath defined in golang package +- preserve timestamps while copying source files +- attrs not needed +- devel description update +- include check section +- get rid of files listed twice warning for doc files +- noarch +- needs kr/pty as BR +- chmod wrap.go to 644 (needs to be upstreamed) + +* Wed Aug 06 2014 Adam Miller - 0.1.git6807e77 +- First package for Fedora. diff --git a/sources b/sources index e69de29..72cc0c5 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +635c99182e7f0ea2fe6e682da181056f text-6807e77.tar.gz