Blame SPECS/httpcomponents-core.spec

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