From 18c4bd49bc5663b86f13776b21352575af9057c8 Mon Sep 17 00:00:00 2001 From: Miroslav Suchý Date: Sep 13 2018 09:05:13 +0000 Subject: use git_dir_archive instead of git_dir_pack This will pack into Source0 only commited code and will not include uncommited files. Resolves pagure issue: #321 --- diff --git a/backend/copr-backend.spec b/backend/copr-backend.spec index d72857d..96fda0e 100644 --- a/backend/copr-backend.spec +++ b/backend/copr-backend.spec @@ -14,7 +14,7 @@ URL: https://pagure.io/copr/copr # git checkout {{{ cached_git_name_version }}} # cd copr/backend # rpkg spec --sources -Source0: {{{ git_dir_pack }}} +Source0: {{{ git_dir_archive }}} BuildArch: noarch BuildRequires: asciidoc diff --git a/cli/copr-cli.spec b/cli/copr-cli.spec index 52ba6ea..cf48416 100644 --- a/cli/copr-cli.spec +++ b/cli/copr-cli.spec @@ -18,7 +18,7 @@ URL: https://pagure.io/copr/copr # git checkout {{{ cached_git_name_version }}} # cd copr/cli # rpkg spec --sources -Source0: {{{ git_dir_pack }}} +Source0: {{{ git_dir_archive }}} BuildArch: noarch diff --git a/common/python-copr-common.spec b/common/python-copr-common.spec index f4830ad..6b99808 100644 --- a/common/python-copr-common.spec +++ b/common/python-copr-common.spec @@ -26,7 +26,7 @@ URL: https://pagure.io/copr/copr # git checkout {{{ cached_git_name_version }}} # cd copr/common # rpkg spec --sources -Source0: {{{ git_dir_pack }}} +Source0: {{{ git_dir_archive }}} BuildArch: noarch diff --git a/dist-git/copr-dist-git.spec b/dist-git/copr-dist-git.spec index d99debf..a794860 100644 --- a/dist-git/copr-dist-git.spec +++ b/dist-git/copr-dist-git.spec @@ -10,7 +10,7 @@ URL: https://pagure.io/copr/copr # git checkout {{{ cached_git_name_version }}} # cd copr/dist-git # rpkg sources --spec -Source0: {{{ git_dir_pack }}} +Source0: {{{ git_dir_archive }}} BuildArch: noarch diff --git a/frontend/copr-frontend.spec b/frontend/copr-frontend.spec index 254d3e3..bc3983f 100644 --- a/frontend/copr-frontend.spec +++ b/frontend/copr-frontend.spec @@ -51,7 +51,7 @@ URL: https://pagure.io/copr/copr # git checkout {{{ cached_git_name_version }}} # cd copr/frontend # rpkg spec --sources -Source0: {{{ git_dir_pack }}} +Source0: {{{ git_dir_archive }}} BuildArch: noarch diff --git a/keygen/copr-keygen.spec b/keygen/copr-keygen.spec index 084c657..2100b31 100644 --- a/keygen/copr-keygen.spec +++ b/keygen/copr-keygen.spec @@ -12,7 +12,7 @@ URL: https://pagure.io/copr/copr # git checkout {{{ cached_git_name_version }}} # cd copr/keygen # rpkg spec --sources -Source0: {{{ git_dir_pack }}} +Source0: {{{ git_dir_archive }}} BuildArch: noarch BuildRequires: util-linux diff --git a/mocks/copr-mocks.spec b/mocks/copr-mocks.spec index d327706..457f4ab 100644 --- a/mocks/copr-mocks.spec +++ b/mocks/copr-mocks.spec @@ -8,7 +8,7 @@ Release: 1%{?dist} # git checkout {{{ cached_git_name_version }}} # cd copr/mocks # rpkg spec --sources -Source0: {{{ git_dir_pack }}} +Source0: {{{ git_dir_archive }} License: GPLv2+ BuildArch: noarch diff --git a/prunerepo/prunerepo.spec b/prunerepo/prunerepo.spec index c0de957..569bad6 100644 --- a/prunerepo/prunerepo.spec +++ b/prunerepo/prunerepo.spec @@ -8,7 +8,7 @@ Release: 1%{?dist} # git checkout {{{ cached_git_name_version }}} # cd copr/prunerepo # rpkg spec --sources -Source0: {{{ git_dir_pack }}} +Source0: {{{ git_dir_archive }}} License: GPLv2+ BuildArch: noarch diff --git a/python/python-copr.spec b/python/python-copr.spec index 2b7b318..35b6097 100644 --- a/python/python-copr.spec +++ b/python/python-copr.spec @@ -24,7 +24,7 @@ URL: https://pagure.io/copr/copr # git checkout {{{ cached_git_name_version }}} # cd copr/python # rpkg spec --sources -Source0: {{{ git_dir_pack }}} +Source0: {{{ git_dir_archive }}} BuildArch: noarch diff --git a/rpmbuild/copr-rpmbuild.spec b/rpmbuild/copr-rpmbuild.spec index 5967872..145f63c 100644 --- a/rpmbuild/copr-rpmbuild.spec +++ b/rpmbuild/copr-rpmbuild.spec @@ -23,7 +23,7 @@ BuildArch: noarch # git checkout {{{ cached_git_name_version }}} # cd copr/rpmbuild # rpkg spec --sources -Source0: {{{ git_dir_pack }}} +Source0: {{{ git_dir_archive }}} BuildRequires: %python-devel BuildRequires: %rpm_python diff --git a/selinux/copr-selinux.spec b/selinux/copr-selinux.spec index 21193d9..c3902df 100644 --- a/selinux/copr-selinux.spec +++ b/selinux/copr-selinux.spec @@ -20,7 +20,7 @@ URL: https://pagure.io/copr/copr # git checkout {{{ cached_git_name_version }}} # cd copr/selinux # rpkg spec --sources -Source0: {{{ git_dir_pack }}} +Source0: {{{ git_dir_archive }}} BuildArch: noarch BuildRequires: asciidoc