From 85645d1cf4ad365ca896dde621d4edbd25736b85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C4=9Bj=20Cepl?= Date: Fri, 5 Jun 2015 14:51:50 +0200 Subject: [PATCH] Fix the License: field to Unlicense. --- youtube-dl.spec | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/youtube-dl.spec b/youtube-dl.spec index a61e1a3..94acc28 100644 --- a/youtube-dl.spec +++ b/youtube-dl.spec @@ -1,8 +1,15 @@ +%if 0%{?rhel} && 0%{?rhel} <= 6 +%{!?__python2: %global __python2 /usr/bin/python2} +%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} +%{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} +%{!?__python2: %global __python2 /usr/bin/python2} +%endif + Name: youtube-dl Version: 2015.06.04.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A small command-line program to download online videos -License: Public Domain +License: Unlicense URL: https://yt-dl.org Source0: https://yt-dl.org/downloads/%{version}/%{name}-%{version}.tar.gz Source1: https://yt-dl.org/downloads/%{version}/youtube-dl-%{version}.tar.gz.sig @@ -55,7 +62,11 @@ install -pm644 youtube-dl.zsh %{buildroot}%{_datadir}/zsh/site-functions/_youtub %files %doc README.md +%if 0%{?fedora} && 0%{?fedora} > 20 %license LICENSE +%else +%doc LICENSE +%endif %{_bindir}/%{name} %{_mandir}/man1/%{name}.1* %config(noreplace) %{_sysconfdir}/%{name}.conf @@ -66,6 +77,9 @@ install -pm644 youtube-dl.zsh %{buildroot}%{_datadir}/zsh/site-functions/_youtub %changelog +* Fri Jun 05 2015 Matej Cepl - 2015.06.04.1-2 +- Fix the License: field to Unlicense. + * Fri Jun 05 2015 Matej Cepl - 2015.06.04.1-1 - Update to the latest release (#1222017)