[packages/yt-dlp] drop setuptools based hack and use new %py3_*_pyproject macros
atler
atler at pld-linux.org
Wed Feb 19 17:48:41 CET 2025
commit 4da07700903978f9424716fc74dfc9c83a560ef6
Author: Jan Palus <atler at pld-linux.org>
Date: Wed Feb 19 17:15:31 2025 +0100
drop setuptools based hack and use new %py3_*_pyproject macros
yt-dlp.spec | 17 +++++++----------
1 file changed, 7 insertions(+), 10 deletions(-)
---
diff --git a/yt-dlp.spec b/yt-dlp.spec
index 95b4cd7..a51a9d3 100644
--- a/yt-dlp.spec
+++ b/yt-dlp.spec
@@ -9,10 +9,12 @@ Source0: https://github.com/yt-dlp/yt-dlp/archive/%{version}/%{name}-%{version}.
# Source0-md5: c5ccb17b45968ceae0373330670ddcf2
URL: https://github.com/yt-dlp/yt-dlp
BuildRequires: python3 >= 1:3.9
+BuildRequires: python3-build
+BuildRequires: python3-hatchling
+BuildRequires: python3-installer
BuildRequires: python3-modules >= 1:3.9
-BuildRequires: python3-setuptools
BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.720
+BuildRequires: rpmbuild(macros) >= 2.044
Requires: python3-modules >= 1:3.9
Requires: python3-setuptools
Requires: python3-%{name} = %{version}-%{release}
@@ -46,18 +48,13 @@ Narzędzie Pythona 3 do wydobywania filmów z YouTube.
%prep
%setup -q
-cat > setup.py <<EOF
-from setuptools import setup, find_packages
-setup(version='%{version}', packages=find_packages(include=['yt_dlp', 'yt_dlp.*']))
-EOF
-
%build
-%py3_build
+%py3_build_pyproject
%install
rm -rf $RPM_BUILD_ROOT
-%py3_install
+%py3_install_pyproject
%clean
rm -rf $RPM_BUILD_ROOT
@@ -70,4 +67,4 @@ rm -rf $RPM_BUILD_ROOT
%files -n python3-%{name}
%defattr(644,root,root,755)
%{py3_sitescriptdir}/yt_dlp
-%{py3_sitescriptdir}/yt_dlp-*-py*.egg-info
+%{py3_sitescriptdir}/yt_dlp-*.dist-info
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/yt-dlp.git/commitdiff/10e11b9c2505ad7cbd9f0ec62081492d1fbf9f66
More information about the pld-cvs-commit
mailing list