Skip to content

"%include"d spec files are not parsed #51

Open
@imphil

Description

@imphil

I have spec files that use "%include" to share common parts, like this (in this case, we have "versioned" packages that are co-installable):

# my-name-1.0.spec
%global base_name my-name

Version:        1.0
Name:           %{base_name}-%{version}
Release:        1%{?dist}
Source100:      %{base_name}-common.inc

%include %{SOURCE100}
# my-name-common.inc
Source0:        %{base_name}-%{version}.tar.xz
Summary:        My summary
License:        GPLv3

I then want to get all sources with spec = Spec.from_file("my-name-1.0.spec").

Currently, spec.sources will only contain ["my-name-common.inc"].

It seems that python-rpm-spec does not parse the %include directive at all.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions