Name: jackson-bom Version: 2.9.3 Release: 1%{?dist} Summary: Bill of materials POM for Jackson projects License: ASL 2.0 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 * Thu Jan 18 2018 Mat Booth - 2.9.3-1 - Initial packaging