8ad4ae6
# READ BEFORE UPDATING: After updating this package to new upstream
8ad4ae6
# version eclipse-ecf should be rebuilt.  For more info, see:
8ad4ae6
# https://fedoraproject.org/wiki/SIGs/Java#Package_Update.2FRebuild_Notes
8ad4ae6
c0d9c7c
%global base_name httpcomponents
d514c44
Stanislav Ochotnicky bd5d27d
Name:              httpcomponents-core
Stanislav Ochotnicky bd5d27d
Summary:           Set of low level Java HTTP transport components for HTTP services
fb8eba9
Version:           4.4.6
0bdf39d
Release:           3%{?dist}
7810c6c
License:           ASL 2.0
Stanislav Ochotnicky bd5d27d
URL:               http://hc.apache.org/
Stanislav Ochotnicky bd5d27d
Source0:           http://www.apache.org/dist/httpcomponents/httpcore/source/httpcomponents-core-%{version}-src.tar.gz
Stanislav Ochotnicky bd5d27d
BuildArch:         noarch
Stanislav Ochotnicky bd5d27d
e2a24b8
BuildRequires:  maven-local
e2a24b8
BuildRequires:  mvn(commons-logging:commons-logging)
e2a24b8
BuildRequires:  mvn(junit:junit)
e2a24b8
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
e2a24b8
BuildRequires:  mvn(org.apache.httpcomponents:project:pom:)
e2a24b8
BuildRequires:  mvn(org.codehaus.mojo:build-helper-maven-plugin)
e2a24b8
BuildRequires:  mvn(org.mockito:mockito-core)
Stanislav Ochotnicky bd5d27d
Stanislav Ochotnicky bd5d27d
%description
Stanislav Ochotnicky bd5d27d
HttpCore is a set of low level HTTP transport components that can be
Stanislav Ochotnicky bd5d27d
used to build custom client and server side HTTP services with a
Stanislav Ochotnicky bd5d27d
minimal footprint. HttpCore supports two I/O models: blocking I/O
Stanislav Ochotnicky bd5d27d
model based on the classic Java I/O and non-blocking, event driven I/O
Stanislav Ochotnicky bd5d27d
model based on Java NIO.
Stanislav Ochotnicky bd5d27d
Stanislav Ochotnicky bd5d27d
The blocking I/O model may be more appropriate for data intensive, low
Stanislav Ochotnicky bd5d27d
latency scenarios, whereas the non-blocking model may be more
Stanislav Ochotnicky bd5d27d
appropriate for high latency scenarios where raw data throughput is
Stanislav Ochotnicky bd5d27d
less important than the ability to handle thousands of simultaneous
Stanislav Ochotnicky bd5d27d
HTTP connections in a resource efficient manner.
Stanislav Ochotnicky bd5d27d
Stanislav Ochotnicky bd5d27d
%package        javadoc
Stanislav Ochotnicky bd5d27d
Summary:        API documentation for %{name}
Stanislav Ochotnicky bd5d27d
Stanislav Ochotnicky bd5d27d
%description    javadoc
Stanislav Ochotnicky bd5d27d
%{summary}.
Stanislav Ochotnicky bd5d27d
Stanislav Ochotnicky bd5d27d
Stanislav Ochotnicky bd5d27d
%prep
Stanislav Ochotnicky bd5d27d
%setup -q
c714007
fceb01f
%pom_remove_plugin :maven-checkstyle-plugin
7321a16
%pom_remove_plugin :apache-rat-plugin
dd9d0ec
%pom_remove_plugin :maven-source-plugin
0bdf39d
%pom_remove_plugin :maven-javadoc-plugin
c714007
01b1568
# we don't need these artifacts right now
01b1568
%pom_disable_module httpcore-osgi
01b1568
%pom_disable_module httpcore-ab
01b1568
c714007
# OSGify modules
c714007
for module in httpcore httpcore-nio; do
c714007
    %pom_xpath_remove "pom:project/pom:packaging" $module
c714007
    %pom_xpath_inject "pom:project" "<packaging>bundle</packaging>" $module
c714007
    %pom_xpath_inject "pom:build/pom:plugins" "
c714007
        <plugin>
c714007
          <groupId>org.apache.felix</groupId>
c714007
          <artifactId>maven-bundle-plugin</artifactId>
c714007
          <extensions>true</extensions>
c714007
          <configuration>
c714007
            <instructions>
