|
|
fdde02 |
%global with_debug 1
|
|
|
fdde02 |
|
|
|
fdde02 |
%if 0%{?with_debug}
|
|
|
fdde02 |
%global _dwz_low_mem_die_limit 0
|
|
|
fdde02 |
%else
|
|
|
fdde02 |
%global debug_package %{nil}
|
|
|
fdde02 |
%endif
|
|
|
fdde02 |
|
|
|
fdde02 |
%if ! 0%{?gobuild:1}
|
|
|
fdde02 |
%define gobuild(o:) go build -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n')" -a -v -x %{?**};
|
|
|
fdde02 |
%endif
|
|
|
fdde02 |
|
|
|
fdde02 |
%global provider github
|
|
|
fdde02 |
%global provider_tld com
|
|
|
fdde02 |
%global project vbatts
|
|
|
fdde02 |
%global repo go-mtree
|
|
|
fdde02 |
# https://github.com/vbatts/go-mtree
|
|
|
fdde02 |
%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
|
|
|
fdde02 |
%global import_path %{provider_prefix}
|
|
|
fdde02 |
%global commit 85fac2fc14752c3edbf6be564af4fbfef6a07e2f
|
|
|
fdde02 |
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
|
|
fdde02 |
|
|
|
fdde02 |
ExcludeArch: ppc64
|
|
|
fdde02 |
|
|
|
fdde02 |
Name: gomtree
|
|
|
fdde02 |
Version: 0.4.0
|
|
|
fdde02 |
Release: 4%{?dist}
|
|
|
fdde02 |
Summary: Go CLI tool for mtree support
|
|
|
fdde02 |
License: BSD
|
|
|
fdde02 |
URL: https://%{provider_prefix}
|
|
|
fdde02 |
Source0: https://%{provider_prefix}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
|
|
|
fdde02 |
|
|
|
fdde02 |
# e.g. el6 has ppc64 arch without gcc-go, so EA tag is required
|
|
|
fdde02 |
ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 %{arm}}
|
|
|
fdde02 |
# If go_compiler is not set to 1, there is no virtual provide. Use golang instead.
|
|
|
fdde02 |
BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang}
|
|
|
fdde02 |
|
|
|
fdde02 |
%description
|
|
|
fdde02 |
%{summary}
|
|
|
fdde02 |
|
|
|
fdde02 |
{?enable_gotoolset7}
|
|
|
fdde02 |
|
|
|
fdde02 |
%prep
|
|
|
fdde02 |
%setup -q -n %{repo}-%{commit}
|
|
|
fdde02 |
|
|
|
fdde02 |
%build
|
|
|
fdde02 |
mkdir -p src/github.com/vbatts
|
|
|
fdde02 |
ln -s ../../../ src/github.com/vbatts/go-mtree
|
|
|
fdde02 |
|
|
|
fdde02 |
export GOPATH=$(pwd):%{gopath}
|
|
|
fdde02 |
|
|
|
fdde02 |
%gobuild -o bin/%{name} %{import_path}/cmd/%{name}
|
|
|
fdde02 |
|
|
|
fdde02 |
%install
|
|
|
fdde02 |
install -d -p %{buildroot}%{_bindir}
|
|
|
fdde02 |
install -p -m 0755 bin/%{name} %{buildroot}%{_bindir}
|
|
|
fdde02 |
|
|
|
fdde02 |
#define license tag if not already defined
|
|
|
fdde02 |
%{!?_licensedir:%global license %doc}
|
|
|
fdde02 |
|
|
|
fdde02 |
%files
|
|
|
fdde02 |
%license LICENSE
|
|
|
fdde02 |
%doc README.md
|
|
|
fdde02 |
%{_bindir}/%{name}
|
|
|
fdde02 |
|
|
|
fdde02 |
%changelog
|
|
|
fdde02 |
* Mon Jul 30 2018 Florian Weimer <fweimer@redhat.com> - 0.4.0-4
|
|
|
fdde02 |
- Rebuild with fixed binutils
|
|
|
fdde02 |
|
|
|
fdde02 |
* Sun Jul 29 2018 Jan Chaloupka <jchaloup@redhat.com> - 0.4.0-3
|
|
|
fdde02 |
- Build from bundled dependencies
|
|
|
fdde02 |
resolves: #1608482
|
|
|
fdde02 |
|
|
|
fdde02 |
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-2
|
|
|
fdde02 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
fdde02 |
|
|
|
fdde02 |
* Tue Aug 01 2017 Brent Baude <bbaude@redhat.com> - 0.4.0-1
|
|
|
fdde02 |
- New version of gomtree
|
|
|
fdde02 |
|
|
|
fdde02 |
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-3
|
|
|
fdde02 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
fdde02 |
|
|
|
fdde02 |
* Tue Apr 25 2017 bbaude <bbaude@redhat.com> - 0.3.1-2
|
|
|
fdde02 |
- No golang support for ppc64. BZ #1445491
|
|
|
fdde02 |
|
|
|
fdde02 |
* Fri Feb 17 2017 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0.3.1-1
|
|
|
fdde02 |
- bump to v0.3.1
|
|
|
fdde02 |
|
|
|
fdde02 |
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-2
|
|
|
fdde02 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
fdde02 |
|
|
|
fdde02 |
* Thu Dec 15 2016 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0.3.0-1
|
|
|
fdde02 |
- Resolves: 1403037 - bump to v0.3.0
|
|
|
fdde02 |
|
|
|
fdde02 |
* Mon Oct 03 2016 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0-0.2.git8c6b32c
|
|
|
fdde02 |
- Resolves: #1380420 - import into Fedora
|
|
|
fdde02 |
- fix binary build step
|
|
|
fdde02 |
|
|
|
fdde02 |
* Thu Sep 29 2016 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0-0.1.git8c6b32c
|
|
|
fdde02 |
- First package for Fedora
|