diff --git a/doc/user_documentation.rst b/doc/user_documentation.rst index f1a74c2cb..12c88f7f6 100644 --- a/doc/user_documentation.rst +++ b/doc/user_documentation.rst @@ -876,11 +876,11 @@ Please take a look at :ref:`rpkg_util_v3`. See separate page :ref:`koji_vs_copr`. -.. _`How to deal with Copr and RPMAutoSpec?`: +.. _`faq-autospec`: -.. rubric:: How to deal with Copr and RPMAutoSpec? :ref: `¶ ` +.. rubric:: How to deal with Copr and RPMAutoSpec? :ref:`¶ ` -The easiest way is to use `DistGit source type <#distgit>`. It automatically +The easiest way is to use :ref:`DistGit source type `. It automatically expands ``%autorelease`` and ``%autochangelog`` from the cloned dist-git repository. @@ -894,7 +894,7 @@ Set the source type to "Custom", and use the following script:: .. tweak the spec file or checkout the desired branch .. copr-distgit-client sources # download sources copr-distgit-client srpm --outputdir . - bsdtar xf /tmp/cpio-2.14-4.src.rpm -C "$COPR_RESULTDIR" + bsdtar xf *.src.rpm -C "$COPR_RESULTDIR" Set the Buildroot dependencies to ``copr-distgit-client bsdtar``. Alternatively you can go even deeper and use ``git rpmdevtools rpmautospec`` deps with::