mcepl pushed to youtube-dl (el6). "Use python byte compiler"

notifications at fedoraproject.org notifications at fedoraproject.org
Fri Jun 5 09:25:55 UTC 2015


From b978157ffd06afa5862cbd50b6f154dbaa9f6db0 Mon Sep 17 00:00:00 2001
From: Alexey Kurov <nucleo at fedoraproject.org>
Date: Tue, 27 Jan 2015 17:56:56 +0100
Subject: Use python byte compiler


diff --git a/.gitignore b/.gitignore
index 8cc2ff3..9144a77 100644
--- a/.gitignore
+++ b/.gitignore
@@ -21,3 +21,5 @@
 /youtube-dl-2015.01.11.tar.gz.sig
 /youtube-dl-2015.01.15.1.tar.gz
 /youtube-dl-2015.01.15.1.tar.gz.sig
+/youtube-dl-2015.01.25.tar.gz
+/youtube-dl-2015.01.25.tar.gz.sig
diff --git a/sources b/sources
index 422c6ba..4e6b0d4 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
-06279e030cf27542671ffcc30afce19e  youtube-dl-2015.01.15.1.tar.gz
-79597b5e99ebecb416bdc5bf88e78dfc  youtube-dl-2015.01.15.1.tar.gz.sig
+880a10563d31942f3b54f48f167a875f  youtube-dl-2015.01.25.tar.gz
+99be5d335925e4ff081250abbc86583f  youtube-dl-2015.01.25.tar.gz.sig
diff --git a/youtube-dl.spec b/youtube-dl.spec
index 03d9282..bdc6833 100644
--- a/youtube-dl.spec
+++ b/youtube-dl.spec
@@ -1,5 +1,5 @@
 Name:           youtube-dl
-Version:        2015.01.15.1
+Version:        2015.01.25
 Release:        1%{?dist}
 Summary:        A small command-line program to download online videos
 License:        Public Domain
@@ -8,10 +8,9 @@ Source0:        https://yt-dl.org/downloads/%{version}/%{name}-%{version}.tar.gz
 Source1:        https://yt-dl.org/downloads/%{version}/youtube-dl-%{version}.tar.gz.sig
 Source2:        gpgkey-7D33D762FD6C35130481347FDB4B54CBA4826A18.gpg
 Source3:        %{name}.conf
-BuildRequires:  python2
+BuildRequires:  python-devel
 # Tests failed because of no connection in Koji.
 # BuildRequires:  python-nose
-Requires:       python
 BuildArch:      noarch
 # For source verification with gpgv
 BuildRequires:  gpg
@@ -23,15 +22,24 @@ Small command-line program to download videos from YouTube and other sites.
 gpgv --quiet --keyring %{SOURCE2} %{SOURCE1} %{SOURCE0}
 %setup -qn %{name}
 
+cp -a setup.py setup.py.installpath
+# Remove files that are installed to the wrong path
+sed -i '/youtube-dl.bash-completion/d' setup.py
+sed -i '/youtube-dl.fish/d' setup.py
+sed -i '/README.txt/d' setup.py
+
 %build
-make %{?_smp_mflags}
+%{__python2} setup.py build
 
 %install
-%make_install PREFIX=%{_prefix} \
-              MANDIR=%{_mandir} \
-              PYTHON=%{__python2}
+%{__python2} setup.py install --root=%{buildroot}
+
 mkdir -p %{buildroot}%{_sysconfdir}
 install -pm644 %{S:3} %{buildroot}%{_sysconfdir}
+mkdir -p %{buildroot}%{_sysconfdir}/bash_completion.d/
+install -pm644 youtube-dl.bash-completion %{buildroot}%{_sysconfdir}/bash_completion.d/youtube-dl
+mkdir -p %{buildroot}%{_datadir}/zsh/site-functions/
+install -pm644 youtube-dl.zsh %{buildroot}%{_datadir}/zsh/site-functions/_youtube-dl
 
 %check
 #make test
@@ -42,16 +50,24 @@ install -pm644 %{S:3} %{buildroot}%{_sysconfdir}
 %{_mandir}/man1/%{name}.1*
 %config(noreplace) %{_sysconfdir}/%{name}.conf
 %{_sysconfdir}/bash_completion.d/%{name}
-%exclude %{_sysconfdir}/fish/completions/youtube-dl.fish
 %{_datadir}/zsh/site-functions/_youtube-dl
+%{python_sitelib}/youtube_dl/
+%{python_sitelib}/youtube_dl*.egg-info
 
 %changelog
+* Tue Jan 27 2015 Till Maas <opensource at till.name> - 2015.01.25-1
+- Update to new release
+
+* Tue Jan 27 2015 Alexey Kurov <nucleo at fedoraproject.org> - 2015.01.25.1-1
+- Python 2.7 byte compile
+
 * Fri Jan 16 2015 Matej Cepl <mcepl at redhat.com> - 2015.01.15.1-1
 - Update to new release.
 
 * Wed Jan 14 2015 Till Maas <opensource at till.name> - 2015.01.11-1
 - Update to new release
 
+
 * Sat Dec 13 2014 Till Maas <opensource at till.name> - 2014.12.10.3-1
 - Update to new release
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/youtube-dl.git/commit/?h=el6&id=b978157ffd06afa5862cbd50b6f154dbaa9f6db0


More information about the scm-commits mailing list