File youtube-dl.spec of Package youtube-dl
#
# spec file for package youtube-dl
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: youtube-dl
Version: 2014.08.10
Release: 0
Summary: A tool for downloading from Youtube
License: SUSE-Public-Domain and CC-BY-SA-3.0
Group: Productivity/Networking/Web/Utilities
Url: http://rg3.github.io/youtube-dl/
#Git-Clone: git://github.com/rg3/youtube-dl
Source: http://youtube-dl.org/downloads/%version/%name-%version.tar.gz
Source2: http://youtube-dl.org/downloads/%version/%name-%version.tar.gz.sig
Source3: %name.keyring
BuildRequires: zip
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
youtube-dl is a small command-line program to retrieve videos from
YouTube.com and a few more sites.
%prep
%setup -qn %name
%build
perl -i -pe '
s{^PREFIX=/usr/local}{PREFIX=%_prefix};
s{^MANDIR=\$\(PREFIX\)/man}{MANDIR=%_mandir};' Makefile
make %{?_smp_mflags}
%install
make DESTDIR="%buildroot" install
%files
%defattr(-,root,root)
%doc LICENSE README.txt
%_bindir/youtube-dl
%_mandir/man1/*
%config %_sysconfdir/bash_completion.d/
%changelog