You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by wo...@apache.org on 2019/10/11 03:04:17 UTC

[couchdb-pkg] branch improve-multiarch created (now ddb5437)

This is an automated email from the ASF dual-hosted git repository.

wohali pushed a change to branch improve-multiarch
in repository https://gitbox.apache.org/repos/asf/couchdb-pkg.git.


      at ddb5437  Minor cleanup for better multiarch support

This branch includes the following new commits:

     new ddb5437  Minor cleanup for better multiarch support

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[couchdb-pkg] 01/01: Minor cleanup for better multiarch support

Posted by wo...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

wohali pushed a commit to branch improve-multiarch
in repository https://gitbox.apache.org/repos/asf/couchdb-pkg.git

commit ddb543740d377cb7a75b705e2a2fd9f726c02097
Author: Joan Touzet <wo...@apache.org>
AuthorDate: Thu Oct 10 20:03:49 2019 -0700

    Minor cleanup for better multiarch support
---
 Makefile               | 19 ++-----------------
 rpm/SPECS/couchdb.spec | 16 ++++++++++++----
 2 files changed, 14 insertions(+), 21 deletions(-)

diff --git a/Makefile b/Makefile
index 92de59a..1e93cc8 100644
--- a/Makefile
+++ b/Makefile
@@ -60,7 +60,7 @@ debian-buster: PLATFORM=buster
 debian-buster: DIST=debian-buster
 debian-buster: buster
 # Lintian doesn't install correctly into a cross-built Docker container ?!
-arm64v8-debian-buster: aarch64v8-debian-buster
+arm64v8-debian-buster: aarch64-debian-buster
 aarch64-debian-buster: PLATFORM=buster
 aarch64-debian-buster: DIST=debian-buster
 aarch64-debian-buster: debian-no-lintian
@@ -123,21 +123,6 @@ centos8: make-rpmbuild centos
 
 openSUSE: centos7
 
-# Erlang is built from source on ARMv8
-# These packages are not installed, but the files are present
-drop-deb-deps-for-source-arch:
-	if [ "$(shell arch)" != "x86_64" ]; then                          \
-		sed -i '/erlang-dev/d' $(DISTDIR)/debian/control;         \
-		sed -i '/erlang-crypto/d' $(DISTDIR)/debian/control;      \
-		sed -i '/erlang-dialyzer/d' $(DISTDIR)/debian/control;    \
-		sed -i '/erlang-eunit/d' $(DISTDIR)/debian/control;       \
-		sed -i '/erlang-inets/d' $(DISTDIR)/debian/control;       \
-		sed -i '/erlang-xmerl/d' $(DISTDIR)/debian/control;       \
-		sed -i '/erlang-os-mon/d' $(DISTDIR)/debian/control;      \
-		sed -i '/erlang-reltool/d' $(DISTDIR)/debian/control;     \
-		sed -i '/erlang-syntax-tools/d' $(DISTDIR)/debian/control;\
-	fi
-
 # ######################################
 get-couch:
 	mkdir -p $(COUCHDIR)
@@ -165,7 +150,7 @@ copy-debian:
 	rm -rf $(DISTDIR)/debian
 	cp -R debian $(DISTDIR)
 
-update-changelog: drop-deb-deps-for-source-arch
+update-changelog:
 	cd $(DISTDIR) && dch -v $(VERSION)~$(PLATFORM) $(DEBCHANGELOG)
 
 dpkg:
diff --git a/rpm/SPECS/couchdb.spec b/rpm/SPECS/couchdb.spec
index b17c7c7..969cfcc 100644
--- a/rpm/SPECS/couchdb.spec
+++ b/rpm/SPECS/couchdb.spec
@@ -42,16 +42,24 @@ BuildRequires: gcc-c++
 BuildRequires: pkg-config
 Requires(pre): shadow
 BuildRequires: python3
-Requires(post): python3-progressbar
-Requires(post): python3-requests
 %else
 BuildRequires: esl-erlang
 BuildRequires: gcc
 Requires(pre): shadow-utils
 #BuildRequires: python-pip
 #BuildRequires: python-sphinx >= 1.5.3
-Requires(post): python-progressbar
-Requires(post): python-requests
+%endif
+
+%if 0%{?fedora} || 0%{?rhel} >= 8 || 0%{?suse_version}
+%if 0%{?suse_version} || 0%{?fedora}
+Requires(post): python3-progressbar
+%endif
+Requires(post): python3
+Requires(post): python3-requests
+%endif
+%if 0%{?rhel} <= 7
+Requires(post): python34-requests
+Requires(post): python34
 %endif
 
 BuildRequires: git