File youtube-viewer.spec of Package youtube-viewer
#
# spec file for package youtube-viewer
#
# Vasco Gervasi <yellowhat46@gmail.com>
#
Name: youtube-viewer
Summary: A free utility for playing youtube-videos with MPlayer
Version: 3.11.5
Release: 0
Group: Applications/Internet
License: Artistic License 2.0
URL: https://github.com/trizen/youtube-viewer
Source: %{name}-%{version}.tar.gz
#Source: https://github.com/trizen/youtube-viewer/archive/%{version}.tar.gz
Requires: perl-base
Requires: perl-libwww-perl
Requires: perl-LWP-Protocol-https
Requires: perl-Data-Dump
Requires: perl-JSON
Requires: perl-Test-LWP-UserAgent
Requires: perl-TermReadLine-Gnu
Requires: perl-JSON-XS
Requires: perl-Unicode-LineBreak
Recommends: mpv
Recommends: vlc
Recommends: youtube-dl
BuildArch: noarch
BuildRequires: perl-Module-Build
BuildRequires: perl-Data-Dump
BuildRequires: perl-JSON
BuildRequires: perl-libwww-perl
BuildRequires: perl-LWP-Protocol-https
%description
Library for youtube-viewer client to view, vote on,
and search for videos as well as subscribing to channels.
%prep
%setup -q
%build
perl Build.PL --destdir "%{buildroot}" --installdirs vendor
%check
./Build test
%install
./Build install --install_path script="%{_bindir}"
%{perl_process_packlist}
%{perl_gen_filelist}
%files
%defattr(-,root,root)
%doc README.md
%license LICENSE
%{perl_vendorlib}/WWW
%{_bindir}/youtube-viewer
%{perl_man1dir}/
%{perl_man3dir}/