From 0a2c9ff3ae987f63e5cbd04ba6252a6a8f350b86 Mon Sep 17 00:00:00 2001 From: Troy Dawson Date: Wed, 20 Nov 2019 13:51:48 -0800 Subject: [PATCH] Enable auto python requires generation --- epel-rpm-macros.spec | 10 +++++++++- pythondist.attr | 3 +++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 pythondist.attr diff --git a/epel-rpm-macros.spec b/epel-rpm-macros.spec index b23583e..c9011fa 100644 --- a/epel-rpm-macros.spec +++ b/epel-rpm-macros.spec @@ -1,6 +1,6 @@ Name: epel-rpm-macros Version: 8 -Release: 5 +Release: 6 Summary: Extra Packages for Enterprise Linux RPM macros Group: System Environment/Base @@ -13,6 +13,7 @@ URL: http://download.fedoraproject.org/pub/epel Source0: macros.epel-rpm-macros Source1: macros.zzz-epel-override Source2: gpgverify +Source3: pythondist.attr Source9: GPL BuildArch: noarch @@ -45,14 +46,21 @@ install -Dpm 644 %{SOURCE1} \ install -Dpm 755 %{SOURCE2} \ %{buildroot}%{_rpmconfigdir}/gpgverify +install -Dpm 644 %{SOURCE3} \ + %{buildroot}%{_fileattrsdir}/pythondist.attr + %files %license GPL /usr/lib/rpm/macros.d/macros.epel-rpm-macros /etc/rpm/macros.zzz-epel-override %{_rpmconfigdir}/gpgverify +%{_fileattrsdir}/pythondist.attr %changelog +* Wed Nov 20 2019 Troy Dawson - 8-6 +- Enable python requires generator + * Wed Nov 13 2019 Kevin Fenzi - 8-5 - Bump release, because 8-4 was built in epel8-playground diff --git a/pythondist.attr b/pythondist.attr new file mode 100644 index 0000000..2bf737a --- /dev/null +++ b/pythondist.attr @@ -0,0 +1,3 @@ +%__pythondist_provides %{_rpmconfigdir}/pythondistdeps.py --provides --majorver-provides +%__pythondist_requires %{_rpmconfigdir}/pythondistdeps.py --requires +%__pythondist_path ^/usr/lib(64)?/python[[:digit:]]\\.[[:digit:]]+/site-packages/[^/]+\\.(dist-info|egg-info|egg-link)$