forked from pool/munge-maven-plugin
OBS-URL: https://build.opensuse.org/package/show/Java:packages/munge-maven-plugin?expand=0&rev=9
91 lines
3.1 KiB
RPMSpec
91 lines
3.1 KiB
RPMSpec
#
|
|
# spec file for package munge-maven-plugin
|
|
#
|
|
# Copyright (c) 2025 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: munge-maven-plugin
|
|
Version: 1.0
|
|
Release: 0
|
|
Summary: Trivial Java preprocessor
|
|
License: CDDL-1.0
|
|
Group: Development/Libraries/Java
|
|
URL: https://github.com/sonatype/munge-maven-plugin
|
|
Source0: https://github.com/sonatype/munge-maven-plugin/archive/munge-maven-plugin-1.0.tar.gz
|
|
Patch0: munge-maven-plugin-mpt4.patch
|
|
BuildRequires: fdupes
|
|
BuildRequires: java-devel >= 1.8
|
|
BuildRequires: maven-local
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin)
|
|
BuildRequires: mvn(org.apache.maven:maven-core)
|
|
BuildRequires: mvn(org.apache.maven:maven-plugin-api)
|
|
BuildRequires: mvn(org.sonatype.plugins:plugins-parent:pom:)
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
Munge is a purposely-simple Java preprocessor. It only supports
|
|
conditional inclusion of source based on defined strings of the
|
|
form "if[tag]", "if_not[tag]", "else[tag]", and "end[tag]".
|
|
Unlike traditional preprocessors, comments, and formatting are all
|
|
preserved for the included lines. This is on purpose, as the output
|
|
of Munge will be distributed as human-readable source code.
|
|
|
|
To avoid creating a separate Java dialect, the conditional tags are
|
|
contained in Java comments. This allows one build to compile the
|
|
source files without pre-processing, to facilitate faster incremental
|
|
development. Other builds from the same source have their code contained
|
|
within that comment. The format of the tags is a little verbose, so
|
|
that the tags won't accidentally be used by other comment readers
|
|
such as javadoc. Munge tags must be in C-style comments;
|
|
C++-style comments may be used to comment code within a comment.
|
|
|
|
Like any preprocessor, developers must be careful not to abuse its
|
|
capabilities so that their code becomes unreadable. Please use it
|
|
as little as possible.
|
|
|
|
%package javadoc
|
|
Summary: API documentation for %{name}
|
|
Group: Documentation/HTML
|
|
|
|
%description javadoc
|
|
This package provides %{summary}.
|
|
|
|
%prep
|
|
%setup -q -n %{name}-%{name}-%{version}
|
|
%patch -P 0 -p1
|
|
|
|
%pom_add_dep org.apache.maven.plugin-tools:maven-plugin-annotations:3.15.1:provided
|
|
|
|
%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
|
|
%dir %{_javadir}/%{name}
|
|
%license LICENSE
|
|
%doc README
|
|
|
|
%files javadoc -f .mfiles-javadoc
|
|
%license LICENSE
|
|
|
|
%changelog
|