diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8094d55 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/go-org-0.1.2.tar.gz diff --git a/golang-github-niklasfasching-org.spec b/golang-github-niklasfasching-org.spec new file mode 100644 index 0000000..16718d2 --- /dev/null +++ b/golang-github-niklasfasching-org.spec @@ -0,0 +1,72 @@ +# Generated by go2rpm 1 +%bcond_without check + +# https://github.com/niklasfasching/go-org +%global goipath github.com/niklasfasching/go-org +Version: 0.1.2 + +%gometa + +%global common_description %{expand: +Org mode parser with html & pretty printed org rendering.} + +%global golicenses LICENSE +%global godocs README.org + +Name: %{goname} +Release: 1%{?dist} +Summary: Org mode parser with html & pretty printed org rendering + +License: MIT +URL: %{gourl} +Source0: %{gosource} + +BuildRequires: golang(github.com/alecthomas/chroma) +BuildRequires: golang(github.com/alecthomas/chroma/formatters/html) +BuildRequires: golang(github.com/alecthomas/chroma/lexers) +BuildRequires: golang(github.com/alecthomas/chroma/styles) +BuildRequires: golang(golang.org/x/net/html) +BuildRequires: golang(golang.org/x/net/html/atom) + +%if %{with check} +# Tests +BuildRequires: golang(github.com/pmezard/go-difflib/difflib) +%endif + +%description +%{common_description} + +%package -n go-org +Summary: Org mode parser with html & pretty printed org rendering + +%description -n go-org +%{common_description} + +%gopkg + +%prep +%goprep + +%build +%gobuild -o %{gobuilddir}/bin/go-org %{goipath} + +%install +%gopkginstall +install -m 0755 -vd %{buildroot}%{_bindir} +install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ + +%if %{with check} +%check +%gocheck +%endif + +%files -n go-org +%license LICENSE +%doc README.org +%{_bindir}/* + +%gopkgfiles + +%changelog +* Sun Aug 18 19:06:06 EDT 2019 Elliott Sales de Andrade - 0.1.2-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..7b311b7 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (go-org-0.1.2.tar.gz) = 8d36162774eaa965266e88122993abceff41666d108b603be89583c667f10d41de21342ac6f2a59019725ec9b74bbb4f51cb6bf51279983b511fe39a340fa4ae