[java-sig-commits] [munge-maven-plugin] Initial packaging

Mikolaj Izdebski mizdebsk at fedoraproject.org
Wed Sep 11 10:43:10 UTC 2013


commit 76a16c5ead9c8dbc1b388ffd67bff8af2ae37f87
Author: Mikolaj Izdebski <mizdebsk at redhat.com>
Date:   Wed Sep 11 12:42:29 2013 +0200

    Initial packaging

 .gitignore              |    1 +
 munge-maven-plugin.spec |   58 +++++++++++++++++++++++++++++++++++++++++++++++
 sources                 |    1 +
 3 files changed, 60 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..70ea28a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/munge-maven-plugin-1.0.tar.gz
diff --git a/munge-maven-plugin.spec b/munge-maven-plugin.spec
new file mode 100644
index 0000000..3295740
--- /dev/null
+++ b/munge-maven-plugin.spec
@@ -0,0 +1,58 @@
+Name:           munge-maven-plugin
+Version:        1.0
+Release:        1%{?dist}
+Summary:        Munge Maven Plugin
+License:        CDDL
+URL:            http://github.com/sonatype/munge-maven-plugin
+BuildArch:      noarch
+
+Source0:        https://github.com/sonatype/munge-maven-plugin/archive/munge-maven-plugin-1.0.tar.gz
+
+BuildRequires:  maven-local
+BuildRequires:  sonatype-plugins-parent
+
+%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}
+
+%description javadoc
+This package provides %{summary}.
+
+%prep
+%setup -q -n %{name}-%{name}-%{version}
+
+%build
+%mvn_build
+
+%install
+%mvn_install
+
+%files -f .mfiles
+%doc LICENSE README
+
+%files javadoc -f .mfiles-javadoc
+%doc LICENSE
+
+%changelog
+* Tue Sep 10 2013 Mikolaj Izdebski <mizdebsk at redhat.com> - 1.0-1
+- Initial packaging
diff --git a/sources b/sources
index e69de29..5bf3669 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+4a8271622897569b6a23592f520469c2  munge-maven-plugin-1.0.tar.gz


More information about the java-sig-commits mailing list