From 7fddc20115c675887b335817947a7cfb18928c06 Mon Sep 17 00:00:00 2001 From: Sergey Zhemoytel Date: Tue, 21 Jun 2022 01:51:17 +0300 Subject: [PATCH] Imported from SRPM --- .abf.yml | 2 ++ getcourse-video-downloader.spec | 34 +++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 .abf.yml create mode 100644 getcourse-video-downloader.spec diff --git a/.abf.yml b/.abf.yml new file mode 100644 index 0000000..110f861 --- /dev/null +++ b/.abf.yml @@ -0,0 +1,2 @@ +sources: + getcourse-video-downloader-e8aa69adba31b79b9b679f79398ce7a2cf12e48b.tar.gz: e506fb10551b58b133283fb4cb2d1657ea781930 diff --git a/getcourse-video-downloader.spec b/getcourse-video-downloader.spec new file mode 100644 index 0000000..587c2ab --- /dev/null +++ b/getcourse-video-downloader.spec @@ -0,0 +1,34 @@ +%define commit e8aa69adba31b79b9b679f79398ce7a2cf12e48b +%define commit_short %(echo %{commit} | head -c6) + +Summary: Simple script to download videos from GetCourse.ru +Name: getcourse-video-downloader +Version: 0 +Release: 0.git%{commit_short}.1 +License: GPLv3 +Group: Networking/WWW +URL: https://github.com/mikhailnov/getcourse-video-downloader +Source0: %{url}/archive/%{commit}/%{name}-%{commit}.tar.gz +BuildArch: noarch +Requires: bash +Requires: curl + +%description +Simple script to download videos from GetCourse.ru +See README.md for instructions. + +%files +%doc README.md data +%{_bindir}/getcourse-video-downloader + +#------------------------------------------------------------------ + +%prep +%setup -qn %{name}-%{commit} + +%build +# no build + +%install +mkdir -p %{buildroot}%{_bindir} +install -m0755 getcourse-video-downloader.sh %{buildroot}%{_bindir}/getcourse-video-downloader