[async-http-client] Initial commit

Stanislav Ochotnicky sochotni at fedoraproject.org
Fri Jan 28 08:07:29 UTC 2011


commit 8eadeaf2d37fc69e153151d98864707d2e3cab16
Author: Stanislav Ochotnicky <sochotnicky at redhat.com>
Date:   Fri Jan 28 09:06:53 2011 +0100

    Initial commit

 .gitignore                          |    1 +
 0001-Remove-test-dependencies.patch |  107 ++++++++++++++++++++++++++++++++++
 async-http-client.spec              |  110 +++++++++++++++++++++++++++++++++++
 sources                             |    1 +
 4 files changed, 219 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..b71727d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/AsyncHttpClient-async-http-client-async-http-client-1.4.1-0-g5ce359e.tar.gz
diff --git a/0001-Remove-test-dependencies.patch b/0001-Remove-test-dependencies.patch
new file mode 100644
index 0000000..9147405
--- /dev/null
+++ b/0001-Remove-test-dependencies.patch
@@ -0,0 +1,107 @@
+From d868287aa574cbb64d1dcdc159e470b984ae379f Mon Sep 17 00:00:00 2001
+From: Stanislav Ochotnicky <sochotnicky at redhat.com>
+Date: Mon, 17 Jan 2011 12:53:27 +0100
+Subject: [PATCH] Remove test dependencies
+
+these are missing in fedora repos for now
+---
+ pom.xml |   76 ---------------------------------------------------------------
+ 1 files changed, 0 insertions(+), 76 deletions(-)
+
+diff --git a/pom.xml b/pom.xml
+index 4c7bbed..5e6234b 100644
+--- a/pom.xml
++++ b/pom.xml
+@@ -80,68 +80,6 @@
+             <version>1.6.1</version>
+         </dependency>
+         
+-        <!-- Test dependencies -->
+-         <dependency>
+-            <groupId>ch.qos.logback</groupId>
+-            <artifactId>logback-classic</artifactId>
+-            <version>0.9.26</version>
+-             <scope>test</scope>
+-        </dependency>       
+-        <dependency>
+-            <groupId>log4j</groupId>
+-            <artifactId>log4j</artifactId>
+-            <version>1.2.13</version>
+-            <scope>test</scope>
+-        </dependency>
+-        <dependency>
+-            <groupId>org.testng</groupId>
+-            <artifactId>testng</artifactId>
+-            <version>5.8</version>
+-            <scope>test</scope>
+-            <classifier>jdk15</classifier>
+-        </dependency>
+-        <dependency>
+-            <groupId>org.eclipse.jetty</groupId>
+-            <artifactId>jetty-server</artifactId>
+-            <version>7.1.4.v20100610</version>
+-            <scope>test</scope>
+-        </dependency>
+-        <dependency>
+-            <groupId>org.eclipse.jetty</groupId>
+-            <artifactId>jetty-servlet</artifactId>
+-            <version>7.1.4.v20100610</version>
+-            <scope>test</scope>
+-        </dependency>
+-        <dependency>
+-            <groupId>org.eclipse.jetty</groupId>
+-            <artifactId>jetty-servlets</artifactId>
+-            <version>7.1.4.v20100610</version>
+-            <scope>test</scope>
+-        </dependency>
+-        <dependency>
+-            <groupId>org.eclipse.jetty</groupId>
+-            <artifactId>jetty-security</artifactId>
+-            <version>7.1.4.v20100610</version>
+-            <scope>test</scope>
+-        </dependency>
+-        <dependency>
+-            <groupId>org.apache.tomcat</groupId>
+-            <artifactId>coyote</artifactId>
+-            <version>6.0.29</version>
+-            <scope>test</scope>
+-        </dependency>
+-        <dependency>
+-            <groupId>org.apache.tomcat</groupId>
+-            <artifactId>catalina</artifactId>
+-            <version>6.0.29</version>
+-            <scope>test</scope>
+-            <exclusions>
+-                <exclusion>
+-                    <artifactId>servlet-api</artifactId>
+-                    <groupId>org.apache.tomcat</groupId>
+-                </exclusion>
+-            </exclusions>
+-        </dependency>
+ 
+         <!-- Optional Apache Http Client -->
+         <dependency>
+@@ -163,20 +101,6 @@
+             <optional>true</optional>
+         </dependency>
+ 
+-        <dependency>
+-            <groupId>org.sonatype.http-testing-harness</groupId>
+-            <artifactId>testng-runner</artifactId>
+-            <version>0.3</version>
+-            <type>jar</type>
+-            <scope>test</scope>
+-        </dependency>
+-        <dependency>
+-            <groupId>org.sonatype.http-testing-harness</groupId>
+-            <artifactId>server-provider</artifactId>
+-            <version>0.3</version>
+-            <type>jar</type>
+-            <scope>test</scope>
+-        </dependency>
+     </dependencies>
+     <build>
+         <defaultGoal>install</defaultGoal>
+-- 
+1.7.3.4
+
diff --git a/async-http-client.spec b/async-http-client.spec
new file mode 100644
index 0000000..8c671f4
--- /dev/null
+++ b/async-http-client.spec
@@ -0,0 +1,110 @@
+%global githash 5ce359e
+%global dirhash a691a35
+Name:           async-http-client
+Version:        1.4.1
+
+
+Release:        2%{?dist}
+Summary:        Asynchronous Http Client for Java
+
+Group:          Development/Libraries
+License:        ASL 2.0
+URL:            https://github.com/AsyncHttpClient/%{name}
+# it seems github has redirects plus it generates tarball on the fly
+# to get tarball go to https://github.com/AsyncHttpClient/async-http-client/archives/async-http-client-1.4.1
+# click "downloads" in upper right corner
+# click "download .tar.gz"
+Source0:        AsyncHttpClient-%{name}-%{name}-%{version}-0-g%{githash}.tar.gz
+
+Patch0:         0001-Remove-test-dependencies.patch
+
+BuildArch:      noarch
+
+BuildRequires:  maven
+BuildRequires:  maven-compiler-plugin
+BuildRequires:  maven-shade-plugin
+BuildRequires:  maven-install-plugin
+BuildRequires:  maven-jar-plugin
+BuildRequires:  maven-javadoc-plugin
+BuildRequires:  maven-resources-plugin
+BuildRequires:  maven-site-plugin
+BuildRequires:  maven-surefire-plugin
+BuildRequires:  maven-surefire-provider-junit4
+BuildRequires:  maven-release-plugin
+BuildRequires:  sonatype-oss-parent
+BuildRequires:  netty
+
+Requires:       netty
+Requires:       java >= 1:1.6.0
+Requires(post): jpackage-utils
+Requires(postun): jpackage-utils
+
+
+%description
+Async Http Client library purpose is to allow Java applications to
+easily execute HTTP requests and asynchronously process the HTTP
+responses. The Async HTTP Client library is simple to use.
+
+
+%package javadoc
+Summary:   API documentation for %{name}
+Group:     Documentation
+Requires:  jpackage-utils
+
+%description javadoc
+%{summary}.
+
+%prep
+# last part will have to change every time
+%setup -q -n AsyncHttpClient-%{name}-%{dirhash}
+
+%patch0 -p1
+
+%build
+# we don't have all test dependencies available so disable tests
+mvn-local -e \
+        -Dmaven.test.skip=true \
+        install javadoc:aggregate
+
+
+%install
+
+install -d -m 755 %{buildroot}%{_javadir}/
+install -d -m 755 %{buildroot}%{_mavenpomdir}
+
+install -m 644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
+install -pm 644 pom.xml %{buildroot}/%{_mavenpomdir}/JPP-%{name}.pom
+%add_to_maven_depmap com.ning %{name} %{version} JPP %{name}
+
+install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
+cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
+
+
+%post
+%update_maven_depmap
+
+%postun
+%update_maven_depmap
+
+
+%files
+%defattr(-,root,root,-)
+%doc README changelog.html LICENSE-2.0.txt
+%{_javadir}/%{name}.jar
+%{_mavendepmapfragdir}/%{name}
+%{_mavenpomdir}/JPP-%{name}.pom
+
+%files javadoc
+%defattr(-,root,root,-)
+%doc LICENSE-2.0.txt
+%{_javadocdir}/%{name}
+
+
+
+%changelog
+* Wed Jan 26 2011 Stanislav Ochotnicky <sochotnicky at redhat.com> - 1.4.1-2
+- Add maven-shade-plugin to BR
+
+* Mon Jan 17 2011 Stanislav Ochotnicky <sochotnicky at redhat.com> - 1.4.1-1
+- Initial version
+
diff --git a/sources b/sources
index e69de29..3bef80e 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+86ec6d2bd9211cb50cfed40ae40810fe  AsyncHttpClient-async-http-client-async-http-client-1.4.1-0-g5ce359e.tar.gz


More information about the scm-commits mailing list