%global service download_files Name: obs-service-%{service} Version: 0.6.2 Release: 1%{?dist} Summary: An OBS source service: download files License: GPLv2+ URL: https://github.com/openSUSE/obs-service-%{service} Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz BuildArch: noarch BuildRequires: perl-interpreter 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 %makeinstall %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/* %changelog * Mon Mar 25 2019 Neal Gompa - Initial packaging