Use python byte compiler

epel9
Alexey Kurov 10 years ago committed by Till Maas
parent 58db9ae88b
commit b978157ffd

2
.gitignore vendored

@ -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

@ -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

@ -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@till.name> - 2015.01.25-1
- Update to new release
* Tue Jan 27 2015 Alexey Kurov <nucleo@fedoraproject.org> - 2015.01.25.1-1
- Python 2.7 byte compile
* Fri Jan 16 2015 Matej Cepl <mcepl@redhat.com> - 2015.01.15.1-1
- Update to new release.
* Wed Jan 14 2015 Till Maas <opensource@till.name> - 2015.01.11-1
- Update to new release
* Sat Dec 13 2014 Till Maas <opensource@till.name> - 2014.12.10.3-1
- Update to new release

Loading…
Cancel
Save