From 51e181b7e694f29cfe63135d94fd415e8ecd42ed Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Apr 23 2015 08:04:07 +0000 Subject: import rh-java-common-httpcomponents-core-4.3.3-1.3.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a6b5d48 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/httpcomponents-core-4.3.3-src.tar.gz diff --git a/.rh-java-common-httpcomponents-core.metadata b/.rh-java-common-httpcomponents-core.metadata new file mode 100644 index 0000000..216a136 --- /dev/null +++ b/.rh-java-common-httpcomponents-core.metadata @@ -0,0 +1 @@ +bc34c430470d357c372fa4abea12051d5785d91c SOURCES/httpcomponents-core-4.3.3-src.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SPECS/httpcomponents-core.spec b/SPECS/httpcomponents-core.spec new file mode 100644 index 0000000..cf16953 --- /dev/null +++ b/SPECS/httpcomponents-core.spec @@ -0,0 +1,248 @@ +%global pkg_name httpcomponents-core +%{?scl:%scl_package %{pkg_name}} +%{?java_common_find_provides_and_requires} + +%global base_name httpcomponents + +Name: %{?scl_prefix}%{pkg_name} +Summary: Set of low level Java HTTP transport components for HTTP services +Version: 4.3.3 +Release: 1.3%{?dist} +# The project is licensed under ASL 2.0, but it contains annotations +# in the package org.apache.http.annotation which are derived +# from JCIP-ANNOTATIONS project (CC-BY licensed) +License: ASL 2.0 and CC-BY +URL: http://hc.apache.org/ +Source0: http://www.apache.org/dist/httpcomponents/httpcore/source/httpcomponents-core-%{version}-src.tar.gz +BuildArch: noarch + +BuildRequires: %{?scl_prefix}maven-local +BuildRequires: %{?scl_prefix_maven}httpcomponents-project +BuildRequires: %{?scl_prefix}javapackages-tools +BuildRequires: %{?scl_prefix_maven}maven-surefire-provider-junit +BuildRequires: %{?scl_prefix}apache-commons-logging +BuildRequires: %{?scl_prefix}junit +%if 0%{?rhel} <= 0 +BuildRequires: %{?scl_prefix_maven}mockito +%endif + +%description +HttpCore is a set of low level HTTP transport components that can be +used to build custom client and server side HTTP services with a +minimal footprint. HttpCore supports two I/O models: blocking I/O +model based on the classic Java I/O and non-blocking, event driven I/O +model based on Java NIO. + +The blocking I/O model may be more appropriate for data intensive, low +latency scenarios, whereas the non-blocking model may be more +appropriate for high latency scenarios where raw data throughput is +less important than the ability to handle thousands of simultaneous +HTTP connections in a resource efficient manner. + +%package javadoc +Summary: API documentation for %{pkg_name} + +%description javadoc +%{summary}. + + +%prep +%setup -q -n %{pkg_name}-%{version} +%{?scl:scl enable %{scl_maven} %{scl} - <<"EOF"} +set -e -x + +%pom_remove_plugin :maven-checkstyle-plugin + +# we don't need these artifacts right now +%pom_disable_module httpcore-osgi +%pom_disable_module httpcore-ab + +# OSGify modules +for module in httpcore httpcore-nio; do + %pom_xpath_remove "pom:project/pom:packaging" $module + %pom_xpath_inject "pom:project" "bundle" $module + %pom_xpath_inject "pom:build/pom:plugins" " + + org.apache.felix + maven-bundle-plugin + true + + + * + + <_nouses>true + + + " $module +done + +# install JARs to httpcomponents/ for compatibility reasons +# several other packages expect to find the JARs there +%mvn_file ":{*}" httpcomponents/@1 +%{?scl:EOF} + +%build +%{?scl:scl enable %{scl_maven} %{scl} - <<"EOF"} +set -e -x +%mvn_build \ +%if 0%{?rhel} + -f +%endif +%{?scl:EOF} + + +%install +%{?scl:scl enable %{scl_maven} %{scl} - <<"EOF"} +set -e -x +%mvn_install +%{?scl:EOF} + +%files -f .mfiles +%dir %{_javadir}/httpcomponents +%dir %{_mavenpomdir}/httpcomponents +%doc LICENSE.txt NOTICE.txt +%doc README.txt RELEASE_NOTES.txt + +%files javadoc -f .mfiles-javadoc +%doc LICENSE.txt NOTICE.txt + +%changelog +* Wed Jan 14 2015 Michal Srb - 4.3.3-1.3 +- Fix directory ownership + +* Tue Jan 13 2015 Michael Simacek - 4.3.3-1.2 +- Mass rebuild 2015-01-13 + +* Tue Jan 13 2015 Michal Srb - 4.3.3-1.1 +- Update to 4.3.3 + +* Mon Jan 12 2015 Michael Simacek - 4.2.4-6.12 +- Rebuild to regenerate requires + +* Fri Jan 09 2015 Michal Srb - 4.2.4-6.11 +- Mass rebuild 2015-01-09 + +* Tue Dec 16 2014 Mikolaj Izdebski - 4.2.4-6.10 +- Migrate requires and build-requires to rh-java-common + +* Mon Dec 15 2014 Mikolaj Izdebski - 4.2.4-6.9 +- Mass rebuild 2014-12-15 + +* Mon Dec 15 2014 Mikolaj Izdebski - 4.2.4-6.8 +- Rebuild for rh-java-common collection + +* Mon May 26 2014 Mikolaj Izdebski - 4.2.4-6.7 +- Mass rebuild 2014-05-26 + +* Wed Feb 19 2014 Mikolaj Izdebski - 4.2.4-6.6 +- Mass rebuild 2014-02-19 + +* Tue Feb 18 2014 Mikolaj Izdebski - 4.2.4-6.5 +- Mass rebuild 2014-02-18 + +* Tue Feb 18 2014 Mikolaj Izdebski - 4.2.4-6.4 +- Remove requires on java + +* Mon Feb 17 2014 Mikolaj Izdebski - 4.2.4-6.3 +- SCL-ize build-requires + +* Thu Feb 13 2014 Mikolaj Izdebski - 4.2.4-6.2 +- Rebuild to regenerate auto-requires + +* Tue Feb 11 2014 Mikolaj Izdebski - 4.2.4-6.1 +- First maven30 software collection build + +* Fri Dec 27 2013 Daniel Mach - 4.2.4-6 +- Mass rebuild 2013-12-27 + +* Fri Jun 28 2013 Mikolaj Izdebski - 4.2.4-5 +- Rebuild to regenerate API documentation +- Resolves: CVE-2013-1571 + +* Mon Jun 10 2013 Michal Srb - 4.2.4-4 +- Fix license tag (CC-BY added) + +* Fri May 17 2013 Alexander Kurtakov 4.2.4-3 +- Fix bundle plugin configuration to produce sane manifest. +- Do not duplicate javadoc files list. + +* Mon Mar 25 2013 Michal Srb - 4.2.4-2 +- Build with xmvn + +* Mon Mar 25 2013 Michal Srb - 4.2.4-1 +- Update to upstream version 4.2.4 + +* Mon Feb 25 2013 Mikolaj Izdebski - 4.2.3-3 +- Add missing BR: maven-local + +* Thu Feb 14 2013 Fedora Release Engineering - 4.2.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Mon Dec 3 2012 Mikolaj Izdebski - 4.2.3-1 +- Update to upstream version 4.2.3 + +* Fri Oct 5 2012 Mikolaj Izdebski - 4.2.2-1 +- Update to upstream version 4.2.2 + +* Mon Aug 27 2012 Stanislav Ochotnicky - 4.2.1-3 +- Remove mockito from Requires (not needed really) +- BR on mockito is now conditional on Fedora + +* Fri Jul 27 2012 Mikolaj Izdebski - 4.2.1-2 +- Install NOTICE.txt file +- Fix javadir directory ownership +- Preserve timestamps + +* Mon Jul 23 2012 Mikolaj Izdebski - 4.2.1-1 +- Update to upstream version 4.2.1 +- Convert patches to POM macros + +* Thu Jul 19 2012 Fedora Release Engineering - 4.1.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Fri Mar 23 2012 Krzysztof Daniel 4.1.4-1 +- Update to latest upstream (4.1.4) + +* Fri Jan 13 2012 Fedora Release Engineering - 4.1.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Tue Aug 16 2011 Stanislav Ochotnicky - 4.1.3-1 +- Update to latest upstream (4.1.3) + +* Tue Jul 26 2011 Stanislav Ochotnicky - 4.1.2-1 +- Update to latest upstream (4.1.2) + +* Mon Jul 4 2011 Stanislav Ochotnicky - 4.1.1-2 +- Fix forgotten add_to_maven_depmap + +* Fri Jul 1 2011 Stanislav Ochotnicky - 4.1.1-1 +- Update to latest upstream (4.1.1) +- Use new maven macros +- Tweaks according to new guidelines +- Enable tests again (seem to work OK even in koji now) + +* Tue Mar 15 2011 Severin Gehwolf 4.1-6 +- Explicitly set PrivatePackage to the empty set, so as to + export all packages. + +* Fri Mar 11 2011 Alexander Kurtakov 4.1-5 +- Bump release to fix my mistake with the release. + +* Thu Mar 10 2011 Alexander Kurtakov 4.1-3 +- Export all packages. + +* Fri Feb 18 2011 Alexander Kurtakov 4.1-2 +- Don't use basename it's part of coreutils. + +* Fri Feb 18 2011 Alexander Kurtakov 4.1-4 +- Install into %{_javadir}/httpcomponents. We will use it for client libs too. +- Proper osgi info. + +* Wed Feb 09 2011 Fedora Release Engineering - 4.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Wed Dec 22 2010 Stanislav Ochotnicky - 4.1-2 +- Added license to javadoc subpackage + +* Fri Dec 17 2010 Stanislav Ochotnicky - 4.1-1 +- Initial package