Blame SPECS/httpcomponents-core.spec

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