Uploaded image for project: 'RHEL Documentation'
  1. RHEL Documentation
  2. RHELDOCS-19473

Source URL of the pello package of the "4.5.4. An example SPEC file for a program written in Python" section prevents the usage of the pello source archive created in the previous section

XMLWordPrintable

    • None
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat Enterprise Linux
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified

      Document link: https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/9/html-single/packaging_and_distributing_software/index#an-example-spec-file-for-a-program-written-in-python-rhel9_working-with-spec-files

      Section number and name: 4.5.4. An example SPEC file for a program written in Python

      Describe the issue:

      Currently the value of the Source field of the SPEC file of the pello package:

      Source: %{url}/archive/v%{version}/Pello-%{version}.tar.gz

      Uses the Pello-%{version}.tar.gz base name, which is inconsistent with the source archive file created in 3.3.2. Creating a source code archive for a sample Python program section causes the following error to occur when the user is trying to build the source RPM in 4.6.2. Rebuilding a binary RPM from a source RPM section:

      [root@rhel-packaging-lab project]# rpmbuild -bs pello.spec
      error: Bad source: /root/rpmbuild/SOURCES/Pello-0.1.1.tar.gz: No such file or directory

      Impact of this issue: The documentation consumer cannot proceed with the operation due to the error.

      Suggestions for improvement:

      • Rename the source repository to NOT use the titlecase name.
      • Don't specify the remote repository in the Source field.

              mpershin@redhat.com Mariya Pershina
              lin-buo-ren ๆž—ๅšไป Buo-ren Lin (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: