Enable tests on Fedora
This commit is contained in:
parent
4b7b2d8a0b
commit
e0f09d8ba9
@ -3,7 +3,7 @@
|
|||||||
Name: httpcomponents-client
|
Name: httpcomponents-client
|
||||||
Summary: HTTP agent implementation based on httpcomponents HttpCore
|
Summary: HTTP agent implementation based on httpcomponents HttpCore
|
||||||
Version: 4.2.5
|
Version: 4.2.5
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
License: ASL 2.0
|
License: ASL 2.0
|
||||||
URL: http://hc.apache.org/
|
URL: http://hc.apache.org/
|
||||||
@ -12,10 +12,15 @@ Source0: http://archive.apache.org/dist/httpcomponents/httpclient/sour
|
|||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
BuildRequires: maven-local
|
BuildRequires: maven-local
|
||||||
BuildRequires: httpcomponents-project
|
BuildRequires: mvn(commons-codec:commons-codec)
|
||||||
BuildRequires: httpcomponents-core
|
BuildRequires: mvn(commons-logging:commons-logging)
|
||||||
BuildRequires: apache-mime4j
|
BuildRequires: mvn(org.apache.httpcomponents:httpcore)
|
||||||
BuildRequires: apache-commons-codec
|
BuildRequires: mvn(org.apache.httpcomponents:project)
|
||||||
|
%if 0%{?fedora}
|
||||||
|
# Test dependencies
|
||||||
|
BuildRequires: mvn(org.mockito:mockito-core)
|
||||||
|
BuildRequires: mvn(junit:junit)
|
||||||
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
HttpClient is a HTTP/1.1 compliant HTTP agent implementation based on
|
HttpClient is a HTTP/1.1 compliant HTTP agent implementation based on
|
||||||
@ -40,11 +45,13 @@ Group: Documentation
|
|||||||
%pom_disable_module httpclient-cache
|
%pom_disable_module httpclient-cache
|
||||||
%pom_disable_module httpclient-osgi
|
%pom_disable_module httpclient-osgi
|
||||||
%pom_disable_module fluent-hc
|
%pom_disable_module fluent-hc
|
||||||
%pom_remove_dep :mockito-core httpclient
|
|
||||||
%pom_remove_plugin :maven-notice-plugin
|
%pom_remove_plugin :maven-notice-plugin
|
||||||
%pom_remove_plugin :docbkx-maven-plugin
|
%pom_remove_plugin :docbkx-maven-plugin
|
||||||
%pom_remove_plugin :clirr-maven-plugin
|
%pom_remove_plugin :clirr-maven-plugin
|
||||||
%pom_remove_plugin :maven-clover2-plugin httpclient
|
%pom_remove_plugin :maven-clover2-plugin httpclient
|
||||||
|
%if !0%{?fedora}
|
||||||
|
%pom_remove_dep :mockito-core httpclient
|
||||||
|
%endif
|
||||||
|
|
||||||
# Add proper Apache felix bundle plugin instructions
|
# Add proper Apache felix bundle plugin instructions
|
||||||
# so that we get a reasonable OSGi manifest.
|
# so that we get a reasonable OSGi manifest.
|
||||||
@ -94,7 +101,14 @@ done
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
%mvn_file ":{*}" httpcomponents/@1
|
%mvn_file ":{*}" httpcomponents/@1
|
||||||
|
|
||||||
|
# Build with tests enabled on Fedora
|
||||||
|
%if 0%{?fedora}
|
||||||
|
%mvn_build
|
||||||
|
%else
|
||||||
%mvn_build -f
|
%mvn_build -f
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%mvn_install
|
%mvn_install
|
||||||
@ -108,6 +122,9 @@ done
|
|||||||
%doc LICENSE.txt NOTICE.txt
|
%doc LICENSE.txt NOTICE.txt
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Jun 10 2013 Michal Srb <msrb@redhat.com> - 4.2.5-2
|
||||||
|
- Enable tests on Fedora
|
||||||
|
|
||||||
* Thu Apr 25 2013 Michal Srb <msrb@redhat.com> - 4.2.5-1
|
* Thu Apr 25 2013 Michal Srb <msrb@redhat.com> - 4.2.5-1
|
||||||
- Update to upstream version 4.2.5
|
- Update to upstream version 4.2.5
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user