Files
idlj-maven-plugin/idlj-maven-plugin.spec

75 lines
2.3 KiB
RPMSpec

#
# spec file for package idlj-maven-plugin
#
# Copyright (c) 2022 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: idlj-maven-plugin
Version: 1.2.2
Release: 0
Summary: CORBA IDL Compiler Maven Plugin
License: Apache-2.0
URL: https://github.com/mojohaus/idlj-maven-plugin
Source0: %{name}-%{version}.tar.xz
Source1: http://www.apache.org/licenses/LICENSE-2.0.txt
Patch0: idlj-maven-plugin-mpt4.patch
BuildRequires: fdupes
BuildRequires: maven-local
BuildRequires: mvn(org.apache.maven:maven-compat)
BuildRequires: mvn(org.apache.maven:maven-model)
BuildRequires: mvn(org.apache.maven:maven-plugin-api)
BuildRequires: mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires: mvn(org.codehaus.mojo:mojo-parent:pom:)
BuildRequires: mvn(org.codehaus.plexus:plexus-compiler-api)
BuildRequires: mvn(org.codehaus.plexus:plexus-utils)
BuildRequires: mvn(org.glassfish.corba:idlj)
BuildArch: noarch
%description
This plugin is for processing IDL files into java sources.
%package javadoc
Summary: API documentation for %{name}
Group: Documentation/HTML
%description javadoc
API documentation for %{name}.
%prep
%setup -q
%patch -P 0 -p1
cp %{SOURCE1} .
%pom_change_dep ':maven-project' ':maven-compat'
%pom_remove_dep :jacorb-idl-compiler
%pom_add_dep org.apache.maven.plugin-tools:maven-plugin-annotations:3.15.1:provided
%build
%{mvn_build} -f -- -Dsource=8
%install
%mvn_install
%fdupes -s %{buildroot}%{_javadocdir}
%files -f .mfiles
%license LICENSE-2.0.txt
%files javadoc -f .mfiles-javadoc
%license LICENSE-2.0.txt
%changelog