Blame golang-github-russross-blackfriday.spec

174aaa2
%global debug_package   %{nil}
174aaa2
%global provider        github
174aaa2
%global provider_tld    com
174aaa2
%global project         russross
174aaa2
%global repo            blackfriday
174aaa2
%global import_path     %{provider}.%{provider_tld}/%{project}/%{repo}
18d265f
%global commit          77efab57b2f74dd3f9051c79752b2e8995c8b789
aac28f9
%global shortcommit     %(c=%{commit}; echo ${c:0:7})
174aaa2
0639bca
Name:       golang-%{provider}-%{project}-%{repo}
0639bca
Version:    1.2
7119ec4
Release:    6%{?dist}
0639bca
Summary:    Markdown processor implemented in Go
0639bca
License:    BSD
0639bca
URL:        https://%{import_path}
2447b51
Source0:    https://%{import_path}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
9b923a5
%if 0%{?fedora} >= 21 || 0%{?rhel} >= 7
0639bca
BuildArch:  noarch
9b923a5
%else
9b923a5
ExclusiveArch:  %{ix86} x86_64 %{arm}
9b923a5
%endif
174aaa2
174aaa2
%description
174aaa2
%{summary}
174aaa2
174aaa2
%package devel
174aaa2
BuildRequires:  golang >= 1.2.1-3
2447b51
BuildRequires:  golang(github.com/shurcooL/sanitized_anchor_name)
2447b51
Requires:   golang(github.com/shurcooL/sanitized_anchor_name)
0639bca
Summary:    Markdown processor implemented in Go
0639bca
Provides:   golang(%{import_path}) = %{version}-%{release}
0639bca
Provides:   golang(%{import_path}/mangen) = %{version}-%{release}
174aaa2
174aaa2
%description devel
174aaa2
%{summary}
174aaa2
174aaa2
This package contains library source intended for building other packages
174aaa2
which use %{project}/%{repo}.
174aaa2
174aaa2
%prep
7119ec4
%setup -q -n %{repo}-%{commit}
174aaa2
174aaa2
%build
174aaa2
174aaa2
%install
174aaa2
install -d -p %{buildroot}%{gopath}/src/%{import_path}/upskirtref
174aaa2
cp -pav *.go %{buildroot}%{gopath}/src/%{import_path}/
174aaa2
cp -pav upskirtref/* %{buildroot}%{gopath}/src/%{import_path}/upskirtref/
174aaa2
174aaa2
%check
174aaa2
GOPATH=%{gopath}:%{buildroot}%{gopath} go test %{import_path}
174aaa2
174aaa2
%files devel
7119ec4
%if 0%{?fedora}
7119ec4
%license LICENSE.txt
174aaa2
%doc README.md
7119ec4
%else
7119ec4
%doc LICENSE.txt README.md
7119ec4
%endif
174aaa2
%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
7119ec4
%{gopath}/src/%{import_path}
174aaa2
174aaa2
%changelog
7119ec4
* Sun May 17 2015 jchaloup <jchaloup@redhat.com> - 1.2-6
7119ec4
- Add license macro for LICENSE
7119ec4
- Remove runtime dependency on golang.
7119ec4
  resolves: #1222338
7119ec4
18d265f
* Mon Mar 02 2015 jchaloup <jchaloup@redhat.com> - 1.2-5
18d265f
- Bump to upstream 77efab57b2f74dd3f9051c79752b2e8995c8b789
2447b51
  Update spec file to used commit tarball
18d265f
  related: #1156176
18d265f
aac28f9
* Wed Feb 25 2015 jchaloup <jchaloup@redhat.com> - 1.2-4
aac28f9
- Add commit and shortcommit global variable
aac28f9
  related: #1156176
aac28f9
9b923a5
* Fri Oct 31 2014 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.2-3
9b923a5
- include fedora/rhel arch conditionals
9b923a5
0639bca
* Mon Oct 27 2014 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.2-2
0639bca
- runtime requires go.net/html
0639bca
174aaa2
* Fri Oct 24 2014 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.2-1
174aaa2
- Resolves: rhbz#1156176 - Initial package