[golang-github-russross-blackfriday] include fedora/rhel arch conditionals
by Lokesh Mandvekar
commit 9b923a58c1e21f83b58dde601021288664fa1dca
Author: Lokesh Mandvekar <lsm5(a)fedoraproject.org>
Date: Fri Oct 31 09:54:05 2014 -0700
include fedora/rhel arch conditionals
Signed-off-by: Lokesh Mandvekar <lsm5(a)fedoraproject.org>
golang-github-russross-blackfriday.spec | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/golang-github-russross-blackfriday.spec b/golang-github-russross-blackfriday.spec
index 8125fa8..f965660 100644
--- a/golang-github-russross-blackfriday.spec
+++ b/golang-github-russross-blackfriday.spec
@@ -7,12 +7,16 @@
Name: golang-%{provider}-%{project}-%{repo}
Version: 1.2
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Markdown processor implemented in Go
License: BSD
URL: https://%{import_path}
Source0: https://%{import_path}/archive/v%{version}.tar.gz
+%if 0%{?fedora} >= 21 || 0%{?rhel} >= 7
BuildArch: noarch
+%else
+ExclusiveArch: %{ix86} x86_64 %{arm}
+%endif
%description
%{summary}
@@ -54,6 +58,9 @@ GOPATH=%{gopath}:%{buildroot}%{gopath} go test %{import_path}
%{gopath}/src/%{import_path}/*/*
%changelog
+* Fri Oct 31 2014 Lokesh Mandvekar <lsm5(a)fedoraproject.org> - 1.2-3
+- include fedora/rhel arch conditionals
+
* Mon Oct 27 2014 Lokesh Mandvekar <lsm5(a)fedoraproject.org> - 1.2-2
- runtime requires go.net/html
9 years, 6 months
[golang-github-cpuguy83-go-md2man] expand arches instead of go_arches
by Lokesh Mandvekar
commit 659867931c9bd3bc88d17ccb591c5233acf1720e
Author: Lokesh Mandvekar <lsm5(a)fedoraproject.org>
Date: Fri Oct 31 09:02:46 2014 -0700
expand arches instead of go_arches
Signed-off-by: Lokesh Mandvekar <lsm5(a)fedoraproject.org>
golang-github-cpuguy83-go-md2man.spec | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/golang-github-cpuguy83-go-md2man.spec b/golang-github-cpuguy83-go-md2man.spec
index 9eaf4e7..b56ec04 100644
--- a/golang-github-cpuguy83-go-md2man.spec
+++ b/golang-github-cpuguy83-go-md2man.spec
@@ -12,7 +12,7 @@ Summary: Process markdown into manpages
License: MIT
URL: https://%{import_path}
Source0: https://%{import_path}/archive/v%{version}.tar.gz
-ExclusiveArch: %{go_arches}
+ExclusiveArch: %{ix86} x86_64 %{arm}
Provides: %{repo} = %{version}-%{release}
%description
9 years, 6 months
[golang-github-cpuguy83-go-md2man] Resolves: rhbz#1156492 - initial upload
by Lokesh Mandvekar
commit c0f88ed1dd6e7086ec17a55647a7e8a51f7ebbbc
Author: Lokesh Mandvekar <lsm5(a)fedoraproject.org>
Date: Fri Oct 31 09:00:45 2014 -0700
Resolves: rhbz#1156492 - initial upload
Signed-off-by: Lokesh Mandvekar <lsm5(a)fedoraproject.org>
.gitignore | 1 +
golang-github-cpuguy83-go-md2man.spec | 81 +++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 83 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..21d854c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/v1.tar.gz
diff --git a/golang-github-cpuguy83-go-md2man.spec b/golang-github-cpuguy83-go-md2man.spec
new file mode 100644
index 0000000..9eaf4e7
--- /dev/null
+++ b/golang-github-cpuguy83-go-md2man.spec
@@ -0,0 +1,81 @@
+%global debug_package %{nil}
+%global provider github
+%global provider_tld com
+%global project cpuguy83
+%global repo go-md2man
+%global import_path %{provider}.%{provider_tld}/%{project}/%{repo}
+
+Name: golang-%{provider}-%{project}-%{repo}
+Version: 1
+Release: 2%{?dist}
+Summary: Process markdown into manpages
+License: MIT
+URL: https://%{import_path}
+Source0: https://%{import_path}/archive/v%{version}.tar.gz
+ExclusiveArch: %{go_arches}
+Provides: %{repo} = %{version}-%{release}
+
+%description
+%{repo} is a golang tool using blackfriday to process markdown into
+manpages.
+
+%package devel
+BuildRequires: golang >= 1.2.1-3
+BuildRequires: golang(github.com/russross/blackfriday)
+Requires: golang >= 1.2.1-3
+BuildArch: noarch
+Summary: A golang registry for global request variables
+Provides: golang(%{import_path}) = %{version}-%{release}
+Provides: golang(%{import_path}/mangen) = %{version}-%{release}
+
+%description devel
+%{repo} is a golang tool using blackfriday to process markdown into
+manpages.
+
+This package contains library source intended for building other packages
+which use %{project}/%{repo}.
+
+%prep
+%setup -qn %{repo}-%{version}
+
+%build
+mkdir -p _build/src/%{provider}.%{provider_tld}/%{project}
+ln -s $(pwd) ./_build/src/%{import_path}
+
+export GOPATH=$(pwd)/_build:%{gopath}
+pushd $(pwd)/_build/src
+go build %{import_path}
+popd
+
+%install
+install -d -p %{buildroot}%{gopath}/src/%{import_path}/mangen
+cp -pav *.go %{buildroot}%{gopath}/src/%{import_path}/
+cp -pav mangen/*.go %{buildroot}%{gopath}/src/%{import_path}/mangen
+
+# install go-md2man binary
+install -d %{buildroot}%{_bindir}
+install -p -m 755 ./_build/src/%{repo} %{buildroot}%{_bindir}
+
+%check
+#no test files so far
+
+%files
+%doc README.md
+%{_bindir}/%{repo}
+
+%files devel
+%doc README.md
+%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
+%dir %{gopath}/src/%{import_path}
+%dir %{gopath}/src/%{import_path}/*
+%{gopath}/src/%{import_path}/*.go
+%{gopath}/src/%{import_path}/*/*.go
+
+%changelog
+* Mon Oct 27 2014 Lokesh Mandvekar <lsm5(a)fedoraproject.org> - 1-2
+- Resolves: rhbz#1156492 - initial fedora upload
+- quiet setup
+- no test files, disable check
+
+* Thu Sep 11 2014 Lokesh Mandvekar <lsm5(a)fedoraproject.org> - 1-1
+- Initial package
diff --git a/sources b/sources
index e69de29..33b9c66 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+d3ce1e9cf7f8a53bf7139ce07a3855c2 v1.tar.gz
9 years, 6 months