update
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/build?expand=0&rev=411
This commit is contained in:
18
build.spec
18
build.spec
@@ -18,17 +18,17 @@
|
||||
# needsbinariesforbuild
|
||||
|
||||
|
||||
%if 0%{?fedora} || 0%{?rhel}
|
||||
%define __pkg_name obs-build
|
||||
%else
|
||||
%if 0%{?suse_version}
|
||||
%define __pkg_name build
|
||||
%else
|
||||
%define __pkg_name obs-build
|
||||
%endif
|
||||
|
||||
Name: %{__pkg_name}
|
||||
Summary: A Script to Build SUSE Linux RPMs
|
||||
License: GPL-2.0-only OR GPL-3.0-only
|
||||
Group: Development/Tools/Building
|
||||
Version: 20200131
|
||||
Version: 20200205
|
||||
Release: 0
|
||||
Source: obs-build-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
@@ -47,6 +47,10 @@ BuildRequires: binutils
|
||||
BuildRequires: perl
|
||||
BuildRequires: psmisc
|
||||
BuildRequires: tar
|
||||
# For testcases
|
||||
BuildRequires: perl(Date::Parse)
|
||||
BuildRequires: perl(Test::Harness)
|
||||
BuildRequires: perl(Test::More)
|
||||
%if 0%{?fedora}
|
||||
Requires: perl-MD5
|
||||
Requires: perl-TimeDate
|
||||
@@ -56,7 +60,7 @@ Conflicts: bsdtar < 2.5.5
|
||||
BuildRequires: perl(Date::Parse)
|
||||
BuildRequires: perl(Test::Harness)
|
||||
BuildRequires: perl(Test::More)
|
||||
%if 0%{?suse_version} > 1000
|
||||
%if 0%{?suse_version} > 1000 || 0%{?centos_version} >= 800 || 0%{?rhel_version} >= 800 || 0%{?fedora_version} >= 21
|
||||
# None of them are actually required for core features.
|
||||
# Perl helper scripts use them.
|
||||
Recommends: perl(Date::Language)
|
||||
@@ -204,8 +208,8 @@ test -e baselibs_global.conf || exit 1
|
||||
%check
|
||||
for i in build build-* ; do bash -n $i || exit 1 ; done
|
||||
|
||||
# expect unit tests
|
||||
LANG=C prove -I. -v t/*.t || exit 1
|
||||
# run perl module unit tests
|
||||
LANG=C make test || exit 1
|
||||
|
||||
if [ `whoami` != "root" ]; then
|
||||
echo "WARNING: Not building as root, build test did not run!"
|
||||
|
Reference in New Issue
Block a user