]> git.pld-linux.org Git - packages/youtube-dl.git/commitdiff
- add version validation and update to 20130329 (which fails that validation unfortun...
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 1 Apr 2013 21:27:02 +0000 (23:27 +0200)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 1 Apr 2013 21:27:02 +0000 (23:27 +0200)
youtube-dl.spec

index fff8e692544bdbb31ef8d57076dca2d814f49c4e..15a771e20258d2a2c4ddad7e70947dd21e088d65 100644 (file)
@@ -1,11 +1,12 @@
+%define        ver     2013.03.29
 Summary:       Video extraction utility for YouTube
 Summary(pl.UTF-8):     Narzędzie do wydobywania filmów z YouTube
 Name:          youtube-dl
-Version:       20130329
+Version:       %(echo %{ver} | tr -d .)
 Release:       1
 License:       Public Domain
 Group:         Applications/System
-Source0:       https://github.com/rg3/youtube-dl/raw/2013.03.29/youtube-dl
+Source0:       https://github.com/rg3/youtube-dl/raw/%{ver}/youtube-dl?/%{name}-%{version}
 # Source0-md5: a2a30e4b9ad06538d92968ceb2d58b3f
 URL:           http://rg3.github.com/youtube-dl/
 BuildRequires: rpm-pythonprov
@@ -23,6 +24,15 @@ YouTube.com.
 youtube-dl jest programem do ściągania plików video z YouTube.com.
 
 %prep
+%setup -c -T
+
+%build
+ver=$(%{__python} %{SOURCE0} --version | tr -d .)
+
+if [ "$ver" != "%{version}" ]; then
+       echo "Source with $ver found while expecting %{version}!" >&2
+       exit 1
+fi
 
 %install
 rm -rf $RPM_BUILD_ROOT
This page took 0.040814 seconds and 4 git commands to generate.