SHA256
1
0
forked from pool/jackson-bom
jackson-bom/jackson-bom.spec

57 lines
1.7 KiB
RPMSpec

#
# spec file for package jackson-bom
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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: jackson-bom
Version: 2.9.4
Release: 0
Summary: Bill of materials POM for Jackson projects
License: Apache-2.0
Group: Development/Libraries/Java
URL: https://github.com/FasterXML/jackson-bom
Source0: https://github.com/FasterXML/jackson-bom/archive/%{name}-%{version}.tar.gz
# Upstream chooses not to include licenses with their pom only projects:
# https://github.com/FasterXML/jackson-parent/issues/1
Source1: http://www.apache.org/licenses/LICENSE-2.0.txt
BuildRequires: maven-local
BuildRequires: mvn(com.fasterxml.jackson:jackson-parent:pom:) >= 2.7.1
BuildArch: noarch
%description
A "bill of materials" POM for Jackson dependencies.
%prep
%setup -q -n %{name}-%{name}-%{version}
cp -p %{SOURCE1} LICENSE
sed -i 's/\r//' LICENSE
# Disable plugins not needed during RPM builds
%pom_remove_plugin ":maven-enforcer-plugin" base
%build
%{mvn_build} -j
%install
%mvn_install
%files -f .mfiles
%doc README.md
%license LICENSE
%changelog