[serp] Initial import (#823835)
gil
gil at fedoraproject.org
Sat Jul 14 07:13:09 UTC 2012
commit 8cf00185eabdf2bfde93c3d58edc31bdfe6371cf
Author: gil <puntogil at libero.it>
Date: Sat Jul 14 09:12:48 2012 +0200
Initial import (#823835)
.gitignore | 1 +
serp-1.13.1-pom_xml.patch | 24 ++++++++++++
serp.spec | 93 +++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
4 files changed, 119 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..c7a25ed 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/serp-1.14.2-20120406-src-cvs.tar.gz
diff --git a/serp-1.13.1-pom_xml.patch b/serp-1.13.1-pom_xml.patch
new file mode 100644
index 0000000..4b8b7c1
--- /dev/null
+++ b/serp-1.13.1-pom_xml.patch
@@ -0,0 +1,24 @@
+--- pom.xml 2007-07-25 19:16:23.000000000 +0200
++++ pom.xml-gil 2011-09-06 17:20:05.185202468 +0200
+@@ -113,8 +113,8 @@
+ <reporting>
+ <plugins>
+ <plugin>
+- <groupId>org.codehaus.mojo</groupId>
+- <artifactId>jxr-maven-plugin</artifactId>
++ <groupId>org.apache.maven.plugins</groupId>
++ <artifactId>maven-jxr-plugin</artifactId>
+ <configuration>
+ <aggregate>true</aggregate>
+ </configuration>
+@@ -137,8 +137,8 @@
+ <artifactId>maven-project-info-reports-plugin</artifactId>
+ </plugin>
+ <plugin>
+- <groupId>org.codehaus.mojo</groupId>
+- <artifactId>surefire-report-maven-plugin</artifactId>
++ <groupId>org.apache.maven.plugins</groupId>
++ <artifactId>maven-surefire-report-plugin</artifactId>
+ </plugin>
+ </plugins>
+ </reporting>
diff --git a/serp.spec b/serp.spec
new file mode 100644
index 0000000..50c4dac
--- /dev/null
+++ b/serp.spec
@@ -0,0 +1,93 @@
+Name: serp
+Version: 1.14.2
+Release: 0.1.20120406cvs%{?dist}
+Summary: Bytecode manipulation framework
+Group: Development/Libraries
+License: BSD
+Url: http://serp.sourceforge.net/
+# cvs -d:pserver:anonymous at serp.cvs.sourceforge.net:/cvsroot/serp login
+# cvs -z3 -d:pserver:anonymous at serp.cvs.sourceforge.net:/cvsroot/serp export -r HEAD serp
+# tar czf serp-1.14.2-20120406-src-cvs.tar.gz serp
+Source0: serp-1.14.2-20120406-src-cvs.tar.gz
+# change
+# org.codehaus.mojo jxr-maven-plugin in org.apache.maven.plugins maven-jxr-plugin
+# org.codehaus.mojo surefire-report-maven-plugin in org.apache.maven.plugins >maven-surefire-report-plugin
+Patch0: serp-1.13.1-pom_xml.patch
+
+BuildRequires: java-devel
+BuildRequires: jpackage-utils
+
+BuildRequires: maven
+BuildRequires: maven-compiler-plugin
+BuildRequires: maven-install-plugin
+BuildRequires: maven-jar-plugin
+BuildRequires: maven-javadoc-plugin
+BuildRequires: maven-resources-plugin
+BuildRequires: maven-surefire-plugin
+BuildRequires: maven-surefire-provider-junit4
+
+BuildRequires: junit
+
+Requires: junit
+
+Requires: java
+Requires: jpackage-utils
+BuildArch: noarch
+
+%description
+The goal of the serp bytecode framework is to tap the full
+power of bytecode modification while lowering its associated
+costs. The framework provides a set of high-level APIs for
+manipulating all aspects of bytecode, from large-scale
+structures like class member fields to the individual
+instructions that comprise the code of methods. While in
+order to perform any advanced manipulation, some understanding
+of the class file format and especially of the JVM instruction
+set is necessary, the framework makes it as easy as possible
+to enter the world of bytecode development.
+
+%package javadoc
+Group: Documentation
+Summary: Javadoc for %{name}
+Requires: jpackage-utils
+
+%description javadoc
+This package contains javadoc for %{name}.
+
+%prep
+%setup -q -n %{name}
+find . -name "*.class" -delete
+find . -name "*.jar" -delete
+
+%patch0 -p0
+sed -i "s|pom.version|project.version|" pom.xml
+
+%build
+
+mvn-rpmbuild -Dproject.build.sourceEncoding=UTF-8 install javadoc:aggregate
+
+%install
+
+mkdir -p %{buildroot}%{_javadir}
+install -pm 644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
+
+mkdir -p %{buildroot}%{_mavenpomdir}
+install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
+%add_maven_depmap JPP-%{name}.pom %{name}.jar -a "%{name}:%{name}"
+
+mkdir -p %{buildroot}%{_javadocdir}/%{name}
+cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
+
+%files
+%{_javadir}/%{name}.jar
+%{_mavenpomdir}/JPP-%{name}.pom
+%{_mavendepmapfragdir}/%{name}
+%doc LICENSE.txt README.txt
+
+%files javadoc
+%{_javadocdir}/%{name}
+%doc LICENSE.txt
+
+%changelog
+* Fri Apr 06 2012 gil cattaneo <puntogil at libero.it> 1.14.2-0.1.20120406cvs
+- initial rpm
\ No newline at end of file
diff --git a/sources b/sources
index e69de29..6bef7c4 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+de045ead8836da02c45469bc2bf6ccf3 serp-1.14.2-20120406-src-cvs.tar.gz
More information about the scm-commits
mailing list