Skip to content

Commit

Permalink
doc: faq - how to handle autospec
Browse files Browse the repository at this point in the history
Taken from Diego Herrera from Fedora devel list
  • Loading branch information
xsuchy authored and praiskup committed Oct 25, 2023
1 parent d87321b commit e561788
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions doc/user_documentation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -870,6 +870,26 @@ Please take a look at :ref:`rpkg_util_v3`.

See separate page :ref:`koji_vs_copr`.

.. _`How to deal with Copr and RPMAutoSpec?`:

.. rubric:: How to deal with Copr and RPMAutoSpec? :ref: `¶ <How to deal with Copr and RPMAutoSpec?>`

The easiest way is to use `DistGit source type <#distgit>`.

If you need to fine tune the process and alter it somehow you can -
Set the source type to "Custom", and use the following script::

#! /bin/sh -x
git clone <git url> <project name>
cd <project name>
spectool -g <spec file>
rpmautospec process-distgit <spec file> <spec file>

Set the Buildroot dependencies to "git rpmdevtools rpmautospec" and
the Result directory to the same <project name> string used in the
script.


.. _`I have a problem and I need to talk to a human.`:

.. rubric:: I have a problem and I need to talk to a human. :ref:`¶ <I have a problem and I need to talk to a human.>`
Expand Down

0 comments on commit e561788

Please sign in to comment.