2011-06-01 13:08:04 +00:00
|
|
|
#
|
2021-10-13 14:43:32 +00:00
|
|
|
# spec file
|
2011-06-01 13:08:04 +00:00
|
|
|
#
|
2022-12-08 14:41:26 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2011-06-01 13:08:04 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-08-30 06:26:40 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2020-12-09 12:23:34 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2021-09-09 07:19:09 +00:00
|
|
|
%define service download_files
|
2020-02-04 06:49:36 +00:00
|
|
|
%if 0%{?fedora} || 0%{?rhel}
|
|
|
|
%define build_pkg_name obs-build
|
|
|
|
%else
|
|
|
|
%define build_pkg_name build
|
|
|
|
%endif
|
2014-02-06 12:09:15 +00:00
|
|
|
Name: obs-service-%{service}
|
2022-12-08 14:41:26 +00:00
|
|
|
Version: 0.9.2
|
2014-02-06 12:09:15 +00:00
|
|
|
Release: 0
|
2012-08-24 11:57:43 +00:00
|
|
|
Summary: An OBS source service: download files
|
2018-06-25 15:22:08 +00:00
|
|
|
License: GPL-2.0-or-later
|
2020-12-09 12:23:34 +00:00
|
|
|
URL: https://github.com/openSUSE/obs-service-%{service}
|
2022-12-08 14:41:26 +00:00
|
|
|
Source0: %{url}/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
2021-09-09 07:19:09 +00:00
|
|
|
BuildRequires: %{build_pkg_name}
|
|
|
|
BuildRequires: bzip2
|
|
|
|
BuildRequires: tar
|
2021-10-13 14:43:32 +00:00
|
|
|
BuildRequires: (curl or curl-minimal)
|
2021-09-09 07:19:09 +00:00
|
|
|
BuildRequires: perl(File::Type)
|
|
|
|
BuildRequires: perl(FindBin)
|
|
|
|
BuildRequires: perl(HTTP::Server::Simple)
|
|
|
|
BuildRequires: perl(Path::Class)
|
|
|
|
# provides: /usr/bin/prove
|
|
|
|
BuildRequires: perl(Test::Harness)
|
|
|
|
BuildRequires: perl(Test::More)
|
2020-02-04 06:49:36 +00:00
|
|
|
Requires: %{build_pkg_name} >= 2012.08.24
|
2020-12-09 12:23:34 +00:00
|
|
|
Requires: curl
|
2012-11-20 07:53:05 +00:00
|
|
|
Requires: diffutils
|
2019-01-16 11:53:24 +00:00
|
|
|
# for appimage parser:
|
|
|
|
Requires: perl(YAML::XS)
|
2011-05-11 05:28:46 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%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 a http, https or ftp url.
|
|
|
|
|
|
|
|
%prep
|
2021-09-09 07:19:09 +00:00
|
|
|
%autosetup
|
2011-05-11 05:28:46 +00:00
|
|
|
|
|
|
|
%build
|
2021-09-09 07:19:09 +00:00
|
|
|
perl -p -i -e "s{#!%{_bindir}/env bash}{#!/bin/bash}" download_files
|
2011-05-11 05:28:46 +00:00
|
|
|
|
|
|
|
%install
|
2021-09-09 07:19:09 +00:00
|
|
|
%make_install
|
|
|
|
|
|
|
|
%check
|
|
|
|
%make_build test
|
2011-08-26 10:57:29 +00:00
|
|
|
|
2011-05-11 05:28:46 +00:00
|
|
|
%files
|
2017-08-16 11:49:30 +00:00
|
|
|
%doc README.md
|
2014-02-06 12:09:15 +00:00
|
|
|
%dir %{_prefix}/lib/obs
|
|
|
|
%{_prefix}/lib/obs/service
|
|
|
|
%dir %{_sysconfdir}/obs
|
|
|
|
%dir %{_sysconfdir}/obs/services
|
|
|
|
%config(noreplace) %{_sysconfdir}/obs/services/*
|
2011-07-05 11:41:20 +00:00
|
|
|
|
2011-06-01 13:08:04 +00:00
|
|
|
%changelog
|