Accepting request 908796 from Java:packages

fix build on sle12

OBS-URL: https://build.opensuse.org/request/show/908796
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/javapackages-tools?expand=0&rev=28
This commit is contained in:
2021-08-02 10:04:41 +00:00
committed by Git OBS Bridge
3 changed files with 13 additions and 17 deletions

View File

@@ -1,14 +0,0 @@
<services>
<service mode="disabled" name="tar_scm">
<param name="url">https://github.com/fedora-java/javapackages.git</param>
<param name="scm">git</param>
<param name="changesgenerate">enable</param>
<param name="filename">javapackages</param>
<param name="versionformat">5.2.0+git%cd.%h</param>
</service>
<service mode="disabled" name="recompress">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
<service mode="disabled" name="set_version"/>
</services>

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Jul 27 13:39:39 UTC 2021 - Fridrich Strba <fstrba@suse.com>
- Do not run tests on SLE12, since python3-test is not accessible
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Mar 25 16:27:58 UTC 2021 - Ben Greiner <code@bnavigator.de> Thu Mar 25 16:27:58 UTC 2021 - Ben Greiner <code@bnavigator.de>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package javapackages-tools # spec file
# #
# Copyright (c) 2020 SUSE LLC # Copyright (c) 2021 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -61,7 +61,9 @@ Obsoletes: %{name}-doc
Obsoletes: jpackage-utils < %{version} Obsoletes: jpackage-utils < %{version}
%if %{with python} %if %{with python}
BuildRequires: %{python_module lxml} BuildRequires: %{python_module lxml}
%if 0%{?suse_version} > 1320
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
%endif
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six} BuildRequires: %{python_module six}
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
@@ -101,7 +103,6 @@ Requires: javapackages-tools = %{version}
This package contains files needed by local mode for Gradle, which This package contains files needed by local mode for Gradle, which
allows artifact resolution using XMvn resolver. allows artifact resolution using XMvn resolver.
%package -n javapackages-ivy %package -n javapackages-ivy
Summary: Local mode for Apache Ivy (files) Summary: Local mode for Apache Ivy (files)
Group: Development/Languages/Java Group: Development/Languages/Java
@@ -124,6 +125,7 @@ Module for handling, querying and manipulating of various files for Java
packaging in Linux distributions packaging in Linux distributions
%else %else
%package -n python3-javapackages %package -n python3-javapackages
Summary: Module for handling various files for Java packaging Summary: Module for handling various files for Java packaging
Group: Development/Languages/Java Group: Development/Languages/Java
@@ -216,6 +218,7 @@ rm -rf %{buildroot}%{_datadir}/fedora-review/
%fdupes %{buildroot}/%{_prefix} %fdupes %{buildroot}/%{_prefix}
%if 0%{?suse_version} > 1320
%check %check
# reference: ./check, but we don't want to check coverage and don't need old nose # reference: ./check, but we don't want to check coverage and don't need old nose
( (
@@ -233,6 +236,7 @@ pushd ./test
%pytest %pytest
popd popd
%endif %endif
%endif
%if !%{with python} %if !%{with python}
%files -f files-tools %files -f files-tools
@@ -241,6 +245,7 @@ popd
%files -n javapackages-filesystem -f files-filesystem %files -n javapackages-filesystem -f files-filesystem
%else %else
%files -n javapackages-local -f files-local %files -n javapackages-local -f files-local
%dir %{_datadir}/java-utils %dir %{_datadir}/java-utils