[java-sig-commits] [beust-jcommander] Initial import (#705010).

Jaromír Cápík jcapik at fedoraproject.org
Fri May 20 11:38:39 UTC 2011


commit 328f403a13e65e8fcd3c39061b872eee516d2907
Author: Jaromír Cápík <jcapik at redhat.com>
Date:   Fri May 20 13:23:51 2011 +0200

    Initial import (#705010).

 .gitignore            |    1 +
 beust-jcommander.spec |   87 +++++++++++++++++++++++++++++++++++++++++++++++++
 sources               |    1 +
 3 files changed, 89 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..e054537 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/beust-jcommander-1.17.tar.xz
diff --git a/beust-jcommander.spec b/beust-jcommander.spec
new file mode 100644
index 0000000..86a863d
--- /dev/null
+++ b/beust-jcommander.spec
@@ -0,0 +1,87 @@
+
+%global short_name   jcommander
+%global group_id     com.beust
+
+Name:             beust-%{short_name}
+Version:          1.17
+Release:          2%{?dist}
+Summary:          Java framework for parsing command line parameters
+License:          ASL 2.0
+Group:            Development/Libraries
+URL:              http://jcommander.org/
+# git clone git://github.com/cbeust/jcommander.git
+# cd jcommander
+# git archive --prefix="beust-jcommander-1.17/" --format=tar jcommander-1.17 | xz > beust-jcommander-1.17.tar.xz
+Source0:          %{name}-%{version}.tar.xz
+
+BuildArch:        noarch
+
+BuildRequires:    java-devel
+BuildRequires:    jpackage-utils
+BuildRequires:    maven
+BuildRequires:    testng
+
+Requires:         java
+Requires:         jpackage-utils
+Requires(post):   jpackage-utils
+Requires(postun): jpackage-utils
+
+%description
+JCommander is a very small Java framework
+that makes it trivial to parse command line
+parameters (with annotations).
+
+%package javadoc
+Summary:          API documentation for %{name}
+Group:            Documentation
+Requires:         jpackage-utils
+
+%description javadoc
+This package contains the API documentation for %{name}.
+
+%prep
+%setup -q
+
+# removing spurious-executable-perm
+chmod -x license.txt
+
+%build
+mvn-rpmbuild install javadoc:aggregate
+
+%install
+# jars
+install -d -m 755 %{buildroot}%{_javadir}
+install -p -m 644 target/%{short_name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
+
+# pom
+install -d -m 755 %{buildroot}%{_mavenpomdir}
+install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
+%add_to_maven_depmap %{group_id} %{short_name} %{version} JPP %{name}
+
+# javadoc
+install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
+cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
+
+%post
+%update_maven_depmap
+
+%postun
+%update_maven_depmap
+
+%files
+%doc license.txt README.markdown
+%{_javadir}/%{name}.jar
+%{_mavenpomdir}/JPP-%{name}.pom
+%{_mavendepmapfragdir}/%{name}
+
+%files javadoc
+%doc license.txt
+%doc %{_javadocdir}/%{name}
+
+%changelog
+* Mon May 16 2011 Jaromir Capik <jcapik at redhat.com> - 1.17-2
+- Unwanted comment removal
+- Target javadoc:jar replaced with javadoc:aggregate
+
+* Fri May 13 2011 Jaromir Capik <jcapik at redhat.com> - 1.17-1
+- Initial version of the package
diff --git a/sources b/sources
index e69de29..1acbfb0 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+4cc69f21ca9f6d5bb08916bb97dd3016  beust-jcommander-1.17.tar.xz


More information about the java-sig-commits mailing list