[annogen] Initial commit

Andy Grimm arg at fedoraproject.org
Mon Mar 12 13:06:55 UTC 2012


commit aad04cc3b2a9d23313fd9f3f6a80177075f27e7d
Author: Andy Grimm <agrimm at gmail.com>
Date:   Mon Mar 12 09:05:40 2012 -0400

    Initial commit

 .gitignore              |    1 +
 annogen-0.1.0.pom       |    6 +++
 annogen-doc-build.patch |   37 ++++++++++++++++++++++
 annogen.spec            |   79 +++++++++++++++++++++++++++++++++++++++++++++++
 sources                 |    1 +
 5 files changed, 124 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..b55e741 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/annogen-0.1.0-CLEAN.tar.xz
diff --git a/annogen-0.1.0.pom b/annogen-0.1.0.pom
new file mode 100644
index 0000000..ac0a297
--- /dev/null
+++ b/annogen-0.1.0.pom
@@ -0,0 +1,6 @@
+<project>
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>annogen</groupId>
+  <artifactId>annogen</artifactId>
+  <version>0.1.0</version>
+</project>
\ No newline at end of file
diff --git a/annogen-doc-build.patch b/annogen-doc-build.patch
new file mode 100644
index 0000000..ae463ef
--- /dev/null
+++ b/annogen-doc-build.patch
@@ -0,0 +1,37 @@
+--- annogen-0.1.0/build-docs.xml.orig	2004-12-12 05:01:57.044198000 -0500
++++ annogen-0.1.0/build-docs.xml	2012-02-15 09:23:32.486891949 -0500
+@@ -13,6 +13,9 @@
+     <pathelement location='external/lib/stax-api.jar'/>
+     <pathelement location='external/lib/stax-impl.jar'/>
+     <pathelement location='${env.ANT_HOME}/lib/ant.jar'/>
++    <pathelement location='/usr/share/java/qdox.jar'/>
++    <pathelement location='/usr/share/java/ant.jar'/>
++    <pathelement location='/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.1.x86_64/lib/tools.jar'/>
+   </path>
+ 
+   <!-- Targets -->
+@@ -40,7 +43,7 @@
+              classpathref='javadoc_classpath'
+              destdir='${jam_javadocs}'
+              windowtitle='JAM API Documentation'
+-             overview='docs/jam_overview.html'
++             overview='docs/jam-overview.html'
+              stylesheetfile='${docs_build_dir}/javadoc.css'>
+       <fileset dir='jam/core/src'>
+         <include name='**/*.java'/>
+@@ -55,7 +58,7 @@
+              classpathref='javadoc_classpath'
+              destdir='${annogen_javadocs}'
+              windowtitle='JAM API Documentation'
+-             overview='docs/annogen_overview.html'
++             overview='docs/annogen-overview.html'
+              stylesheetfile='${docs_build_dir}/javadoc.css'>
+       <fileset dir='annogen/core/src'>
+         <include name='**/*.java'/>
+@@ -93,4 +96,4 @@
+     </exec>
+   </target>
+ 
+-</project>
+\ No newline at end of file
++</project>
diff --git a/annogen.spec b/annogen.spec
new file mode 100644
index 0000000..ab34f49
--- /dev/null
+++ b/annogen.spec
@@ -0,0 +1,79 @@
+Name:           annogen 
+Version:        0.1.0
+Release:        2%{?dist}
+Summary:        Java framework for JSR-175 annotations
+
+Group:          Development/Libraries  
+License:        ASL 2.0
+URL:            http://annogen.codehaus.org/
+# svn export http://svn.codehaus.org/annogen/annogen/tags/release-0_1_0/ annogen-0.1.0
+# find annogen-0.1.0/ -name '*.jar' -delete
+# tar cJf annogen-0.1.0-CLEAN.tar.xz annogen-0.1.0
+Source0:        %{name}-%{version}-CLEAN.tar.xz
+Source1:        http://repo1.maven.org/maven2/annogen/annogen/0.1.0/annogen-0.1.0.pom
+Patch0:         annogen-doc-build.patch
+BuildArch:      noarch
+
+BuildRequires: java-devel
+BuildRequires: ant
+BuildRequires: qdox
+BuildRequires: jpackage-utils    
+BuildRequires: dos2unix
+Requires:      java
+Requires:      jpackage-utils
+Requires:      qdox
+
+%description
+Annogen is a framework which helps you work with JSR175 Annotations. 
+In a nutshell, Annogen generates a proxy layer in front of your 
+Annotations.
+
+%package javadoc
+Summary:      API documentation for %{name}
+Group:        Documentation
+Requires:     jpackage-utils
+
+%description javadoc
+API documentation for %{name}.
+
+%prep
+%setup -q
+%patch0 -p1
+find examples -type f | xargs dos2unix
+find license -type f | xargs dos2unix
+find docs -name '*.html' -o -name '*.css' | xargs dos2unix
+
+%build
+export CLASSPATH=$( build-classpath qdox)
+ant jars
+ant docs
+
+%install
+install -d -m 755 %{buildroot}%{_javadir}
+cp build/distribution/annogen-*.jar %{buildroot}%{_javadir}/%{name}.jar
+
+install -d -m 755 %{buildroot}%{_mavenpomdir}
+cp %{SOURCE1} %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
+%add_maven_depmap JPP-%{name}.pom %{name}.jar
+
+install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
+cp -rp build/docs/* %{buildroot}%{_javadocdir}/%{name}/
+
+%files
+%doc license/LICENSE.txt license/NOTICE.txt examples/
+%{_javadir}/%{name}.jar
+%{_mavenpomdir}/JPP-%{name}.pom
+%{_mavendepmapfragdir}/%{name}
+
+%files javadoc
+%doc license/LICENSE.txt
+%{_javadocdir}/%{name}
+
+
+%changelog
+* Sun Mar 11 2012 Andy Grimm <agrimm at gmail.com> - 0.1.0-2
+- Remove bundled jars before creating source archive
+- Change javadocs install commands to match other java packages
+
+* Wed Feb 15 2012 Andy Grimm <agrimm at gmail.com> - 0.1.0-1
+- Initial package
diff --git a/sources b/sources
index e69de29..5ce62a7 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+c30c53c453a703369338d225f8686f59  annogen-0.1.0-CLEAN.tar.xz


More information about the scm-commits mailing list