commit 021263648560e0f15993e4c0890d655425e8a9c9
Author: Stanislav Ochotnicky <sochotnicky(a)redhat.com>
Date: Tue Dec 21 09:40:58 2010 +0100
Initial commit
.gitignore | 1 +
0001-Clean-pom.patch | 60 +++++++++++++++++++++++++++++++++++
httpcomponents-project.spec | 73 +++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
4 files changed, 135 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..41c50eb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/httpcomponents-project-4.1.1.tar.xz
diff --git a/0001-Clean-pom.patch b/0001-Clean-pom.patch
new file mode 100644
index 0000000..287c24b
--- /dev/null
+++ b/0001-Clean-pom.patch
@@ -0,0 +1,60 @@
+From ce430c0efe010c788f526a9285d7ac6d749d16b7 Mon Sep 17 00:00:00 2001
+From: Stanislav Ochotnicky <sochotnicky(a)redhat.com>
+Date: Mon, 20 Dec 2010 12:40:34 +0100
+Subject: [PATCH] Clean pom
+
+---
+ pom.xml | 33 +--------------------------------
+ 1 files changed, 1 insertions(+), 32 deletions(-)
+
+diff --git a/pom.xml b/pom.xml
+index 733b214..73d6a15 100644
+--- a/pom.xml
++++ b/pom.xml
+@@ -411,42 +411,11 @@
+ </plugin>
+ <!-- Other plugins, alpha order by groupId and artifactId -->
+ <plugin>
+- <groupId>com.agilejava.docbkx</groupId>
+- <artifactId>docbkx-maven-plugin</artifactId>
+- <version>2.0.10</version>
+- </plugin>
+- <plugin>
+- <groupId>com.atlassian.maven.plugins</groupId>
+- <artifactId>maven-clover2-plugin</artifactId>
+- <version>2.6.3</version>
+- </plugin>
+- <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <version>2.1.0</version>
+ </plugin>
+- <plugin>
+- <groupId>org.codehaus.mojo</groupId>
+- <artifactId>clirr-maven-plugin</artifactId>
+- <version>2.2.3</version>
+- </plugin>
+- <plugin>
+- <artifactId>maven-notice-plugin</artifactId>
+- <groupId>org.apache.httpcomponents</groupId>
+- <version>0.0.2</version>
+- <executions>
+- <execution>
+- <id>attach-notice-license</id>
+- <goals>
+- <goal>generate</goal>
+- </goals>
+- </execution>
+- </executions>
+- <configuration>
+- <projectTitle>Apache HttpComponents</projectTitle>
+- </configuration>
+- </plugin>
+- </plugins>
++ </plugins>
+ </pluginManagement>
+ </build>
+
+--
+1.7.3.3
+
diff --git a/httpcomponents-project.spec b/httpcomponents-project.spec
new file mode 100644
index 0000000..b4a3a9a
--- /dev/null
+++ b/httpcomponents-project.spec
@@ -0,0 +1,73 @@
+Name: httpcomponents-project
+Summary: Common POM file for HttpComponents
+Version: 4.1.1
+Release: 1%{?dist}
+Group: Development/Libraries
+License: ASL 2.0
+URL:
http://hc.apache.org/
+# svn export -r 1050387
http://svn.apache.org/repos/asf/httpcomponents/project
httpcomponents-project-4.1.1
+# tar cJvf httpcomponents-project-4.1.1.tar.xz httpcomponents-project-4.1.1
+Source0: httpcomponents-project-%{version}.tar.xz
+Patch0: 0001-Clean-pom.patch
+BuildArch: noarch
+
+BuildRequires: java-devel >= 1:1.6.0
+BuildRequires: jpackage-utils
+
+# Requires are dependencies from pom.xml. This project should only be required for
building with maven.
+Requires: java >= 1:1.6.0
+Requires: jpackage-utils
+Requires: maven2 >= 2.0.9
+Requires: maven-antrun-plugin
+Requires: maven-assembly-plugin
+Requires: maven-clean-plugin
+Requires: maven-compiler-plugin
+Requires: maven-deploy-plugin
+Requires: maven-gpg-plugin
+Requires: maven-install-plugin
+Requires: maven-jar-plugin
+Requires: maven-javadoc-plugin
+Requires: maven-plugin-jxr
+Requires: maven-project-info-reports-plugin
+Requires: maven-release-plugin
+Requires: maven-resources-plugin
+Requires: maven-site-plugin
+Requires: maven-source-plugin
+Requires: maven-surefire-plugin
+Requires: maven-surefire-report-plugin
+Requires: maven-release-plugin
+Requires: maven-plugin-jxr
+Requires: maven-plugin-bundle
+
+Requires(post): jpackage-utils
+Requires(postun): jpackage-utils
+
+%description
+Common Maven POM file for HttpComponents. This project should be
+required only for building dependant packages with Maven. Please don't
+use it as runtime requirement.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%install
+%{__install} -D -m 0644 pom.xml
%{buildroot}/%{_mavenpomdir}/JPP.httpcomponents-project.pom
+%add_to_maven_depmap org.apache.httpcomponents project %{version} JPP/httpcomponents
project
+
+%post
+%update_maven_depmap
+
+%postun
+%update_maven_depmap
+
+%files
+%defattr(-,root,root,-)
+%doc LICENSE.txt
+%{_mavendepmapfragdir}/%{name}
+%{_mavenpomdir}/JPP.%{name}.pom
+
+%changelog
+* Fri Dec 17 2010 Stanislav Ochotnicky <sochotnicky(a)redhat.com> - 4.1.1-1
+- Initial version
+
diff --git a/sources b/sources
index e69de29..ba13a38 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+9ae37b64ca1149013a5d8e34b0efa07e httpcomponents-project-4.1.1.tar.xz