c714007
              <Export-Package>*</Export-Package>
0e3468b
              <Private-Package></Private-Package>
0e3468b
              <_nouses>true</_nouses>
c714007
            </instructions>
c714007
          </configuration>
c714007
        </plugin>" $module
c714007
done
Stanislav Ochotnicky bd5d27d
01b1568
# install JARs to httpcomponents/ for compatibility reasons
01b1568
# several other packages expect to find the JARs there
01b1568
%mvn_file ":{*}" httpcomponents/@1
01b1568
Stanislav Ochotnicky bd5d27d
%build
e2a24b8
%mvn_build
Stanislav Ochotnicky bd5d27d
01b1568
%install
01b1568
%mvn_install
Stanislav Ochotnicky bd5d27d
01b1568
%files -f .mfiles
fceb01f
%doc LICENSE.txt NOTICE.txt README.txt RELEASE_NOTES.txt
Stanislav Ochotnicky bd5d27d
01b1568
%files javadoc -f .mfiles-javadoc
3f7f383
%doc LICENSE.txt NOTICE.txt
Stanislav Ochotnicky bd5d27d
Stanislav Ochotnicky bd5d27d
%changelog
0bdf39d
* Thu Feb 23 2017 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.4.6-3
0bdf39d
- Remove unneeded maven-javadoc-plugin invocation
0bdf39d
dd9d0ec
* Tue Feb 07 2017 Michael Simacek <msimacek@redhat.com> - 4.4.6-2
dd9d0ec
- Remove useless plugins
dd9d0ec
fb8eba9
* Thu Jan 12 2017 Michael Simacek <msimacek@redhat.com> - 4.4.6-1
fb8eba9
- Update to upstream version 4.4.6
fb8eba9
7810c6c
* Fri Jun 24 2016 Michael Simacek <msimacek@redhat.com> - 4.4.5-2
7810c6c
- Change license to just ASL 2.0
7810c6c
26354fd
* Thu Jun 23 2016 Michael Simacek <msimacek@redhat.com> - 4.4.5-1
26354fd
- Update to upstream version 4.4.5
26354fd
e2a24b8
* Wed Jun 15 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.4.4-3
e2a24b8
- Regenerate build-requires
e2a24b8
326f521
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.4-2
326f521
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
326f521
3900d3a
* Mon Nov  2 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.4.4-1
3900d3a
- Update to upstream version 4.4.4
3900d3a
3501e82
* Wed Sep  9 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.4.3-1
3501e82
- Update to upstream version 4.4.3
3501e82
96e0163
* Mon Sep 07 2015 Michael Simacek <msimacek@redhat.com> - 4.4.2-1
96e0163
- Update to upstream version 4.4.2
96e0163
6d43656
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.4.1-2
6d43656
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
6d43656
23d951f
* Thu Mar 19 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.4.1-1
23d951f
- Update to upstream version 4.4.1
23d951f
7321a16
* Mon Jan 19 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.4-1
7321a16
- Update to upstream version 4.4
7321a16
18d12e3
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.3.2-3
18d12e3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
18d12e3
3c58c1a
* Mon May 26 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.3.2-2
3c58c1a
- Remove BuildRequires on maven-surefire-provider-junit4
3c58c1a
26446ed
* Mon May 12 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.3.2-1
26446ed
- Update to upstream version 4.3.2
26446ed
fceb01f
* Tue Sep 03 2013 Michal Srb <msrb@redhat.com> - 4.3-1
fceb01f
- Update to upstream version 4.3
fceb01f
dff62ab
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.4-5
dff62ab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
dff62ab
df72555
* Mon Jun 10 2013 Michal Srb <msrb@redhat.com> - 4.2.4-4
df72555
- Fix license tag (CC-BY added)
df72555
0e3468b
* Fri May 17 2013 Alexander Kurtakov <akurtako@redhat.com> 4.2.4-3
0e3468b
- Fix bundle plugin configuration to produce sane manifest.
0e3468b
- Do not duplicate javadoc files list.
0e3468b
01b1568
* Mon Mar 25 2013 Michal Srb <msrb@redhat.com> - 4.2.4-2
01b1568
- Build with xmvn
01b1568
7be523e
* Mon Mar 25 2013 Michal Srb <msrb@redhat.com> - 4.2.4-1
7be523e
- Update to upstream version 4.2.4
7be523e
90696fe
* Mon Feb 25 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.2.3-3
90696fe
- Add missing BR: maven-local
90696fe
b6cb376
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.3-2
b6cb376
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
b6cb376
6c5aae2
* Mon Dec  3 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.2.3-1
6c5aae2
- Update to upstream version 4.2.3
6c5aae2
3c8f3f2
* Fri Oct  5 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.2.2-1
3c8f3f2
- Update to upstream version 4.2.2
3c8f3f2
Stanislav Ochotnicky 45f7e93
* Mon Aug 27 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 4.2.1-3
Stanislav Ochotnicky 45f7e93
- Remove mockito from Requires (not needed really)
Stanislav Ochotnicky 45f7e93
- BR on mockito is now conditional on Fedora
Stanislav Ochotnicky 45f7e93
3f7f383
* Fri Jul 27 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.2.1-2
3f7f383
- Install NOTICE.txt file
3f7f383
- Fix javadir directory ownership
3f7f383
- Preserve timestamps
3f7f383
b0e6b95
* Mon Jul 23 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.2.1-1
b0e6b95
- Update to upstream version 4.2.1
b0e6b95
- Convert patches to POM macros
b0e6b95
3c5b0d3
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1.4-2
3c5b0d3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
3c5b0d3
Krzysztof Daniel 8994ae4
* Fri Mar 23 2012 Krzysztof Daniel <kdaniel@redhat.com> 4.1.4-1
Krzysztof Daniel 8994ae4
- Update to latest upstream (4.1.4)
Krzysztof Daniel 8994ae4
78e390f
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1.3-2
78e390f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
78e390f
Stanislav Ochotnicky 6160061
* Tue Aug 16 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 4.1.3-1
Stanislav Ochotnicky 6160061
- Update to latest upstream (4.1.3)
Stanislav Ochotnicky 6160061
Stanislav Ochotnicky 7420eb2
* Tue Jul 26 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 4.1.2-1
Stanislav Ochotnicky 7420eb2
- Update to latest upstream (4.1.2)
Stanislav Ochotnicky 7420eb2
Stanislav Ochotnicky 06cc88f
* Mon Jul  4 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 4.1.1-2
Stanislav Ochotnicky 06cc88f
- Fix forgotten add_to_maven_depmap
Stanislav Ochotnicky 06cc88f
Stanislav Ochotnicky 188ec81
* Fri Jul  1 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 4.1.1-1
Stanislav Ochotnicky 188ec81
- Update to latest upstream (4.1.1)
Stanislav Ochotnicky 188ec81
- Use new maven macros
Stanislav Ochotnicky 188ec81
- Tweaks according to new guidelines
Stanislav Ochotnicky 188ec81
- Enable tests again (seem to work OK even in koji now)
Stanislav Ochotnicky 188ec81
Severin Gehwolf 3df7208
* Tue Mar 15 2011 Severin Gehwolf <sgehwolf@redhat.com> 4.1-6
Severin Gehwolf 3df7208
- Explicitly set PrivatePackage to the empty set, so as to
Severin Gehwolf 3df7208
  export all packages.
