[littleproxy] Initial import (#845852)

gil gil at fedoraproject.org
Wed Aug 22 13:16:45 UTC 2012


commit fb96eea2da39665ae57aee7419e54d2132079e3c
Author: gil <puntogil at libero.it>
Date:   Wed Aug 22 15:13:46 2012 +0200

    Initial import (#845852)

 .gitignore                    |    1 +
 littleproxy-0.4-netty35.patch |   37 +++++++++++++++
 littleproxy-0.4-pom.patch     |   38 +++++++++++++++
 littleproxy.spec              |  103 +++++++++++++++++++++++++++++++++++++++++
 sources                       |    1 +
 5 files changed, 180 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..a8a96f8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/littleproxy-0.4-src-git.tar.xz
diff --git a/littleproxy-0.4-netty35.patch b/littleproxy-0.4-netty35.patch
new file mode 100644
index 0000000..5b6a963
--- /dev/null
+++ b/littleproxy-0.4-netty35.patch
@@ -0,0 +1,37 @@
+diff -Nru littleproxy-0.4/src/test/java/org/littleshoot/proxy/ChannelAdapter.java littleproxy-0.4-gil/src/test/java/org/littleshoot/proxy/ChannelAdapter.java
+--- littleproxy-0.4/src/test/java/org/littleshoot/proxy/ChannelAdapter.java	2011-06-02 03:29:47.000000000 +0200
++++ littleproxy-0.4-gil/src/test/java/org/littleshoot/proxy/ChannelAdapter.java	2012-08-08 05:19:04.167623275 +0200
+@@ -130,4 +130,12 @@
+         return 0;
+     }
+ 
++    public void setAttachment(Object attachment) {
++        throw new RuntimeException("Not implemented method setAttachment(Object)");
++    }
++
++    public Object getAttachment() {
++        throw new RuntimeException("Not implemented method getAttachment()");
++    }
++
+ }
+diff -Nru littleproxy-0.4/src/test/java/org/littleshoot/proxy/ChannelFutureAdapter.java littleproxy-0.4-gil/src/test/java/org/littleshoot/proxy/ChannelFutureAdapter.java
+--- littleproxy-0.4/src/test/java/org/littleshoot/proxy/ChannelFutureAdapter.java	2011-06-02 03:29:47.000000000 +0200
++++ littleproxy-0.4-gil/src/test/java/org/littleshoot/proxy/ChannelFutureAdapter.java	2012-08-08 05:24:45.180983620 +0200
+@@ -94,4 +94,17 @@
+         return false;
+     }
+ 
++    public ChannelFuture syncUninterruptibly() {
++        throw new RuntimeException("Not implemented method syncUninterruptibly()");
++    }
++
++    public ChannelFuture sync() throws InterruptedException {
++        throw new RuntimeException("Not implemented method sync()");
++    }
++
++    @Deprecated
++    public ChannelFuture rethrowIfFailed() throws Exception {
++        throw new RuntimeException("Not implemented method rethrowIfFailed()");
++    }
++
+ }
diff --git a/littleproxy-0.4-pom.patch b/littleproxy-0.4-pom.patch
new file mode 100644
index 0000000..71353da
--- /dev/null
+++ b/littleproxy-0.4-pom.patch
@@ -0,0 +1,38 @@
+--- pom.xml	2011-06-02 03:29:47.000000000 +0200
++++ pom.xml-gil	2012-08-22 11:34:37.562011978 +0200
+@@ -144,7 +144,7 @@
+                 </configuration>
+             </plugin>
+ 
+-            <plugin>
++            <!--plugin>
+                 <artifactId>maven-assembly-plugin</artifactId>
+                 <version>2.2-beta-5</version>
+                 <executions>
+@@ -167,7 +167,7 @@
+                         </goals>
+                     </execution>
+                 </executions>
+-            </plugin>
++            </plugin-->
+ 
+             <plugin>
+                 <groupId>org.apache.maven.plugins</groupId>
+@@ -175,7 +175,7 @@
+                 <version>2.1.1</version>
+             </plugin>
+ 
+-            <plugin>
++            <!--plugin>
+                 <groupId>org.apache.maven.plugins</groupId>
+                 <artifactId>maven-gpg-plugin</artifactId>
+                 <executions>
+@@ -187,7 +187,7 @@
+                         </goals>
+                     </execution>
+                 </executions>
+-            </plugin>
++            </plugin-->
+ 
+         </plugins>
+     </build>
diff --git a/littleproxy.spec b/littleproxy.spec
new file mode 100644
index 0000000..3152717
--- /dev/null
+++ b/littleproxy.spec
@@ -0,0 +1,103 @@
+Name:          littleproxy
+Version:       0.4
+Release:       1%{?dist}
+Summary:       High Performance HTTP Proxy
+Group:         Development/Libraries
+License:       ASL 2.0
+URL:           http://www.littleshoot.org/littleproxy/
+# git clone git://github.com/adamfisk/LittleProxy.git littleproxy-0.4
+# cd littleproxy-0.4 &&  git archive --format=tar --prefix=littleproxy-0.4/ littleproxy-0.4 | xz > ../littleproxy-0.4-src-git.tar.xz
+Source0:       %{name}-%{version}-src-git.tar.xz
+# add netty 3.5.x support
+Patch0:        %{name}-%{version}-netty35.patch
+# remove: maven-assembly-plugin, maven-gpg-plugin
+Patch1:        littleproxy-0.4-pom.patch
+
+BuildRequires: java-devel
+BuildRequires: jpackage-utils
+BuildRequires: sonatype-oss-parent
+
+BuildRequires: apache-commons-codec
+BuildRequires: apache-commons-io
+BuildRequires: apache-commons-lang
+BuildRequires: ehcache-core
+BuildRequires: log4j
+BuildRequires: netty
+BuildRequires: slf4j
+
+# test deps
+BuildRequires: junit
+
+BuildRequires: maven
+BuildRequires: maven-enforcer-plugin
+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
+
+Requires:      apache-commons-codec
+Requires:      apache-commons-io
+Requires:      apache-commons-lang
+Requires:      ehcache-core
+Requires:      log4j
+Requires:      netty
+Requires:      slf4j
+
+Requires:      java
+Requires:      jpackage-utils
+BuildArch:     noarch
+
+%description
+LittleProxy is a high performance HTTP proxy written in Java and
+using the Netty networking framework.
+
+%package javadoc
+Group:         Documentation
+Summary:       Javadoc for %{name}
+Requires:      jpackage-utils
+
+%description javadoc
+This package contains javadoc for %{name}.
+
+%prep
+%setup -q
+%if %{?fedora} > 17
+%patch0 -p1
+%pom_remove_plugin :maven-assembly-plugin
+%pom_remove_plugin org.apache.maven.plugins:maven-gpg-plugin
+%else
+%patch1 -p0
+%endif
+
+%build
+
+mvn-rpmbuild install javadoc:aggregate
+
+%install
+
+mkdir -p %{buildroot}%{_javadir}
+install -m 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
+
+mkdir -p %{buildroot}%{_javadocdir}/%{name}
+cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
+
+%files
+%{_javadir}/%{name}.jar
+%{_mavenpomdir}/JPP-%{name}.pom
+%{_mavendepmapfragdir}/%{name}
+%doc COPYRIGHT.txt LICENSE.txt
+
+%files javadoc
+%{_javadocdir}/%{name}
+%doc COPYRIGHT.txt LICENSE.txt
+
+%changelog
+* Sun Aug 05 2012 gil cattaneo <puntogil at libero.it> 0.4-1
+- initial rpm
\ No newline at end of file
diff --git a/sources b/sources
index e69de29..4f4cadf 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+f760ad88573d69d1bfd9305c88a6a698  littleproxy-0.4-src-git.tar.xz


More information about the scm-commits mailing list