Blob Blame History Raw
# Generated by go2rpm
%bcond_without check

# https://github.com/tinygo-org/go-llvm
%global goipath         tinygo.org/x/go-llvm
%global forgeurl        https://github.com/tinygo-org/go-llvm
%global commit          0713e35494975a4ca953b2cc3d09f21bf92497f2

%gometa

%global godevelheader %{expand:
Requires:       llvm-devel}

%global common_description %{expand:
This library provides bindings to a system-installed LLVM.}

%global golicenses      LICENSE.txt
%global godocs          README.markdown

Name:           %{goname}
Version:        0
Release:        0.4%{?dist}
Summary:        Go bindings to a system-installed LLVM

License:        NCSA
URL:            %{gourl}
Source0:        %{gosource}
# https://github.com/tinygo-org/go-llvm/pull/5
Patch0:         fix-ir-test.patch

BuildRequires:  gcc-c++
BuildRequires:  llvm-devel

%description
%{common_description}

%gopkg

%prep
%goprep
%patch0 -p1
# Set current LLVM paths.
make config VERSION=8.0.0 LDFLAGS=$(llvm-config --libs) BUILDDIR=%{_prefix}

%install
%gopkginstall

%if %{with check}
%check
%gocheck
%endif

%gopkgfiles

%changelog
* Thu Jul 04 01:54:04 CEST 2019 Robert-André Mauchin <zebob.m@gmail.com> - 0-0.4.20190427git0713e35
- Update to new macros

* Fri Jun 07 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0-0.3-20190427git0713e35
- Update to latest commit
- Add gcc-c++ to Requires

* Sat Apr 27 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0-0.2-20190427git7707ae5
- Add llvm-devel to Requires

* Thu Apr 18 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0-0.1-20190427git7707ae5
- First package for Fedora