[packages/youtube-dl] up to 20151221; use new python macros

glen glen at pld-linux.org
Sun Jan 3 23:11:30 CET 2016


commit 8212b4a05c9c0ed39b6033b6d67cdf0d4f4f1ac7
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Mon Jan 4 00:11:12 2016 +0200

    up to 20151221; use new python macros

 youtube-dl.spec | 15 +++++----------
 1 file changed, 5 insertions(+), 10 deletions(-)
---
diff --git a/youtube-dl.spec b/youtube-dl.spec
index 40c5104..363b082 100644
--- a/youtube-dl.spec
+++ b/youtube-dl.spec
@@ -1,5 +1,5 @@
 # full version number as seen on youtube-dl website
-%define	verlong	2015.11.10
+%define	verlong	2015.12.21
 
 # transform version so we don't have to bump epoch after four digit upgrades:
 # 2013.01.17.1 becomes 20130117_1
@@ -16,12 +16,12 @@ Epoch:		2
 License:	Public Domain
 Group:		Applications/System
 Source0:	http://youtube-dl.org/downloads/%{verlong}/%{name}-%{verlong}.tar.gz
-# Source0-md5:	b4fa9e4a08d21b25733f36f140180228
+# Source0-md5:	356c0a3317547866722891947a2cc05f
 Source1:	%{name}.conf
 URL:		http://youtube-dl.org/
 BuildRequires:	python-setuptools
 BuildRequires:	rpm-pythonprov
-BuildRequires:	rpmbuild(macros) >= 1.219
+BuildRequires:	rpmbuild(macros) >= 1.713
 Requires:	python-pyxattr >= 0.5.0
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -67,16 +67,11 @@ Dopełnianie parametrów w fish dla polecenia youtube-dl.
 mv %{name} .tmp; mv .tmp/* .
 
 %build
-%{__python} setup.py build
+%py_build
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_bindir}
-%{__python} setup.py install \
-	--skip-build \
-	--optimize=2 \
-	--root=$RPM_BUILD_ROOT
-
+%py_install
 %py_postclean
 
 install -d $RPM_BUILD_ROOT%{_sysconfdir}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/youtube-dl.git/commitdiff/8212b4a05c9c0ed39b6033b6d67cdf0d4f4f1ac7



More information about the pld-cvs-commit mailing list