Split hamcrest-core subpackage to allow other frameworks to reduce deps.

This commit is contained in:
Alexander Kurtakov 2015-02-23 19:15:25 +02:00
parent 1ff4a50d8f
commit 4a88f092ea

View File

@ -42,7 +42,7 @@
Name: hamcrest Name: hamcrest
Version: 1.3 Version: 1.3
Release: 9%{?dist} Release: 10%{?dist}
Epoch: 0 Epoch: 0
Summary: Library of matchers for building test expressions Summary: Library of matchers for building test expressions
License: BSD License: BSD
@ -72,14 +72,15 @@ Patch4: %{name}-%{version}-qdox-2.0.patch
Requires: java-headless >= 1:1.6.0 Requires: java-headless >= 1:1.6.0
Requires: qdox Requires: qdox
Requires: easymock3 Requires: easymock >= 3.0
Requires: %{name}-core = %{epoch}:%{version}-%{release}
BuildRequires: jpackage-utils >= 0:1.7.4 BuildRequires: jpackage-utils >= 0:1.7.4
BuildRequires: java-devel >= 1:1.6.0 BuildRequires: java-devel >= 1:1.6.0
BuildRequires: ant >= 0:1.6.5 BuildRequires: ant >= 0:1.6.5
BuildRequires: ant-junit BuildRequires: ant-junit
BuildRequires: zip BuildRequires: zip
BuildRequires: easymock3 BuildRequires: easymock >= 3.0
BuildRequires: perl BuildRequires: perl
%if %with jarjar %if %with jarjar
BuildRequires: jarjar BuildRequires: jarjar
@ -98,10 +99,16 @@ allowing 'match' rules to be defined declaratively, to be used in other
frameworks. Typical scenarios include testing frameworks, mocking libraries and frameworks. Typical scenarios include testing frameworks, mocking libraries and
UI validation rules. UI validation rules.
%package core
Summary: Core API of hamcrest matcher framework.
%description core
The core API of hamcrest matcher framework to be used by third-party framework providers.
This includes the a foundation set of matcher implementations for common operations.
%package javadoc %package javadoc
Group: Documentation Group: Documentation
Summary: Javadoc for %{name} Summary: Javadoc for %{name}
BuildArch: noarch
%description javadoc %description javadoc
Javadoc for %{name}. Javadoc for %{name}.
@ -189,7 +196,7 @@ zip -u build/%{name}-generator-%{version}.jar META-INF/MANIFEST.MF
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}/%{name} install -d -m 755 $RPM_BUILD_ROOT%{_javadir}/%{name}
install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir} install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
install -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-parent.pom install -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-parent.pom
%add_maven_depmap JPP.%{name}-parent.pom %add_maven_depmap JPP.%{name}-parent.pom -f core
install -m 644 build/%{name}-all-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/all.jar install -m 644 build/%{name}-all-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/all.jar
install -m 644 %{SOURCE6} $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-all.pom install -m 644 %{SOURCE6} $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-all.pom
@ -197,7 +204,7 @@ install -m 644 %{SOURCE6} $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-all.pom
install -m 644 build/%{name}-core-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/core.jar install -m 644 build/%{name}-core-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/core.jar
install -m 644 %{SOURCE5} $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-core.pom install -m 644 %{SOURCE5} $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-core.pom
%add_maven_depmap JPP.%{name}-core.pom %{name}/core.jar %add_maven_depmap JPP.%{name}-core.pom %{name}/core.jar -f core
install -m 644 build/%{name}-generator-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/generator.jar install -m 644 build/%{name}-generator-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/generator.jar
install -m 644 %{SOURCE4} $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-generator.pom install -m 644 %{SOURCE4} $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-generator.pom
@ -234,6 +241,8 @@ cp -pr %{name}-examples $RPM_BUILD_ROOT%{_datadir}/%{name}/
%{_javadir}/%{name}/unit-test.jar %{_javadir}/%{name}/unit-test.jar
%endif %endif
%files core -f .mfiles-core
%files javadoc %files javadoc
%{_javadocdir}/%{name} %{_javadocdir}/%{name}
@ -241,6 +250,9 @@ cp -pr %{name}-examples $RPM_BUILD_ROOT%{_datadir}/%{name}/
%{_datadir}/%{name} %{_datadir}/%{name}
%changelog %changelog
* Mon Feb 23 2015 Alexander Kurtakov <akurtako@redhat.com> 0:1.3-10
- Split hamcrest-core subpackage to allow other frameworks to reduce deps.
* Wed Feb 4 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.3-9 * Wed Feb 4 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.3-9
- Port to QDox 2.0 - Port to QDox 2.0
- Resolves: rhbz#1166700 - Resolves: rhbz#1166700