File obs-service-download_files.spec of Package obs-service-download_files
%global service download_files
Name: obs-service-%{service}
Version: 0.9.2
Release: 1%{?dist}
Summary: An OBS source service: download files
License: GPL-2.0-or-later
URL: https://github.com/openSUSE/obs-service-%{service}
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: make
BuildRequires: perl-interpreter
# tests
BuildRequires: /usr/bin/prove
BuildRequires: perl(FindBin)
BuildRequires: perl(Path::Class)
BuildRequires: perl(Test::More)
BuildRequires: perl(HTTP::Server::Simple::CGI)
BuildRequires: perl(File::Type)
BuildRequires: obs-build
Requires: diffutils
Requires: wget
# for appimage parser:
Requires: perl(YAML::XS)
%description
This is a source service for openSUSE Build Service.
This service is parsing all spec files and downloads all
Source files which are specified via http, https, or ftp URLs.
%prep
%autosetup
%build
perl -p -i -e "s{#!/usr/bin/env bash}{#!/bin/bash}" download_files
%install
%make_install
%check
%make_build test
%files
%license COPYING
%doc README.md
%dir %{_prefix}/lib/obs
%{_prefix}/lib/obs/service
%dir %{_sysconfdir}/obs
%dir %{_sysconfdir}/obs/services
%config(noreplace) %{_sysconfdir}/obs/services/*