[javapackages] Add simple release-making script
by Stanislav Ochotnicky
commit 509f71d39e4b8d1da07a1f8712ffdb9e4ff2d0fa
Author: Stanislav Ochotnicky <sochotnicky(a)redhat.com>
Date: Thu Jun 2 14:41:30 2011 +0200
Add simple release-making script
.gitignore | 1 +
make_release | 30 ++++++++++++++++++++++++++++++
2 files changed, 31 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..9881fec
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+*.tar.*
diff --git a/make_release b/make_release
new file mode 100755
index 0000000..9b99baf
--- /dev/null
+++ b/make_release
@@ -0,0 +1,30 @@
+#!/bin/bash
+# Copyright (c) 2011 Red Hat, Inc
+#
+# Permission is hereby granted, free of charge, to any person obtaining
+# a copy of this software and associated documentation files (the
+# "Software"), to deal in the Software without restriction, including
+# without limitation the rights to use, copy, modify, merge, publish,
+# distribute, sublicense, and/or sell copies of the Software, and to
+# permit persons to whom the Software is furnished to do so, subject to
+# the following conditions:
+#
+# The above copyright notice and this permission notice shall be included
+# in all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+# CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+#
+# Authors: Stanislav Ochotnicky <sochotnicky(a)redhat.com>
+
+# takes last tag and creates a release from it
+
+last_tag=`git tag | tail -n1`
+
+git archive -v --prefix="javapackages-$last_tag/" $last_tag | xz > \
+ javapackages-$last_tag.tar.xz
12 years, 11 months
[hibernate-commons-annotations] Initial packaging.
by Marek Goldmann
commit ed3334308354e3724fa77ac6179091fbcabcf971
Author: Marek Goldmann <goldmann(a)fedoraproject.org>
Date: Wed Jun 1 21:37:45 2011 -0400
Initial packaging.
.gitignore | 1 +
hibernate-commons-annotations.spec | 106 ++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 108 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..52140df 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/hibernate-commons-annotations-3.2.0.Final.tar.xz
diff --git a/hibernate-commons-annotations.spec b/hibernate-commons-annotations.spec
new file mode 100644
index 0000000..936ce8f
--- /dev/null
+++ b/hibernate-commons-annotations.spec
@@ -0,0 +1,106 @@
+%global namedreltag .Final
+%global namedversion %{version}%{?namedreltag}
+
+Name: hibernate-commons-annotations
+Version: 3.2.0
+Release: 3%{?dist}
+Summary: Hibernate Annotations
+
+Group: Development/Libraries
+
+# For details see:
+# - https://github.com/hibernate/hibernate-commons-annotations/commit/4a902b4...
+# - https://github.com/hibernate/hibernate-commons-annotations/commit/a11c44c...
+License: LGPLv2
+URL: http://www.hibernate.org/
+
+# git clone git://github.com/hibernate/hibernate-commons-annotations.git
+# cd hibernate-commons-annotations && git archive --format=tar --prefix=hibernate-commons-annotations-3.2.0.Final/ 3.2.0.Final | xz > hibernate-commons-annotations-3.2.0.Final.tar.xz
+Source0: %{name}-%{namedversion}.tar.xz
+
+BuildArch: noarch
+
+Requires: java
+Requires: slf4j
+Requires: jpackage-utils
+
+Requires(post): jpackage-utils
+Requires(postun): jpackage-utils
+
+BuildRequires: junit
+BuildRequires: slf4j
+BuildRequires: apache-commons-logging
+BuildRequires: jpackage-utils
+BuildRequires: java-devel
+BuildRequires: maven
+
+BuildRequires: maven-compiler-plugin
+BuildRequires: maven-install-plugin
+BuildRequires: maven-jar-plugin
+BuildRequires: maven-javadoc-plugin
+BuildRequires: maven-release-plugin
+BuildRequires: maven-resources-plugin
+BuildRequires: maven-surefire-plugin
+
+%description
+Following the DRY (Don't Repeat Yourself) principle,
+Hibernate Validator let's you express your domain
+constraints once (and only once) and ensure their
+compliance at various level of your system
+automatically.
+
+Common reflection code used in support of annotation processing.
+
+%package javadoc
+Summary: Javadocs for %{name}
+Group: Documentation
+Requires: jpackage-utils
+
+%description javadoc
+This package contains the API documentation for %{name}.
+
+%prep
+%setup -q -n %{name}-%{namedversion}
+
+%build
+mvn-rpmbuild install javadoc:aggregate
+
+%install
+
+mkdir -p $RPM_BUILD_ROOT%{_javadir}/hibernate
+cp -p target/%{name}-%{namedversion}.jar $RPM_BUILD_ROOT%{_javadir}/hibernate/%{name}.jar
+
+mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}
+cp -rp target/site/apidocs/ $RPM_BUILD_ROOT%{_javadocdir}/%{name}
+
+install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
+install -pm 644 pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.hibernate-%{name}.pom
+
+%add_to_maven_depmap org.hibernate hibernate-commons-annotations %{version} JPP/hibernate %{name}
+
+%post
+%update_maven_depmap
+
+%postun
+%update_maven_depmap
+
+%files
+%{_mavenpomdir}/*
+%{_mavendepmapfragdir}/*
+%{_javadir}/*
+%doc changelog.txt readme.txt
+
+%files javadoc
+%{_javadocdir}/%{name}
+
+%changelog
+* Wed Jun 01 2011 Marek Goldmann <mgoldman(a)redhat.com> 3.2.0-3
+- Fixed license
+- Using source from git
+
+* Mon May 23 2011 Marek Goldmann <mgoldman(a)redhat.com> 3.2.0-2
+- Moved to hibernate subdirectory
+
+* Fri May 20 2011 Marek Goldmann <mgoldman(a)redhat.com> 3.2.0-1
+- Initial packaging
+
diff --git a/sources b/sources
index e69de29..5e2e56a 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+c9e229adddede975861bcf6dfb54eb38 hibernate-commons-annotations-3.2.0.Final.tar.xz
12 years, 11 months
[Bug 709791] Review Suggestions for Tomcat - Apache Servlet/JSP Engine, RI for Servlet 3.0/JSP 2.2 API
by Red Hat Bugzilla
Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=709791
Alexander Kurtakov <akurtako(a)redhat.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |akurtako(a)redhat.com,
| |ivan.afonichev(a)gmail.com,
| |java-sig-commits(a)lists.fedo
| |raproject.org
Component|Package Review |tomcat
AssignedTo|nobody(a)fedoraproject.org |ivan.afonichev(a)gmail.com
--- Comment #3 from Alexander Kurtakov <akurtako(a)redhat.com> 2011-06-01 13:35:40 EDT ---
Wrong component - this should have been filed against tomcat itself.
Also providing a git formatted patch that the maintainer can just git am
your_patch would be helpful.
--
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
12 years, 11 months
[args4j] Initial import (#706984).
by Jaromír Cápík
commit 404b2cb710c578a0b29bb5559ec20f3534376a40
Author: Jaromír Cápík <jcapik(a)redhat.com>
Date: Wed Jun 1 11:47:29 2011 +0200
Initial import (#706984).
.gitignore | 1 +
args4j-ant-removal.patch | 17 ++++++
args4j-wagon-svn-removal.patch | 19 ++++++
args4j.spec | 119 ++++++++++++++++++++++++++++++++++++++++
sources | 1 +
5 files changed, 157 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..5c3f7e7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/args4j-2.0.16.tar.xz
diff --git a/args4j-ant-removal.patch b/args4j-ant-removal.patch
new file mode 100644
index 0000000..04bf172
--- /dev/null
+++ b/args4j-ant-removal.patch
@@ -0,0 +1,17 @@
+diff -Naur args4j-2.0.16.orig/args4j-tools/pom.xml args4j-2.0.16/args4j-tools/pom.xml
+--- args4j-2.0.16.orig/args4j-tools/pom.xml 2011-05-25 12:46:31.050860242 +0200
++++ args4j-2.0.16/args4j-tools/pom.xml 2011-05-25 12:46:43.482443326 +0200
+@@ -38,11 +38,11 @@
+ </plugins>
+ </build>
+ <dependencies>
+- <dependency>
++ <!--dependency>
+ <groupId>ant</groupId>
+ <artifactId>ant</artifactId>
+ <version>1.5</version>
+- </dependency>
++ </dependency-->
+ <dependency>
+ <groupId>args4j</groupId>
+ <artifactId>args4j</artifactId>
diff --git a/args4j-wagon-svn-removal.patch b/args4j-wagon-svn-removal.patch
new file mode 100644
index 0000000..2389c27
--- /dev/null
+++ b/args4j-wagon-svn-removal.patch
@@ -0,0 +1,19 @@
+diff -Naur args4j-2.0.16.orig/pom.xml args4j-2.0.16/pom.xml
+--- args4j-2.0.16.orig/pom.xml 2009-09-04 02:27:10.000000000 +0200
++++ args4j-2.0.16/pom.xml 2011-05-24 13:58:15.362209221 +0200
+@@ -67,13 +67,13 @@
+ </configuration>
+ </plugin>
+ </plugins>
+- <extensions>
++ <!--extensions>
+ <extension>
+ <groupId>org.jvnet.wagon-svn</groupId>
+ <artifactId>wagon-svn</artifactId>
+ <version>1.8</version>
+ </extension>
+- </extensions>
++ </extensions-->
+ </build>
+ <reporting>
+ <plugins>
diff --git a/args4j.spec b/args4j.spec
new file mode 100644
index 0000000..9cd0217
--- /dev/null
+++ b/args4j.spec
@@ -0,0 +1,119 @@
+
+%global group_id args4j
+
+Name: args4j
+%global tools_name %{name}-tools
+%global site_name %{name}-site
+
+Version: 2.0.16
+Release: 3%{?dist}
+Summary: Small Java lib that makes it easy to parse command line options/args in CUI apps
+License: MIT and BSD
+Group: Development/Libraries
+# http://args4j.java.net/
+URL: http://%{name}.java.net/
+# Upload Your personal ssh key to java.net (otherwise the export fails)
+# svn export https://svn.java.net/svn/args4j~svn/tags/args4j-site-2_0_16 args4j-2.0.16
+# tar caf args4j-2.0.16.tar.xz args4j-2.0.16
+Source0: %{name}-%{version}.tar.xz
+
+Patch0: %{name}-wagon-svn-removal.patch
+Patch1: %{name}-ant-removal.patch
+
+BuildArch: noarch
+
+BuildRequires: java-devel
+BuildRequires: jpackage-utils
+BuildRequires: maven
+BuildRequires: maven-surefire-plugin
+
+Requires: java
+Requires: jpackage-utils
+Requires(post): jpackage-utils
+Requires(postun): jpackage-utils
+
+%description
+args4j is a small Java class library that makes it easy
+to parse command line options/arguments in your CUI application.
+- It makes the command line parsing very easy by using annotations.
+- You can generate the usage screen very easily.
+- You can generate HTML/XML that lists all options for your documentation.
+- Fully supports localization.
+- It is designed to parse javac like options (as opposed to GNU-style
+ where ls -lR is considered to have two options l and R.)
+
+args4j-tools are development-time tools for generating additional artifacits.
+
+%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
+
+%patch0 -p1
+%patch1 -p1
+
+# removing classpath addition
+sed -i 's/<addClasspath>true/<addClasspath>false/g' %{tools_name}/pom.xml
+
+# removing bundled stuff
+rm -rf repo
+rm -rf www
+rm -rf %{name}/lib
+
+%build
+mvn-rpmbuild install javadoc:aggregate
+
+%install
+# jars
+install -d -m 755 %{buildroot}%{_javadir}
+install -p -m 644 %{name}/target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
+install -p -m 644 %{tools_name}/target/%{tools_name}-%{version}.jar %{buildroot}%{_javadir}/%{tools_name}.jar
+
+# pom
+install -d -m 755 %{buildroot}%{_mavenpomdir}
+install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{site_name}.pom
+install -pm 644 %{name}/pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
+install -pm 644 %{tools_name}/pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{tools_name}.pom
+
+%add_to_maven_depmap %{group_id} %{site_name} %{version} JPP %{site_name}
+%add_to_maven_depmap %{group_id} %{name} %{version} JPP %{name}
+%add_to_maven_depmap %{group_id} %{tools_name} %{version} JPP %{tools_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 %{name}/LICENSE.txt
+%{_javadir}/%{name}.jar
+%{_javadir}/%{tools_name}.jar
+%{_mavenpomdir}/JPP-%{site_name}.pom
+%{_mavenpomdir}/JPP-%{name}.pom
+%{_mavenpomdir}/JPP-%{tools_name}.pom
+%{_mavendepmapfragdir}/%{name}
+
+%files javadoc
+%doc %{name}/LICENSE.txt
+%doc %{_javadocdir}/%{name}
+
+%changelog
+* Mon May 30 2011 Jaromir Capik <jcapik(a)redhat.com> - 2.0.16-3
+- Removal of bundled stuff in args4j/lib
+
+* Wed May 25 2011 Jaromir Capik <jcapik(a)redhat.com> - 2.0.16-2
+- Removal of unused ant dependency
+
+* Tue May 24 2011 Jaromir Capik <jcapik(a)redhat.com> - 2.0.16-1
+- Initial version of the package
diff --git a/sources b/sources
index e69de29..5a3f86e 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+b765c9c25789884cb982e7c8fefc0de0 args4j-2.0.16.tar.xz
12 years, 11 months