The package rpms/gofed.git has added or updated architecture specific content in its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/gofed.git/commit/?id=a60603dfa0ad....
Change:
-ExclusiveArch: %{ix86} x86_64 %{arm} aarch64 ppc64le s390x %{mips}
Thanks.
Full change:
============
commit a60603dfa0ad64fcd9b1019f1391c11e82a97cba
Author: Jan Chaloupka <jchaloup(a)redhat.com>
Date: Thu May 2 12:02:18 2019 +0200
Retiring until all the open issues get properly addressed
diff --git a/.gitignore b/.gitignore
deleted file mode 100644
index 9a788c2..0000000
--- a/.gitignore
+++ /dev/null
@@ -1,5 +0,0 @@
-/cmdsignature-3320757.tar.gz
-/infra-6bff7ae.tar.gz
-/resources-7e414c7.tar.gz
-/gofedlib-c2e5b00.tar.gz
-/gofed-48d80fe.tar.gz
diff --git a/0001-s-python-python2.7.patch b/0001-s-python-python2.7.patch
deleted file mode 100644
index c525762..0000000
--- a/0001-s-python-python2.7.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-From c9ef34a2af7cb222bdf97376ede27eb79d6b17fb Mon Sep 17 00:00:00 2001
-From: Jan Chaloupka <jchaloup(a)redhat.com>
-Date: Sun, 29 Jul 2018 16:52:33 +0200
-Subject: [PATCH] s/python/python2.7
-
----
- cmdsignature/program.py | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/cmdsignature/program.py b/cmdsignature/program.py
-index 547f50d..33c56b9 100644
---- a/cmdsignature/program.py
-+++ b/cmdsignature/program.py
-@@ -116,7 +116,7 @@ class ProgramSignatureParser(object):
- # extension
- interpret = ""
- if entry_point_file.endswith(".py"):
-- interpret = "python"
-+ interpret = "python2.7"
- elif entry_point_file.endswith(".sh"):
- interpret = "bash"
-
---
-2.7.5
-
diff --git a/Generate-spec-files-with-new-macros.patch
b/Generate-spec-files-with-new-macros.patch
deleted file mode 100644
index 64e1ec6..0000000
--- a/Generate-spec-files-with-new-macros.patch
+++ /dev/null
@@ -1,371 +0,0 @@
-From f65434f94d70c4fb863bb64abb908316e8e66832 Mon Sep 17 00:00:00 2001
-From: Jan Chaloupka <jchaloup(a)redhat.com>
-Date: Wed, 7 Mar 2018 16:30:50 +0100
-Subject: [PATCH] Generate spec files with new macros
-
----
- modules/spec.jinja | 284 ++++-------------------------------------------------
- 1 file changed, 21 insertions(+), 263 deletions(-)
-
-diff --git a/modules/spec.jinja b/modules/spec.jinja
-index c4493b5..8aeb466 100644
---- a/modules/spec.jinja
-+++ b/modules/spec.jinja
-@@ -1,87 +1,17 @@
--# If any of the following macros should be set otherwise,
--# you can wrap any of them with the following conditions:
--# - %%if 0%%{centos} == 7
--# - %%if 0%%{?rhel} == 7
--# - %%if 0%%{?fedora} == 23
--# Or just test for particular distribution:
--# - %%if 0%%{centos}
--# - %%if 0%%{?rhel}
--# - %%if 0%%{?fedora}
--#
--# Be aware, on centos, both %%rhel and %%centos are set. If you want to test
--# rhel specific macros, you can use %%if 0%%{?rhel} && 0%%{?centos} == 0
condition.
--# (Don't forget to replace double percentage symbol with single one in order to
apply a condition)
--
--# Generate devel rpm
--%global with_devel 1
--# Build project from bundled dependencies
--%global with_bundled 0
--# Build with debug info rpm
--{% if with_build %}%global with_debug 1{% else %}%global with_debug 0{% endif %}
--# Run tests in check section
--%global with_check 1
--# Generate unit-test rpm
--%global with_unit_test 1
--
--%if 0%{?with_debug}
--%global _dwz_low_mem_die_limit 0
--%else
--%global debug_package %{nil}
--%endif
--
--{% if with_build -%}
--%if ! 0%{?gobuild:1}
--%define gobuild(o:) go build -ldflags "${LDFLAGS:-} -B 0x$(head -c20
/dev/urandom|od -An -tx1|tr -d ' \\n')" -a -v -x %{?**};
--%endif
--{% endif -%}
--
--{% if project_signature["provider"]["provider"] ==
"github" %}
--%global provider github
--%global provider_tld com
--%global project {{ project_signature["provider"]["username"]
}}
--%global repo {{ project_signature["provider"]["project"]
}}
- # https://{{ provider_prefix }}
--%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
- {% if import_path_prefix != provider_prefix -%}
--%global import_path {{ import_path_prefix }}
-+%global forgeurl https://{{ provider_prefix }}
-+%global goipath {{ import_path_prefix }}
- {% else -%}
--%global import_path %{provider_prefix}
-+%global goipath %{provider_prefix}
- {% endif -%}
- %global commit {{ project_signature["commit"] }}
--%global shortcommit %(c=%{commit}; echo ${c:0:7})
-
--Name: golang-%{provider}-%{project}-%{repo}
--Version: 0
--Release: 0.0.git%{shortcommit}%{?dist}
--Summary: !!!!FILL!!!!
--{% if licenses != [] -%}
--# Detected licences
--{% for license in licenses -%}
--# - {{ license["type"] }} at '{{ license["file"] }}'
--{% endfor -%}
--{% endif -%}
--License: !!!!FILL!!!!
--URL: https://%{provider_prefix}
--Source0:
https://%{provider_prefix}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
--{%- elif project_signature["provider"]["provider"] ==
"bitbucket" -%}
--%global provider bitbucket
--%global provider_tld org
--%global project {{ project_signature["provider"]["username"]
}}
--%global repo {{ project_signature["provider"]["project"]
}}
--# https://{{ provider_prefix }}
--%global provider_prefix {{ provider_prefix }}
--%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
--{% if import_path_prefix != provider_prefix -%}
--%global import_path {{ import_path_prefix }}
--{% else -%}
--%global import_path %{provider_prefix}
--{% endif -%}
--%global commit {{ project_signature["commit"] }}
--%global shortcommit %(c=%{commit}; echo ${c:0:12})
-+%gometa -i
-
--Name: golang-%{provider}-%{project}-%{repo}
-+Name: %{goname}
- Version: 0
--Release: 0.0.git%{shortcommit}%{?dist}
-+Release: 0.0%{?dist}
- Summary: !!!!FILL!!!!
- {% if licenses != [] -%}
- # Detected licences
-@@ -90,46 +20,10 @@ Summary: !!!!FILL!!!!
- {% endfor -%}
- {% endif -%}
- License: !!!!FILL!!!!
--URL: https://%{provider_prefix}
--Source0: https://%{provider_prefix}/get/%%{shortcommit}.tar.gz
--{% elif project_signature["provider"]["provider"] ==
"googlecode" %}
--%global provider google
--%global provider_sub code
--%global provider_tld com
--%global project p
--%global repo {{ project_signature["provider"]["project"]
}}
--%global rrepo {{ rrepo }}
--# https://{{ provider_prefix }}
--%global provider_prefix {{ provider_prefix }}
--%global provider_prefix %{provider_sub}.%{provider}.%{provider_tld}/%{project}/%{repo}
--{% if import_path_prefix != provider_prefix -%}
--%global import_path {{ import_path_prefix }}
--{% else -%}
--%global import_path %{provider_prefix}
--{% endif -%}
--%global rev {{ project_signature["commit"] }}
--%global shortrev %(c=%{rev}; echo ${c:0:12})
--Name: golang-%%{provider}%%{provider_sub}-{{ stripped_repo }}
--Version: 0
--Release: 0.0.hg%{shortrev}%{?dist}
--Summary: !!!!FILL!!!!
--{% if licenses != [] -%}
--# Detected licences
--{% for license in licenses -%}
--# - {{ license["type"] }} at '{{ license["file"] }}'
--{% endfor -%}
--{% endif -%}
--License: !!!!FILL!!!!
--URL: https://%{provider_prefix}
--Source0:
https://%{rrepo}.%{provider}%{provider_sub}.%{provider_tld}/archive/%{rev}.tar.gz
--{%- endif %}
-+URL: %{gourl}
-+Source0: %{gosource}
-
--# e.g. el6 has ppc64 arch without gcc-go, so EA tag is required
--ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 aarch64 %{arm}}
--# If go_compiler is not set to 1, there is no virtual provide. Use golang instead.
--BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang}
--
--{% if with_build %}%if ! 0%{?with_bundled}
-+{% if with_build %}{% if main["deps"] | length > 0 %}install -d
%{buildroot}%{_bindir}{% endif %}
- {% for package in main["deps"] -%}
- {%- if main["deps"][package] != [] -%}
- # {{ package }}
-@@ -141,168 +35,47 @@ BuildRequires: golang({{ dep }})
- # Remaining dependencies not included in main packages
- {% for dep in main["remaining_devel_deps"] %}BuildRequires: golang({{ dep }})
- {% endfor -%}
--%endif
- {%- endif %}
-
- %description
- %{summary}
-
--%if 0%{?with_devel}
- %package devel
- Summary: %{summary}
- BuildArch: noarch
-
--%if 0%{?with_check} && ! 0%{?with_bundled}
- {% for dep in devel["deps"] -%}
- BuildRequires: golang({{ dep }})
--{% endfor -%}
--%endif
--
--{% for dep in devel["deps"] -%}
--Requires: golang({{ dep }})
--{% endfor -%}
--{% for package in devel["provides"] %}
--Provides: golang(%{import_path}{{ package }}) = %{version}-%{release}
--{%- endfor %}
--
-+{% endfor %}
- %description devel
- %{summary}
-
- This package contains library source intended for
- building other packages which use import path with
--%{import_path} prefix.
--%endif
--
--%if 0%{?with_unit_test} && 0%{?with_devel}
--%package unit-test-devel
--Summary: Unit tests for %{name} package
--%if 0%{?with_check}
--#Here comes all BuildRequires: PACKAGE the unit tests
--#in %%check section need for running
--%endif
--
--# test subpackage tests code from devel subpackage
--Requires: %{name}-devel = %{version}-%{release}
--
--%if 0%{?with_check} && ! 0%{?with_bundled}
--{% for dep in tests["deps"] -%}
--BuildRequires: golang({{ dep }})
--{% endfor -%}
--%endif
--
--{% for dep in tests["deps"] -%}
--Requires: golang({{ dep }})
--{% endfor %}
--%description unit-test-devel
--%{summary}
--
--This package contains unit tests for project
--providing packages with %{import_path} prefix.
--%endif
-+%{goipath} prefix.
-
- %prep
--{%- if project_signature["provider"]["provider"] ==
"googlecode" %}
--%setup -q -n %{rrepo}-%{shortrev}
--{%- elif project_signature["provider"]["provider"] ==
"bitbucket" %}
--%setup -q -n %{project}-%{repo}-%{shortcommit}
--{%- else %}
--%setup -q -n %{repo}-%{commit}
--{%- endif %}
-+%gosetup -q
-
-+{% if with_build %}
- %build
--{%- if with_build %}
--{%- if project_signature["provider"]["provider"] ==
"googlecode" %}
--mkdir -p src/%{provider_sub}.%{provider}.%{provider_tld}/%{project}
--{%- else %}
--mkdir -p src/%{provider}.%{provider_tld}/%{project}
--{%- endif %}
--ln -s ../../../ src/%{import_path}
--
--%if ! 0%{?with_bundled}
--export GOPATH=$(pwd):%{gopath}
--%else
--{%- if gopaths == [] %}
--# No dependency directories so far
--{%- endif %}
--export GOPATH=$(pwd){% for path in gopaths %}:$(pwd)/{{ path }}{% endfor %}:%{gopath}
--%endif
-+%gobuildroot
-
- {% for package in main["dirs"] -%}
--#%gobuild -o bin/{{ package }} %{import_path}/{{ package }}
--{% endfor -%}
--{%- endif %}
-+#%gobuild -o _bin/{{ package }} %{import_path}/{{ package }}
-+{% endfor %}
-+{% endif %}
- %install
- {%- if with_build %}
- install -d -p %{buildroot}%{_bindir}
- {% for package in main["dirs"] -%}
--#install -p -m 0755 bin/{{ package }} %{buildroot}%{_bindir}
-+#install -p -m 0755 _bin/{{ package }} %{buildroot}%{_bindir}
- {% endfor -%}
- {% endif %}
--# source codes for building projects
--%if 0%{?with_devel}
--install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
--echo "%%dir %%{gopath}/src/%%{import_path}/." >> devel.file-list
--# find all *.go but no *_test.go files and generate devel.file-list
--for file in $(find . \( -iname "*.go" -or -iname "*.s" \) \! -iname
"*_test.go"{% for dep in dependency_directories %} | grep -v "{{ dep
}}"{% endfor %}) ; do
-- dirprefix=$(dirname $file)
-- install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$dirprefix
-- cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
-- echo "%%{gopath}/src/%%{import_path}/$file" >> devel.file-list
--
-- while [ "$dirprefix" != "." ]; do
-- echo "%%dir %%{gopath}/src/%%{import_path}/$dirprefix" >>
devel.file-list
-- dirprefix=$(dirname $dirprefix)
-- done
--done
--%endif
--
--# testing files for this project
--%if 0%{?with_unit_test} && 0%{?with_devel}
--install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
--# find all *_test.go files and generate unit-test-devel.file-list
--for file in $(find . -iname "*_test.go"{% for dep in dependency_directories %}
| grep -v "{{ dep }}"{% endfor %}) ; do
-- dirprefix=$(dirname $file)
-- install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$dirprefix
-- cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
-- echo "%%{gopath}/src/%%{import_path}/$file" >>
unit-test-devel.file-list
--
-- while [ "$dirprefix" != "." ]; do
-- echo "%%dir %%{gopath}/src/%%{import_path}/$dirprefix" >>
devel.file-list
-- dirprefix=$(dirname $dirprefix)
-- done
--done
--%endif
--
--%if 0%{?with_devel}
--sort -u -o devel.file-list devel.file-list
--%endif
-+%goinstall
-
- %check
--%if 0%{?with_check} && 0%{?with_unit_test} && 0%{?with_devel}
--%if ! 0%{?with_bundled}
--export GOPATH=%{buildroot}/%{gopath}:%{gopath}
--%else
--{%- if vendor_on %}
--# Since we aren't packaging up the vendor directory we need to link
--# back to it somehow. Hack it up so that we can add the vendor
--# directory from BUILD dir as a gopath to be searched when executing
--# tests from the BUILDROOT dir.
--ln -s ./ ./vendor/src # ./vendor/src -> ./vendor
--{%- endif %}
--{%- if gopaths == [] and not vendor_on %}
--# No dependency directories so far
--{%- endif %}
--
--export GOPATH=%{buildroot}/%{gopath}{% for path in gopaths %}:$(pwd)/{{ path }}{% endfor
%}{% if vendor_on %}:$(pwd)/vendor{% endif %}:%{gopath}
--%endif
--
--%if ! 0%{?gotest:1}
--%global gotest go test
--%endif
--{% for test in tests["directories"] %}
--%gotest %{import_path}{{ test }}
--{%- endfor %}
--%endif
-+%gochecks
-
- #define license tag if not already defined
- %{!?_licensedir:%global license %doc}
-@@ -319,7 +92,6 @@ export GOPATH=%{buildroot}/%{gopath}{% for path in gopaths
%}:$(pwd)/{{ path }}{
- #%{_bindir}/{{ package }}
- {% endfor -%}
- {%- endif %}
--%if 0%{?with_devel}
- %files devel -f devel.file-list
- {% if licenses != [] -%}
- %license{% for license in licenses %} {{ license["file"] }}{% endfor %}
-@@ -327,21 +99,7 @@ export GOPATH=%{buildroot}/%{gopath}{% for path in gopaths
%}:$(pwd)/{{ path }}{
- {% if docs != [] -%}
- %doc{% for doc in docs %} {{ doc }}{% endfor %}
- {% endif -%}
--{% if prefix_dir["type"] == "default" -%}
--%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
--{% elif prefix_dir["type"] == "custom" -%}
--%dir %{gopath}/src/{{ prefix_dir["prefix"] }}
--{% endif -%}
--%endif
-
--%if 0%{?with_unit_test} && 0%{?with_devel}
--%files unit-test-devel -f unit-test-devel.file-list
--{% if licenses != [] -%}
--%license{% for license in licenses %} {{ license["file"] }}{% endfor %}
--{% endif -%}
--{% if docs != [] -%}
--%doc{% for doc in docs %} {{ doc }}{% endfor %}
--{% endif -%}
--%endif
-
- %changelog
-+
---
-2.7.5
-
diff --git a/dead.package b/dead.package
new file mode 100644
index 0000000..b8ff6d8
--- /dev/null
+++ b/dead.package
@@ -0,0 +1 @@
+Retiring until all the open issues get properly addressed
diff --git a/gofed.spec b/gofed.spec
deleted file mode 100644
index 1ea9b87..0000000
--- a/gofed.spec
+++ /dev/null
@@ -1,515 +0,0 @@
-#%%global _dwz_low_mem_die_limit 0
-%global debug_package %{nil}
-%global provider github
-%global provider_tld com
-%global project ingvagabund
-%global repo gofed
-%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
-
-%global cmdsignature_commit 33207573a1875bc828da3f863e1de439d7af8166
-%global cmdsignature_shortcommit %(c=%{cmdsignature_commit}; echo ${c:0:7})
-
-%global gofedlib_commit c2e5b00ebc01616820e571aa554429b1461dc2c4
-%global gofedlib_shortcommit %(c=%{gofedlib_commit}; echo ${c:0:7})
-
-%global gofedresources_commit 7e414c78930a81167dc2cd4d3e9adb79eeed38a6
-%global gofedresources_shortcommit %(c=%{gofedresources_commit}; echo ${c:0:7})
-
-%global gofedinfra_commit 6bff7ae54535689e2ade3d0bd3d33d903a2190b9
-%global gofedinfra_shortcommit %(c=%{gofedinfra_commit}; echo ${c:0:7})
-
-%global commit 48d80fe18e643be7bd3ebc6ece22a6a07bb188d1
-%global shortcommit %(c=%{commit}; echo ${c:0:7})
-
-%global cmdsignature_repo cmdsignature
-%global gofedlib_repo gofedlib
-%global gofedresources_repo resources
-%global gofedinfra_repo infra
-
-%if ! 0%{?gobuild:1}
-%define gobuild(o:) go build -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od
-An -tx1|tr -d ' \\n')" -a -v -x %{?**};
-%endif
-
-Name: gofed
-Version: 1.0.0
-Release: 0.22.rc1%{?dist}
-Summary: Tool for development of golang devel packages
-License: GPLv2+
-URL:
https://github.com/%{project}/%{repo}
-Source0:
https://github.com/%{project}/%{repo}/archive/%{commit}/%{repo}-%{shortco...
-Source1:
https://github.com/%{project}/%{cmdsignature_repo}/archive/%{cmdsignature...
-Source2:
https://github.com/%{project}/%{gofedlib_repo}/archive/%{gofedlib_commit}...
-Source3:
https://github.com/%{project}/%{gofedresources_repo}/archive/%{gofedresou...
-Source4:
https://github.com/%{project}/%{gofedinfra_repo}/archive/%{gofedinfra_com...
-
-Patch0: set-correct-paths.patch
-Patch1: Generate-spec-files-with-new-macros.patch
-Patch2: 0001-s-python-python2.7.patch
-
-# e.g. el6 has ppc64 arch without gcc-go, so EA tag is required
-ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 %{arm}}
-ExcludeArch: ppc64
-# If go_compiler is not set to 1, there is no virtual provide. Use golang instead.
-BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang}
-
-BuildRequires: python2 >= 2.7.5
-BuildRequires: python2-devel
-BuildRequires: python2-setuptools
-
-Requires: python2 >= 2.7.5, bash, wget, rpmdevtools, rpmlint
-Requires: coreutils, rpm-build, openssh-clients, tar
-
-Requires: %{name}-cmd-dnfs-base = %{version}-%{release}
-Requires: python2-cmdsignature = %{version}-%{release}
-Requires: %{name}-infra = %{version}-%{release}
-Requires: %{name}-base = %{version}-%{release}
-Requires: bash-completion
-
-Conflicts: gofed < 1.0.0
-
-%description
-Tool to automize packaging of golang devel source codes.
-The main goal is to automatize packaging, i.e. provide spec file generators,
-discovery of tests, imported and provided packages,
-check of up-to-date state of dependencies,
-preparation of review and
-check of spec file (gofed lint).
-
-%package cmd-dnfs-base
-Summary: Set of basic commands definitions
-BuildArch: noarch
-
-%description cmd-dnfs-base
-Basic gofed commands definition
-
-%package cmd-dnfs-build
-Summary: Set of build commands definitions
-BuildArch: noarch
-
-%description cmd-dnfs-build
-Build gofed commands definition
-
-%package cmd-dnfs-scan
-Summary: Set of scan commands definitions
-BuildArch: noarch
-
-%description cmd-dnfs-scan
-Scan gofed commands definition
-
-%package base
-Summary: Implementation of base commands for gofed
-BuildArch: noarch
-
-%description base
-Basic commands
-
-%package scan
-Summary: Set of commands for scanning golang projects
-Requires: %{name} = %{version}-%{release}
-Requires: %{name}-cmd-dnfs-scan = %{version}-%{release}
-Requires: python2-cmdsignature = %{version}-%{release}
-Requires: graphviz
-BuildArch: noarch
-Conflicts: gofed-scan < 1.0.0
-
-
-%description scan
-Subpackage providing commands for scanning of golang project, i.e.
-comparison of APIs of two golang projects,
-generator of xml files representing exported symbols and
-scan of golang packages and generator of dependency graph.
-
-%package build
-Summary: Set of commands for building golang projects
-Requires: %{name} = %{version}-%{release}
-Requires: %{name}-cmd-dnfs-build = %{version}-%{release}
-Requires: python2-cmdsignature = %{version}-%{release}
-BuildArch: noarch
-Conflicts: gofed-build < 1.0.0
-
-%description build
-Subpackage providing commands for scratch builds, builds,
-pulls, pushes, updates, overrides and other commands
-that can be used for package maitainance.
-
-The commands support running one command on multiple branches at once.
-
-%package gofedlib
-Summary: Gofedlib
-BuildRequires: python2-fedora python2-jinja2 python2-markupsafe python2-koji
-Requires: python2-fedora python2-jinja2 python2-markupsafe python2-pygithub
python2-hglib
-
-%description gofedlib
-Gofedlib
-
-%package resources
-Summary: Gofed resources
-BuildRequires: python2-hglib
-Requires: python2-hglib
-Requires: %{name}-gofedlib = %{version}-%{release}
-BuildArch: noarch
-
-%description resources
-Gofed resources
-
-%package infra
-Summary: Gofed infra
-BuildRequires: python2-jsonschema koji python2-GitPython python2-pycurl python2-hglib
python2-gitdb
-Requires: python2-jsonschema koji python2-GitPython python2-pycurl python2-hglib
python2-gitdb
-Requires: %{name}-gofedlib = %{version}-%{release}
-Requires: %{name}-resources = %{version}-%{release}
-BuildArch: noarch
-
-%description infra
-Gofed infra
-
-%package docker
-Summary: Run gofed commands as a container
-Requires: %{name}-cmd-dnfs-base = %{version}-%{release}
-Requires: python2-cmdsignature = %{version}-%{release}
-Requires: docker
-BuildArch: noarch
-ExclusiveArch: %{ix86} x86_64 %{arm} aarch64 ppc64le s390x %{mips}
-
-%description docker
-Run gofed commands as a container
-
-%package -n python2-cmdsignature
-Summary: Command signature python module
-BuildArch: noarch
-BuildRequires: python2-pyyaml
-Requires: python2 >= 2.7.5
-Requires: python2-pyyaml
-%{?python_provide:%python_provide python2-cmdsignature}
-
-%description -n python2-cmdsignature
-Command signature python module
-
-%prep
-%setup -q -n %{cmdsignature_repo}-%{cmdsignature_commit} -T -b 1
-%patch2 -p1
-%setup -q -n %{gofedlib_repo}-%{gofedlib_commit} -T -b 2
-%setup -q -n %{gofedresources_repo}-%{gofedresources_commit} -T -b 3
-%setup -q -n %{gofedinfra_repo}-%{gofedinfra_commit} -T -b 4
-%setup -q -n %{repo}-%{commit}
-%patch0 -p1
-%patch1 -p1
-sed -i -e '1c #!%{__python2}' gofed gofed-docker
-sed -i -e '1{\@^#!@d}' cmd/unit-test/parse_log.py
-
-%build
-pushd ../%{cmdsignature_repo}-%{cmdsignature_commit}
-%{__python2} setup.py build
-popd
-
-pushd ../%{gofedlib_repo}-%{gofedlib_commit}
-pushd gofedlib/go/symbolsextractor
-%gobuild -o parseGo parseGo.go
-popd
-%{__python2} setup.py build
-popd
-
-pushd ../%{gofedresources_repo}-%{gofedresources_commit}
-%{__python2} setup.py build
-popd
-
-pushd ../%{gofedinfra_repo}-%{gofedinfra_commit}
-%{__python2} setup.py build
-popd
-
-%install
-# install cmdsignature as standard python module
-pushd ../%{cmdsignature_repo}-%{cmdsignature_commit}
-%{__python2} setup.py install --skip-build --root %{buildroot}
-popd
-
-pushd ../%{gofedlib_repo}-%{gofedlib_commit}
-%{__python2} setup.py install --skip-build --root %{buildroot}
-popd
-
-pushd ../%{gofedresources_repo}-%{gofedresources_commit}
-%{__python2} setup.py install --skip-build --root %{buildroot}
-popd
-
-pushd ../%{gofedinfra_repo}-%{gofedinfra_commit}
-%{__python2} setup.py install --skip-build --root %{buildroot}
-popd
-
-# copy command definitions under gofed-cmd-dnf-[base|build|scan]
-mkdir -p %{buildroot}%{_datadir}/%{name}/
-cp -rpav cmd %{buildroot}%{_datadir}/%{name}/.
-cp -pav *.py %{buildroot}%{_datadir}/%{name}/.
-
-# install binaries
-install -m 755 -d %{buildroot}/%{_bindir}
-cp -pav gofed %{buildroot}%{_bindir}/gofed
-cp -pav gofed-docker %{buildroot}%{_bindir}/gofed-docker
-
-# TODO: generate bash completion via cmdsignature
-# TODO: generate man pages via cmdsignature
-
-cp -r modules %{buildroot}%{_datadir}/%{name}/.
-# copy config
-mkdir -p %{buildroot}%{_sysconfdir}
-cp -av config/gofed.conf %{buildroot}%{_sysconfdir}/.
-mkdir -p %{buildroot}%{_datadir}/%{name}/config
-cp -av config/gofed.conf %{buildroot}%{_datadir}/%{name}/config/.
-# directory for local database
-install -m 755 -d %{buildroot}/%{_sharedstatedir}/%{name}
-# copy golang list and native imports
-cp -r data %{buildroot}%{_sharedstatedir}/%{name}/.
-# working directory under /var/lib/gofed
-install -m 775 -d %{buildroot}/%{_sharedstatedir}/%{name}/resource_provider
-install -m 775 -d %{buildroot}/%{_sharedstatedir}/%{name}/resource_client
-install -m 775 -d %{buildroot}/%{_sharedstatedir}/%{name}/storage
-install -m 775 -d %{buildroot}/%{_sharedstatedir}/%{name}/simplefilestorage
-# man pages
-mkdir -p %{buildroot}%{_mandir}/man1
-cp -av docs/gofed.1 %{buildroot}%{_mandir}/man1/gofed.1
-
-%check
-export
PYTHONPATH=%{buildroot}/%{python2_sitelib}:%{buildroot}%{_datadir}/gofed:%{buildroot}%{_datadir}
-whereis python
-./hack/test-cmd.sh
-rm $(find %{buildroot}%{_datadir}/%{name} -iname "*.py[c|o]")
-rm -r %{buildroot}%{_datadir}/%{name}/config
-
-%pre
-getent group gofed >/dev/null || groupadd -r gofed
-getent passwd gofed >/dev/null || useradd -r -g gofed -d / -s /sbin/nologin \
- -c "Gofed user" gofed
-
-%files cmd-dnfs-base
-%{_datadir}/%{name}/cmd/README.md
-%{_datadir}/%{name}/cmd/repo2spec/*.yml
-%{_datadir}/%{name}/cmd/fetch/*.yml
-%{_datadir}/%{name}/cmd/create-tracker/*.yml
-%{_datadir}/%{name}/cmd/ggi/*.yml
-%{_datadir}/%{name}/cmd/inspect/*.yml
-%{_datadir}/%{name}/cmd/check-deps/*.yml
-%{_datadir}/%{name}/cmd/lint/*.yml
-%{_datadir}/%{name}/cmd/review-request/*.yml
-%{_datadir}/%{name}/cmd/clean-resources/*.yml
-%{_datadir}/%{name}/cmd/base.yml
-
-%files cmd-dnfs-build
-%{_datadir}/%{name}/cmd/tools/*.yml
-%{_datadir}/%{name}/cmd/bump-spec/*.yml
-%{_datadir}/%{name}/cmd/wizard/*.yml
-%{_datadir}/%{name}/cmd/build.yml
-
-%files cmd-dnfs-scan
-%{_datadir}/%{name}/cmd/goapidiff/*.yml
-%{_datadir}/%{name}/cmd/approx-deps/*.yml
-%{_datadir}/%{name}/cmd/scan-deps/*.yml
-%{_datadir}/%{name}/cmd/scan-distro/*.yml
-%{_datadir}/%{name}/cmd/scan-packages/*.yml
-%{_datadir}/%{name}/cmd/unit-test/*.yml
-%{_datadir}/%{name}/cmd/scan.yml
-
-%files base
-%{_datadir}/%{name}/cmd/version/version.py
-%{_datadir}/%{name}/cmd/repo2spec/*.py
-%{_datadir}/%{name}/cmd/repo2spec/bitbucket2gospec
-%{_datadir}/%{name}/cmd/repo2spec/github2gospec
-%{_datadir}/%{name}/cmd/repo2spec/googlecode2gospec
-%{_datadir}/%{name}/cmd/fetch/*.py
-%{_datadir}/%{name}/cmd/create-tracker/*.py
-%{_datadir}/%{name}/cmd/ggi/*.py
-%{_datadir}/%{name}/cmd/inspect/*.py
-%{_datadir}/%{name}/cmd/check-deps/*.py
-%{_datadir}/%{name}/cmd/lint/*.py
-%{_datadir}/%{name}/cmd/review-request/*.py
-%{_datadir}/%{name}/cmd/clean-resources/*.py
-#%%{_sysconfdir}/bash_completion.d/gofed-base_bash_completion
-%{_datadir}/man/man1/gofed.1*
-
-%files build
-%{_datadir}/%{name}/cmd/tools/*.py
-%{_datadir}/%{name}/cmd/tools/bbobranches
-%{_datadir}/%{name}/cmd/tools/build
-%{_datadir}/%{name}/cmd/tools/gcp
-%{_datadir}/%{name}/cmd/tools/pull
-%{_datadir}/%{name}/cmd/tools/push
-%{_datadir}/%{name}/cmd/tools/scratch-build
-%{_datadir}/%{name}/cmd/tools/update
-%{_datadir}/%{name}/cmd/bump-spec/*.py
-%{_datadir}/%{name}/cmd/wizard/*.py
-#%%{_sysconfdir}/bash_completion.d/gofed-build_bash_completion
-
-%files scan
-%{_datadir}/%{name}/cmd/goapidiff/*.py
-%{_datadir}/%{name}/cmd/approx-deps/*.py
-%{_datadir}/%{name}/cmd/scan-deps/*.py
-%{_datadir}/%{name}/cmd/scan-distro/*.py
-%{_datadir}/%{name}/cmd/scan-packages/*.py
-%{_datadir}/%{name}/cmd/unit-test/*.py
-#%%{_sysconfdir}/bash_completion.d/gofed-scan_bash_completion
-
-%files gofedlib
-%license LICENSE
-%{python2_sitelib}/gofedlib
-%{python2_sitelib}/gofedlib-?.?.???-py2.7.egg-info
-%{_bindir}/gofedlib-cli
-
-%files resources
-%license LICENSE
-%{python2_sitelib}/gofedresources
-%{python2_sitelib}/gofedresources-?.?.?-py2.7.egg-info
-
-%files infra
-%license LICENSE
-%{python2_sitelib}/gofedinfra
-%{python2_sitelib}/gofedinfra-?.?.?-py2.7.egg-info
-
-%files -n python2-cmdsignature
-%license LICENSE
-%{python2_sitelib}/cmdsignature
-%{python2_sitelib}/cmdsignature-?.?.?-py2.7.egg-info
-
-%files docker
-%{_bindir}/gofed-docker
-
-%files
-%license LICENSE
-%doc *.md
-%config(noreplace) %{_sysconfdir}/gofed.conf
-%{_datadir}/%{name}/modules
-#%%{_mandir}/man1/gofed.1.gz
-%attr(-, gofed, gofed) %{_sharedstatedir}/%{name}
-%{_bindir}/%{name}
-%{_datadir}/%{name}/*.py
-
-%changelog
-* Thu Jan 31 2019 Fedora Release Engineering <releng(a)fedoraproject.org> -
1.0.0-0.22.rc1
-- Rebuilt for
https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
-
-* Tue Jul 31 2018 Florian Weimer <fweimer(a)redhat.com> - 1.0.0-0.21.rc1
-- Rebuild with fixed binutils
-
-* Sun Jul 29 2018 Jan Chaloupka <jchaloup(a)redhat.com> - 1.0.0-0.20.rc1
-- s/python/python2.7
- resolves: #1604179
-
-* Fri Jul 13 2018 Fedora Release Engineering <releng(a)fedoraproject.org> -
1.0.0-0.19.rc1
-- Rebuilt for
https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
-
-* Wed Mar 07 2018 Jan Chaloupka <jchaloup(a)redhat.com> - 1.0.0-0.18.rc1
-- Generate spec files with new macros
-
-* Tue Feb 20 2018 Iryna Shcherbina <ishcherb(a)redhat.com> - 1.0.0-0.17.rc1
-- Update Python 2 dependency declarations to new packaging standards
- (See
https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
-
-* Wed Feb 07 2018 Fedora Release Engineering <releng(a)fedoraproject.org> -
1.0.0-0.16.rc1
-- Rebuilt for
https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
-
-* Sun Dec 17 2017 Zbigniew Jdrzejewski-Szmek <zbyszek(a)in.waw.pl> - 1.0.0-0.15.rc1
-- python-cmdsignature binary package is renamed to python2-cmdsignature
-
-* Tue Nov 07 2017 Igor Gnatenko <ignatenko(a)redhat.com> - 1.0.0-0.14.rc1
-- Fix issues in packaging
-
-* Mon Sep 18 2017 Jan Chaloupka <jchaloup(a)redhat.com> - 1.0.0-0.13.rc1
-- python-PyGithub renamed to python2-pygithub
- resolves: #1492244
-
-* Wed Aug 02 2017 Fedora Release Engineering <releng(a)fedoraproject.org> -
1.0.0-0.12.rc1
-- Rebuilt for
https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
-
-* Wed Jul 26 2017 Fedora Release Engineering <releng(a)fedoraproject.org> -
1.0.0-0.11.rc1
-- Rebuilt for
https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
-
-* Mon Jun 26 2017 Jan Chaloupka <jchaloup(a)redhat.com> - 1.0.0-0.10.rc1
-- Exclude ppc64 architecture (missing docker rpm)
- resolves: #1465019
-
-* Wed Mar 01 2017 Jan Chaloupka <jchaloup(a)redhat.com> - 1.0.0-0.9.rc1
-- Provide a simple man page
- resolves: #1426854
-
-* Fri Feb 10 2017 Fedora Release Engineering <releng(a)fedoraproject.org> -
1.0.0-0.8.rc1
-- Rebuilt for
https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
-
-* Wed Jan 25 2017 Jan Chaloupka <jchaloup(a)redhat.com> - 1.0.0-0.7.rc1
-- Bump to a7766e5587800fc3b49c46149605cd95a98eb31b
- resolves: #1416407
-
-* Tue Dec 27 2016 Fabio Alessandro Locati <fale(a)fedoraproject.org> - 1.0.0-0.6.rc1
-- Compile the docker one only for supported arches
-
-* Tue Oct 04 2016 jchaloup <jchaloup(a)redhat.com> - 1.0.0-0.5.rc1
-- create missing directories under /var/lib/gofed
-
-* Fri Sep 23 2016 jchaloup <jchaloup(a)redhat.com> - 1.0.0-0.4.rc1
-- extend the list of known deps directories with vendor (upstream #117)
-
-* Thu Sep 22 2016 jchaloup <jchaloup(a)redhat.com> - 1.0.0-0.3.rc1
-- Add missing deps, minor fixes
-
-* Wed Sep 21 2016 jchaloup <jchaloup(a)redhat.com> - 1.0.0-0.2.rc1
-- Bump deps, conflict with older gofed
-
-* Sun Sep 18 2016 jchaloup <jchaloup(a)redhat.com> - 1.0.0-0.rc1.1
-- Update to gofed infrastructure
-
-* Thu Jul 21 2016 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> -
0.0.10-5
--
https://fedoraproject.org/wiki/Changes/golang1.7
-
-* Wed Apr 06 2016 jchaloup <jchaloup(a)redhat.com> - 0.0.10-4
-- Define gobuild macro if not defined (for other distros without go-srpm-macros)
-
-* Mon Feb 22 2016 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> -
0.0.10-3
--
https://fedoraproject.org/wiki/Changes/golang1.6
-
-* Wed Feb 03 2016 Fedora Release Engineering <releng(a)fedoraproject.org> - 0.0.10-2
-- Rebuilt for
https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
-
-* Wed Nov 18 2015 jchaloup <jchaloup(a)redhat.com> - 0.0.10-1
-- Update to 0.0.10
-
-* Thu Sep 17 2015 jchaloup <jchaloup(a)redhat.com> - 0.0.9-3
-- Bump to upstream 04cd8f0c083e3e80bbe17fc4acd2192a1628a5be
-
-* Thu Sep 10 2015 jchaloup <jchaloup(a)redhat.com> - 0.0.9-2
-- Define license macro if not defined
-
-* Thu Sep 10 2015 jchaloup <jchaloup(a)redhat.com> - 0.0.9-1
-- Updated to version 0.0.9
-
-* Mon Aug 31 2015 jchaloup <jchaloup(a)redhat.com> - 0.0.8-3
-- Add -d option when copying symlinks. Otherwise symlinks are followed.
-
-* Sat Aug 29 2015 jchaloup <jchaloup(a)redhat.com> - 0.0.8-2
-- Add missing symlinks
-
-* Fri Aug 21 2015 jchaloup <jchaloup(a)redhat.com> - 0.0.8-1
-- Updated to version 0.0.8
-
-* Sat Aug 01 2015 jchaloup <jchaloup(a)redhat.com> - 0.0.7-1
-- Updated to version 0.0.7
-
-* Sat Jul 11 2015 jchaloup <jchaloup(a)redhat.com> - 0.0.6-1
-- Updated to version 0.0.6
-
-* Tue Jun 23 2015 jchaloup <jchaloup(a)redhat.com> - 0.0.5-1
-- Updated to version 0.0.5
-
-* Wed Jun 17 2015 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> -
0.0.4-2
-- Rebuilt for
https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
-
-* Tue Jun 09 2015 jchaloup <jchaloup(a)redhat.com> - 0.0.4-1
-- Update to version 0.0.4
- related: #1204614
-
-* Sat May 09 2015 jchaloup <jchaloup(a)redhat.com> - 0.0.3-1
-- Update to version 0.0.3
- related: #1204614
-
-* Thu Apr 02 2015 jchaloup <jchaloup(a)redhat.com> - 0.0.1-0.1.git62b0051
-- Update to version 0.0.1
- related: #1204614
-
-* Mon Mar 23 2015 jchaloup <jchaloup(a)redhat.com> - 0-0.1.gitcab0f0b
-- Initial commit for Fedora
- resolves: #1204614
diff --git a/set-correct-paths.patch b/set-correct-paths.patch
deleted file mode 100644
index daa5f35..0000000
--- a/set-correct-paths.patch
+++ /dev/null
@@ -1,45 +0,0 @@
-From d5cecf2968c4ca45479ce35d4108336e03b04f5e Mon Sep 17 00:00:00 2001
-From: Jan Chaloupka <jchaloup(a)redhat.com>
-Date: Thu, 22 Sep 2016 12:26:50 +0200
-Subject: [PATCH] set correct paths
-
----
- gofed | 3 +++
- gofed-docker | 2 ++
- 2 files changed, 5 insertions(+)
-
-diff --git a/gofed b/gofed
-index 9d60468..408ad35 100755
---- a/gofed
-+++ b/gofed
-@@ -10,6 +10,8 @@ def getScriptDir(file = __file__):
-
- if __name__ == "__main__":
- script_dir = getScriptDir(__file__)
-+ if script_dir.startswith("/usr/bin") or
script_dir.startswith("/bin"):
-+ script_dir = "/usr/share/gofed"
-
- parser = ProgramSignatureParser(
- "gofed",
-@@ -31,4 +33,5 @@ if __name__ == "__main__":
- )
-
- cmd = parser.signature()
-+ cmd = "PYTHONPATH=${PYTHONPATH:-/usr/share} %s" % cmd
- exit(call(cmd, shell=True))
-diff --git a/gofed-docker b/gofed-docker
-index 8a97a28..6b2278b 100755
---- a/gofed-docker
-+++ b/gofed-docker
-@@ -15,6 +15,8 @@ if __name__ == "__main__":
- cmd = "docker run -t gofed/gofed:v1.0.0 /home/gofed/gofed/hack/gofed.sh -h"
- else:
- script_dir = getScriptDir(__file__)
-+ if script_dir.startswith("/usr/bin") or
script_dir.startswith("/bin"):
-+ script_dir = "/usr/share/gofed"
-
- plugin_directory = "%s/cmd" % script_dir
- plugins = filter(lambda l: l.endswith(".yml"),
os.listdir(plugin_directory))
---
-1.9.3
-
diff --git a/sources b/sources
deleted file mode 100644
index e4b258d..0000000
--- a/sources
+++ /dev/null
@@ -1,5 +0,0 @@
-SHA512 (cmdsignature-3320757.tar.gz) =
d7d00665861e42d1c9e8f91e466c99a0feaab312ce17492846730aeff842a7172de857cb8f9ac926d150dc4b17dabf14d4a552b1d537e45d894adccbb91bd299
-SHA512 (gofedlib-c2e5b00.tar.gz) =
f166d5f2b85904b4e6c40d72c9ba574760ec3d61dc2180a1e93fd556b1f1ec829456c9c31a9b6db4a969a7499dc409c48fae3c48cad9dea5feb75b633a70ef59
-SHA512 (infra-6bff7ae.tar.gz) =
6b99f2b6c45b1d5d5267f9eb906037ad7da2ef69425aadf252cc0a52f5127e8d81dd2f7db535589d82bd7d7fad0efe833a244b1f8197466d394d1cf55f924869
-SHA512 (resources-7e414c7.tar.gz) =
8f3c2faa5536c0d9fc2912b4b9f974026c05c8677234bf31af0470e651d126795a1bc09c806971bfff1d1d39dae2dc6c75404035925cde0d4c434a88f19c83fe
-SHA512 (gofed-48d80fe.tar.gz) =
7190ea4027a7e1735268492a049a006293ba431b028ce20dcaeb4ab5cb75df740fe62b0a008f933644401c752cf6de35b140f18c995dd2b9277ebe432ca17c9b