offer opt out of test suite

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=151
This commit is contained in:
Adrian Schröter 2017-04-12 14:43:36 +00:00 committed by Git OBS Bridge
parent 8055efe149
commit e1530ec242

View File

@ -1,5 +1,5 @@
# #
# spec file for package obs-service # spec file for package obs-service-tar_scm
# #
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# #
@ -16,18 +16,17 @@
# #
%define service tar_scm %bcond_without obs_scm_testsuite
%define seperate_build 0
Name: obs-service-obs_scm Name: obs-service-tar_scm
%define version_unconverted 0.7.0.1490358243.8de854e %define version_unconverted 0.7.0.1490358243.8de854e
Version: 0.7.0.1490358243.8de854e Version: 0.7.0.1490358243.8de854e
Release: 0 Release: 0
Summary: An OBS source service: checkout or update a tar ball from svn/git/hg Summary: An OBS source service: checkout or update a tar ball from svn/git/hg
License: GPL-2.0+ License: GPL-2.0+
Group: Development/Tools/Building Group: Development/Tools/Building
Url: https://github.com/openSUSE/obs-service-%{service} Url: https://github.com/openSUSE/obs-service-tar_scm
Source: obs-service-tar_scm-%{version}.tar.gz Source: %{name}-%{version}.tar.gz
# Fix build on Ubuntu by disabling mercurial tests, not applied in rpm # Fix build on Ubuntu by disabling mercurial tests, not applied in rpm
# based distributions # based distributions
#Patch0: 0001-Debianization-disable-running-mercurial-tests.patch #Patch0: 0001-Debianization-disable-running-mercurial-tests.patch
@ -75,8 +74,8 @@ Provides: obs-service-tar_scm:/usr/lib/obs/service/tar.service
%description -n obs-service-tar %description -n obs-service-tar
%package -n obs-service-tar_scm %package -n obs-service-obs_scm
Summary: Creates a tar ball from a remote SCM resource like git, subversion or cvs Summary: Creates a obs cpio archive from a remote SCM resource like git, subversion or cvs
Group: Development/Tools/Building Group: Development/Tools/Building
Requires: bzr Requires: bzr
Requires: git-core Requires: git-core
@ -84,7 +83,7 @@ Requires: mercurial
Requires: obs-service-obs_scm-common = %version-%release Requires: obs-service-obs_scm-common = %version-%release
Requires: subversion Requires: subversion
%description -n obs-service-tar_scm %description -n obs-service-obs_scm
%package -n obs-service-appimage %package -n obs-service-appimage
Summary: Handles source downloads defined in appimage.yml files Summary: Handles source downloads defined in appimage.yml files
@ -128,19 +127,14 @@ Requires: python-PyYAML
%install %install
make install DESTDIR="%{buildroot}" PREFIX="%{_prefix}" SYSCFG="%{_sysconfdir}" make install DESTDIR="%{buildroot}" PREFIX="%{_prefix}" SYSCFG="%{_sysconfdir}"
%if "%seperate_build" == "1" %if %{with obs_scm_testsuite}
rm %{buildroot}/%{_prefix}/lib/obs/service/tar_scm.service
rm %{buildroot}/%{_prefix}/lib/obs/service/obs_scm
mv %{buildroot}/%{_prefix}/lib/obs/service/{tar,obs}_scm
ln -sf obs_scm %{buildroot}/%{_prefix}/lib/obs/service/tar
%endif
%if 0%{?suse_version} >= 1220 %if 0%{?suse_version} >= 1220
%check %check
# No need to run PEP8 tests here; that would require a potentially # No need to run PEP8 tests here; that would require a potentially
# brittle BuildRequires: python-pep8, and any style issues are already # brittle BuildRequires: python-pep8, and any style issues are already
# caught by Travis CI. # caught by Travis CI.
#make test make test
%endif
%endif %endif
%files %files