# # spec file for package jsemver # # Copyright (c) 2020 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 http://bugs.opensuse.org/ # Name: jsemver Version: 0.9.0 Release: 0 Summary: Java implementation of the SemVer Specification License: MIT Group: Development/Libraries/Java Url: https://github.com/zafarkhaja/jsemver Source: https://github.com/zafarkhaja/jsemver/archive/0.9.0.tar.gz BuildRequires: fdupes BuildRequires: maven-local BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:) BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %description Java implementation of the SemVer Specification %package javadoc Summary: Javadoc for %{name} Group: Documentation/HTML %description javadoc This package contains the API documentation for %{name}. %prep %setup -q -n %{name}-%{version} %build %mvn_build -f -- \ %if %{?pkg_vcmp:%pkg_vcmp java-devel >= 9}%{!?pkg_vcmp:0} -Dmaven.compiler.release=8 \ %endif -Dsource=8 %install %mvn_install %fdupes -s %{buildroot}%{_javadocdir} %post %postun %files -f .mfiles %defattr(-,root,root) %license LICENSE %doc README.md %files javadoc -f .mfiles-javadoc %license LICENSE %changelog