[Rpm-maint] [rpm-software-management/rpm] RFE: Ability to have a file in %files via a command (macro) evaluated at buildtime (#894)

Miro Hrončok notifications at github.com
Fri Oct 11 10:51:55 UTC 2019


The use-case was to have a `%{pyproject_metadata}` macro like this:

```
%files -n python3-foo
%{pyproject_metadata}
%{python3_sitelib}/foo/
```

The macro would:

 * find the built Python dist-info directory, parse the metadata from it, locate the License-File filed (not yet available)  and output something like:

```
%dir %{python_sitelib}/foo-41.4.0.dist-info/
%license %{python_sitelib}/foo-41.4.0.dist-info/INSTALLER
%{python_sitelib}/foo-41.4.0.dist-info/dependency_links.txt
%{python_sitelib}/foo-41.4.0.dist-info/entry_points.txt
%{python_sitelib}/foo-41.4.0.dist-info/LICENSE
%{python_sitelib}/foo-41.4.0.dist-info/METADATA
%{python_sitelib}/foo-41.4.0.dist-info/RECORD
%{python_sitelib}/foo-41.4.0.dist-info/top_level.txt
%{python_sitelib}/foo-41.4.0.dist-info/WHEEL
%{python_sitelib}/foo-41.4.0.dist-info/zip-safe
```

-----


Instead, we can have `%{pyproject_install}` to output a special file and use:

```
%files -n python3-foo -f %pyproject_metadata
%{python3_sitelib}/foo/
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/894#issuecomment-541016101
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20191011/f1c7e57f/attachment.html>


More information about the Rpm-maint mailing list