%global base_name httpcomponents Name: httpcomponents-core Summary: Set of low level Java HTTP transport components for HTTP services Version: 4.2.2 Release: %mkrel 2 Group: Development/Java License: ASL 2.0 URL: http://hc.apache.org/ Source0: http://www.apache.org/dist/httpcomponents/httpcore/source/httpcomponents-core-%{version}-src.tar.gz BuildArch: noarch BuildRequires: httpcomponents-project BuildRequires: java >= 1:1.6.0 BuildRequires: jpackage-utils BuildRequires: maven-surefire-provider-junit4 BuildRequires: apache-commons-logging BuildRequires: junit BuildRequires: mockito Requires: java >= 1:1.6.0 Requires: jpackage-utils Requires: apache-commons-logging Requires: junit %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 %{name} Group: Development/Java Requires: jpackage-utils %description javadoc %{summary}. %prep %setup -q %pom_remove_plugin :maven-clover2-plugin httpcore-nio %pom_remove_plugin :maven-clover2-plugin httpcore %pom_remove_plugin :maven-notice-plugin %pom_remove_plugin :docbkx-maven-plugin # OSGify modules for module in httpcore httpcore-nio; do %pom_xpath_remove "pom:project/pom:packaging" $module %pom_xpath_inject "pom:project" "<packaging>bundle</packaging>" $module %pom_xpath_inject "pom:build/pom:plugins" " <plugin> <groupId>org.apache.felix</groupId> <artifactId>maven-bundle-plugin</artifactId> <extensions>true</extensions> <configuration> <instructions> <Export-Package>*</Export-Package> </instructions> </configuration> </plugin>" $module done %build mvn-rpmbuild \ %if 0%{?rhel} -Dmaven.test.skip=true \ %endif install javadoc:aggregate %install install -dm 755 %{buildroot}/%{_mavenpomdir} install -dm 755 %{buildroot}/%{_javadir}/%{base_name} for m in httpcore httpcore-nio; do # poms install -pm 644 $m/pom.xml %{buildroot}/%{_mavenpomdir}/JPP.%{base_name}-$m.pom # jars - osgi doesn't have one if [ -f $m/target/$m-%{version}.jar ];then install -m 644 $m/target/$m-%{version}.jar %{buildroot}%{_javadir}/%{base_name}/$m.jar fi %add_maven_depmap JPP.%{base_name}-$m.pom %{base_name}/$m.jar done # parent install -pm 644 pom.xml %{buildroot}/%{_mavenpomdir}/JPP.%{base_name}-%{name}.pom %add_maven_depmap JPP.%{base_name}-%{name}.pom # javadocs install -dm 755 %{buildroot}%{_javadocdir}/%{name} cp -pr target/site/api*/* %{buildroot}%{_javadocdir}/%{name} %files %doc LICENSE.txt NOTICE.txt %doc README.txt RELEASE_NOTES.txt %{_mavendepmapfragdir}/%{name} %{_mavenpomdir}/JPP.%{base_name}*.pom %{_javadir}/%{base_name} %files javadoc %doc LICENSE.txt NOTICE.txt %doc %{_javadocdir}/%{name} %changelog * Sat Jan 12 2013 umeabot <umeabot> 4.2.2-2.mga3 + Revision: 353355 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Mon Dec 03 2012 dmorgan <dmorgan> 4.2.2-1.mga3 + Revision: 325729 - New version * Wed Sep 12 2012 dmorgan <dmorgan> 4.2.1-1.mga3 + Revision: 292895 - New version * Mon Jul 16 2012 dmorgan <dmorgan> 4.1.4-1.mga3 + Revision: 271251 - New version 4.1.4 * Sat Dec 10 2011 dmorgan <dmorgan> 4.1.3-1.mga2 + Revision: 179885 - New version 4.1.3 * Fri Dec 09 2011 dmorgan <dmorgan> 4.1.2-1.mga2 + Revision: 179526 - Update to latest upstream (4.1.2) - Fix forgotten add_to_maven_depmap - Update to latest upstream (4.1.1) - Use new maven macros - Tweaks according to new guidelines - Enable tests again * Thu Apr 28 2011 dmorgan <dmorgan> 4.1-7.mga1 + Revision: 92453 - Rebuild after bootstrapping - imported package httpcomponents-core