File eclipse-swtchart.spec of Package eclipse-swtchart

#
# spec file for package eclipse-swtchart
#
# Copyright (c) 2020 SUSE LLC
#
# 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.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#


Name:           eclipse-swtchart
Version:        0.13.0
Release:        0
Summary:        Eclipse SWTChart
License:        EPL-2.0
Group:          Development/Languages/Java
URL:            https://projects.eclipse.org/projects/science.swtchart
Source:         %{name}-%{version}.tar.xz
BuildRequires:  tycho
BuildArch:      noarch
# Upstream Eclipse no longer supports non-64bit arches
ExcludeArch:    s390 %{arm} %{ix86}

%description
SWTChart is a light-weight charting component for SWT.

%prep
%setup -q

# Target platform and update site are not relevant for RPM builds
%pom_disable_module ../org.eclipse.swtchart.targetplatform org.eclipse.swtchart.cbi
%pom_disable_module ../org.eclipse.swtchart.updatesite org.eclipse.swtchart.cbi
%pom_remove_plugin :target-platform-configuration org.eclipse.swtchart.cbi

# These plugins not relevant for RPM builds
%pom_remove_plugin :maven-pmd-plugin org.eclipse.swtchart.cbi
%pom_remove_plugin :maven-checkstyle-plugin org.eclipse.swtchart.cbi

# Don't build or ship test bundles
%pom_disable_module ../org.eclipse.swtchart.test org.eclipse.swtchart.cbi
%pom_disable_module ../org.eclipse.swtchart.extensions.test org.eclipse.swtchart.cbi

# Drop export bundle not needed at runtime and shrinks the dep tree for this package
%pom_disable_module ../org.eclipse.swtchart.export org.eclipse.swtchart.cbi
%pom_disable_module ../org.eclipse.swtchart.export.extended org.eclipse.swtchart.cbi
%pom_disable_module ../org.eclipse.swtchart.export.extended.test org.eclipse.swtchart.cbi
%pom_disable_module ../org.eclipse.swtchart.export.test org.eclipse.swtchart.cbi
%pom_disable_module ../org.eclipse.swtchart.feature org.eclipse.swtchart.cbi

%{mvn_package} "::pom::" __noinstall

%build
%{mvn_build} -j -f -- -f org.eclipse.swtchart.cbi/pom.xml

%install
%mvn_install

%files -f .mfiles
%license LICENSE
%doc README.md CONTRIBUTING.md NEWS.md

%changelog
openSUSE Build Service is sponsored by