obs-service-download_files/obs-service-download_files.spec
2020-09-11 15:32:27 +08:00

40 lines
1.0 KiB
RPMSpec

Name: obs-service-download_files
Version: 0.6.2
Release: 1
Summary: An OBS source service: download files
License: GPLv2+
URL: https://github.com/openSUSE/%{name}
Source0: https://github.com/openSUSE/%{name}/archive/%{version}.tar.gz
Requires: wget perl(YAML::XS) diffutils
BuildArch: noarch
%description
This is a source service for openEuler Build Service.
This service downloads all source files and parses all
spec files needed for building.
%prep
%autosetup -n %{name}-%{version} -p1 -Sgit
%build
perl -p -i -e "s{#!/usr/bin/env bash}{#!/bin/bash}" download_files
%install
%make_install
%files
%doc README.md
%license COPYING
%config(noreplace) %{_sysconfdir}/obs/services/*
%dir %{_prefix}/lib/obs
%dir %{_sysconfdir}/obs
%dir %{_sysconfdir}/obs/services
%{_prefix}/lib/obs/service
%changelog
* Wed Sep 9 2020 Ge Wang <wangge20@huawei.com> - 0.6.2-1
- Modify Source0 Url
* Sat Mar 7 2020 Shijie Luo <luoshijie1@huawei.com> - 0.6.2-0
- Package init.