|
|
746a5c |
Name: munge-maven-plugin
|
|
|
746a5c |
Version: 1.0
|
|
|
e58e02 |
Release: 2%{?dist}
|
|
|
746a5c |
Summary: Munge Maven Plugin
|
|
|
746a5c |
License: CDDL
|
|
|
746a5c |
URL: http://github.com/sonatype/munge-maven-plugin
|
|
|
746a5c |
BuildArch: noarch
|
|
|
746a5c |
|
|
|
746a5c |
Source0: https://github.com/sonatype/munge-maven-plugin/archive/munge-maven-plugin-1.0.tar.gz
|
|
|
746a5c |
|
|
|
746a5c |
BuildRequires: maven-local
|
|
|
746a5c |
BuildRequires: sonatype-plugins-parent
|
|
|
746a5c |
|
|
|
746a5c |
%description
|
|
|
746a5c |
Munge is a purposely-simple Java preprocessor. It only supports
|
|
|
746a5c |
conditional inclusion of source based on defined strings of the
|
|
|
746a5c |
form "if[tag]", "if_not[tag]", "else[tag]", and "end[tag]".
|
|
|
746a5c |
Unlike traditional preprocessors, comments, and formatting are all
|
|
|
746a5c |
preserved for the included lines. This is on purpose, as the output
|
|
|
746a5c |
of Munge will be distributed as human-readable source code.
|
|
|
746a5c |
|
|
|
746a5c |
To avoid creating a separate Java dialect, the conditional tags are
|
|
|
746a5c |
contained in Java comments. This allows one build to compile the
|
|
|
746a5c |
source files without pre-processing, to facilitate faster incremental
|
|
|
746a5c |
development. Other builds from the same source have their code contained
|
|
|
746a5c |
within that comment. The format of the tags is a little verbose, so
|
|
|
746a5c |
that the tags won't accidentally be used by other comment readers
|
|
|
746a5c |
such as javadoc. Munge tags must be in C-style comments;
|
|
|
746a5c |
C++-style comments may be used to comment code within a comment.
|
|
|
746a5c |
|
|
|
746a5c |
Like any preprocessor, developers must be careful not to abuse its
|
|
|
746a5c |
capabilities so that their code becomes unreadable. Please use it
|
|
|
746a5c |
as little as possible.
|
|
|
746a5c |
|
|
|
746a5c |
%package javadoc
|
|
|
746a5c |
Summary: API documentation for %{name}
|
|
|
746a5c |
|
|
|
746a5c |
%description javadoc
|
|
|
746a5c |
This package provides %{summary}.
|
|
|
746a5c |
|
|
|
746a5c |
%prep
|
|
|
746a5c |
%setup -q -n %{name}-%{name}-%{version}
|
|
|
746a5c |
|
|
|
746a5c |
%build
|
|
|
746a5c |
%mvn_build
|
|
|
746a5c |
|
|
|
746a5c |
%install
|
|
|
746a5c |
%mvn_install
|
|
|
746a5c |
|
|
|
746a5c |
%files -f .mfiles
|
|
|
746a5c |
%doc LICENSE README
|
|
|
746a5c |
|
|
|
746a5c |
%files javadoc -f .mfiles-javadoc
|
|
|
746a5c |
%doc LICENSE
|
|
|
746a5c |
|
|
|
746a5c |
%changelog
|
|
|
e58e02 |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.0-2
|
|
|
e58e02 |
- Mass rebuild 2013-12-27
|
|
|
e58e02 |
|
|
|
746a5c |
* Tue Sep 10 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.0-1
|
|
|
746a5c |
- Initial packaging
|