[apache-commons-javaflow] Initial import (#820344).
gil
gil at fedoraproject.org
Tue Jun 26 17:43:32 UTC 2012
commit 7a2454354cf74423643cd0276125fcdd5f25d0d1
Author: gil <puntogil at libero.it>
Date: Tue Jun 26 19:43:20 2012 +0200
Initial import (#820344).
.gitignore | 1 +
...vaflow-1.0-SNAPSHOT-remove-sandbox-parent.patch | 18 +++
apache-commons-javaflow.spec | 133 ++++++++++++++++++++
sources | 1 +
4 files changed, 153 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..cfcebb9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/commons-javaflow-1.0-SNAPSHOT-src-svn.tar.gz
diff --git a/apache-commons-javaflow-1.0-SNAPSHOT-remove-sandbox-parent.patch b/apache-commons-javaflow-1.0-SNAPSHOT-remove-sandbox-parent.patch
new file mode 100644
index 0000000..23a6bb9
--- /dev/null
+++ b/apache-commons-javaflow-1.0-SNAPSHOT-remove-sandbox-parent.patch
@@ -0,0 +1,18 @@
+--- pom.xml 2011-08-05 06:40:29.000000000 +0200
++++ pom.xml-gil 2012-05-09 15:57:48.157721404 +0200
+@@ -5,12 +5,13 @@
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+ <modelVersion>4.0.0</modelVersion>
+- <parent>
++ <!--parent>
+ <groupId>org.apache.commons</groupId>
+ <artifactId>commons-sandbox-parent</artifactId>
+ <version>9</version>
+- </parent>
++ </parent-->
+
++ <groupId>org.apache.commons</groupId>
+ <artifactId>commons-javaflow</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <name>Commons Javaflow (Sandbox)</name>
diff --git a/apache-commons-javaflow.spec b/apache-commons-javaflow.spec
new file mode 100644
index 0000000..1a8e665
--- /dev/null
+++ b/apache-commons-javaflow.spec
@@ -0,0 +1,133 @@
+%global base_name javaflow
+%global short_name commons-%{base_name}
+%global namedreltag -SNAPSHOT
+%global namedversion %{version}%{?namedreltag}
+Name: apache-commons-javaflow
+Version: 1.0
+Release: 0.1.20120509SNAPSHOT%{?dist}
+Summary: Commons Javaflow
+Group: Development/Libraries
+License: ASL 2.0
+Url: http://commons.apache.org/sandbox/javaflow/
+# svn export http://svn.apache.org/repos/asf/commons/sandbox/javaflow/trunk/ commons-javaflow-1.0-SNAPSHOT
+# tar czf commons-javaflow-1.0-SNAPSHOT-src-svn.tar.gz commons-javaflow-1.0-SNAPSHOT
+Source0: %{short_name}-%{namedversion}-src-svn.tar.gz
+Patch0: %{name}-%{namedversion}-remove-sandbox-parent.patch
+
+BuildRequires: java-devel
+BuildRequires: jpackage-utils
+
+BuildRequires: ant
+BuildRequires: apache-commons-io
+BuildRequires: apache-commons-jci-core
+BuildRequires: apache-commons-logging
+BuildRequires: bcel
+BuildRequires: objectweb-asm
+
+# test deps
+BuildRequires: junit
+BuildRequires: junit-addons
+
+BuildRequires: maven
+#BuildRequires: maven-antrun-plugin
+BuildRequires: maven-compiler-plugin
+BuildRequires: maven-install-plugin
+BuildRequires: maven-jar-plugin
+BuildRequires: maven-javadoc-plugin
+#BuildRequires: maven-plugin-bundle
+BuildRequires: maven-resources-plugin
+#BuildRequires: maven-site-plugin
+BuildRequires: maven-surefire-plugin
+BuildRequires: maven-surefire-provider-junit4
+
+Requires: apache-commons-io
+Requires: apache-commons-jci-core
+Requires: apache-commons-logging
+Requires: bcel
+Requires: objectweb-asm
+
+Requires: java
+Requires: jpackage-utils
+BuildArch: noarch
+
+%description
+Sometimes it is useful if we can capture the state of the application,
+its stack of function calls, which includes local variables, the global
+variables and the program counter, and save them into an object. If
+this object would give us the ability to restart the processing from
+the point stored in it.
+A continuation is exactly the type of object that we need. Think of a
+continuation as an object that, for a given point in your program,
+contains a snapshot of the stack trace, including all the local
+variables, and the program counter. You can not only store these
+things in the continuation object, but also restore the execution
+of the program from a continuation object. This means that the stack
+trace and the program counter of the running program become the ones
+stored in a continuation.
+Continuations are powerful concepts from the world of functional
+languages, like Scheme, but they are becoming popular in other
+languages as well.
+
+%package ant
+Summary: Development files for Commons Javaflow
+Group: Development/Languages
+Requires: ant
+Requires: %{name} = %{version}-%{release}
+
+%description ant
+This package enables support for the Commons Javaflow ant tasks.
+
+%package javadoc
+Group: Documentation
+Summary: Javadoc for %{name}
+Requires: jpackage-utils
+
+%description javadoc
+This package contains javadoc for %{name}.
+
+%prep
+%setup -q -n %{short_name}-%{namedversion}
+find . -name "*.class" -delete
+find . -name "*.jar" -delete
+#sed -i "s|commons-sandbox-parent|commons-parent|" pom.xml
+%patch0 -p0
+
+%build
+
+mvn-rpmbuild -Dproject.build.sourceEncoding=UTF-8 install javadoc:aggregate
+
+%install
+
+mkdir -p %{buildroot}%{_javadir}
+install -m 644 target/%{short_name}-%{namedversion}.jar %{buildroot}%{_javadir}/%{name}.jar
+( cd %{buildroot}%{_javadir} && ln -sf %{name}.jar %{short_name}.jar )
+
+mkdir -p %{buildroot}%{_mavenpomdir}
+install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{short_name}.pom
+%add_maven_depmap JPP-%{short_name}.pom %{short_name}.jar
+
+mkdir -p %{buildroot}%{_javadocdir}/%{name}
+cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
+
+mkdir -p %{buildroot}%{_sysconfdir}/ant.d
+echo "ant %{short_name}" > %{short_name}
+install -p -m 644 %{short_name} %{buildroot}%{_sysconfdir}/ant.d/%{short_name}
+
+%files
+%{_javadir}/%{name}.jar
+%{_javadir}/%{short_name}.jar
+%{_mavenpomdir}/JPP-%{short_name}.pom
+%{_mavendepmapfragdir}/%{name}
+%doc CREDITS.txt LICENSE.txt NOTICE.txt TODO.txt
+
+%files javadoc
+%{_javadocdir}/%{name}
+%doc LICENSE.txt NOTICE.txt
+
+%files ant
+%config(noreplace) %{_sysconfdir}/ant.d/%{short_name}
+
+%changelog
+* Wed May 09 2012 gil cattaneo <puntogil at libero.it> 1.0-0.1.20120509SNAPSHOT
+- initial rpm
+
diff --git a/sources b/sources
index e69de29..a27f9d9 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+3806030cdaf6ab14805b1daaf1aa265e commons-javaflow-1.0-SNAPSHOT-src-svn.tar.gz
More information about the scm-commits
mailing list