Blame golang-github-zyedidia-poller.spec

345a5f9
# Run tests in check section
345a5f9
# Tests fail on ppc/aarch64
345a5f9
%ifarch ppc ppc64 ppc64le aarch64
345a5f9
%bcond_with check
f38a94f
%else
345a5f9
%bcond_without check
f38a94f
%endif
f38a94f
345a5f9
%global goipath         github.com/zyedidia/poller
f38a94f
%global commit          ab09682913b79f402713d1df1977dedc19eb25ac
f38a94f
345a5f9
%global common_description %{expand:
345a5f9
An epoll(7)-based file-descriptor multiplexer.}
f38a94f
345a5f9
%gometa
f38a94f
345a5f9
Name:    %{goname}
345a5f9
Version: 0
817926c
Release: 0.4%{?dist}
345a5f9
Summary: An epoll(7)-based file-descriptor multiplexer
345a5f9
License: BSD
345a5f9
URL:     %{gourl}
345a5f9
Source:  %{gosource}
f38a94f
345a5f9
Patch0:  poller-ab09682-fix_import.patch
f38a94f
f38a94f
%description
345a5f9
%{common_description}
f38a94f
f38a94f
345a5f9
%package    devel
345a5f9
Summary:    %{summary}
345a5f9
BuildArch:  noarch
345a5f9
 
f38a94f
%description devel
345a5f9
%{common_description}
345a5f9
 
345a5f9
This package contains the source code needed for building packages that import
345a5f9
the %{goipath} Go namespace.
f38a94f
f38a94f
f38a94f
%prep
345a5f9
%gosetup -q
345a5f9
%patch0 -p1
f38a94f
f38a94f
345a5f9
%install
345a5f9
%goinstall
f38a94f
f38a94f
345a5f9
%if %{with check}
f38a94f
%check
345a5f9
%gochecks
f38a94f
%endif
f38a94f
f38a94f
f38a94f
%files devel -f devel.file-list
f38a94f
%license LICENSE.txt
f38a94f
%doc README.md
f38a94f
f38a94f
f38a94f
%changelog
817926c
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.4.gitab09682
817926c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
817926c
345a5f9
* Sat Mar 10 2018 Robert-André Mauchin <zebob.m@gmail.com> - 0-0.3.20180314gitab09682
345a5f9
- Update with the new Go packaging
345a5f9
5e98c9f
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.2.20170616gitab09682
5e98c9f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
5e98c9f
f38a94f
* Fri Sep 29 2017 Robert-André Mauchin <zebob.m@gmail.com> - 0-0.1.20170616gitab09682
f38a94f
- First package for Fedora
f38a94f