# # spec file for package protobuf-maven-plugin # # Copyright (c) 2024 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: protobuf-maven-plugin Version: 0.6.1 Release: 0 Summary: Maven Protocol Buffers Plugin License: Apache-2.0 URL: https://github.com/xolstice/protobuf-maven-plugin Source0: %{name}-%{version}.tar.xz BuildRequires: fdupes BuildRequires: java-devel >= 1.8 BuildRequires: maven-local BuildRequires: mvn(org.apache.maven.plugin-tools:maven-plugin-annotations) BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin) BuildRequires: mvn(org.apache.maven:maven-artifact) BuildRequires: mvn(org.apache.maven:maven-compat) BuildRequires: mvn(org.apache.maven:maven-core) BuildRequires: mvn(org.apache.maven:maven-plugin-api) BuildRequires: mvn(org.codehaus.plexus:plexus-component-annotations) BuildRequires: mvn(org.codehaus.plexus:plexus-component-metadata) BuildRequires: mvn(org.codehaus.plexus:plexus-utils) BuildRequires: mvn(org.sonatype.plexus:plexus-build-api) Recommends: protobuf-devel BuildArch: noarch %description A plugin that integrates protocol buffers compiler (protoc) into Maven lifecycle. This is a continuation of maven-protoc-plugin that was started at Google and later developed by GitHub community. %package javadoc Summary: API documentation for %{name} %description javadoc This package provides %{summary}. %prep %setup -q %pom_remove_plugin :maven-toolchains-plugin %pom_remove_plugin :maven-enforcer-plugin %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} %files -f .mfiles %license LICENSE NOTICE %doc README.md %files javadoc -f .mfiles-javadoc %license LICENSE NOTICE %changelog