Severin Gehwolf 3df7208
578200f
* Fri Mar 11 2011 Alexander Kurtakov <akurtako@redhat.com> 4.1-5
578200f
- Bump release to fix my mistake with the release.
578200f
4ea93fd
* Thu Mar 10 2011 Alexander Kurtakov <akurtako@redhat.com> 4.1-3
4ea93fd
- Export all packages.
4ea93fd
c0d9c7c
* Fri Feb 18 2011 Alexander Kurtakov <akurtako@redhat.com> 4.1-2
Stanislav Ochotnicky 188ec81
- Don't use basename it's part of coreutils.
c0d9c7c
d514c44
* Fri Feb 18 2011 Alexander Kurtakov <akurtako@redhat.com> 4.1-4
d514c44
- Install into %{_javadir}/httpcomponents. We will use it for client libs too.
d514c44
- Proper osgi info.
d514c44
9c675c6
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1-3
9c675c6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
9c675c6
Stanislav Ochotnicky bd5d27d
* Wed Dec 22 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 4.1-2
Stanislav Ochotnicky bd5d27d
- Added license to javadoc subpackage
Stanislav Ochotnicky bd5d27d
Stanislav Ochotnicky bd5d27d
* Fri Dec 17 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 4.1-1
Stanislav Ochotnicky bd5d27d
- Initial package