2024-01-06 00:04:15 +01:00
|
|
|
%define libname hamcrest
|
2024-01-06 00:04:14 +01:00
|
|
|
Name: java-hamcrest
|
2024-01-06 00:04:15 +01:00
|
|
|
Version: 1.3
|
|
|
|
Release: 1mamba
|
2024-01-06 00:04:14 +01:00
|
|
|
Summary: Hamcrest - library of matchers for building test expressions
|
|
|
|
Group: Development/Tools
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: http://code.google.com/p/hamcrest/
|
2024-01-06 00:04:15 +01:00
|
|
|
Source0: https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/hamcrest/hamcrest-core-%{version}.jar
|
|
|
|
Source1: https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/hamcrest/hamcrest-library-%{version}.jar
|
|
|
|
Source2: https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/hamcrest/hamcrest-generator-%{version}.jar
|
|
|
|
Source3: https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/hamcrest/hamcrest-integration-%{version}.jar
|
2024-01-06 00:04:14 +01:00
|
|
|
License: BSD
|
2024-01-06 00:04:15 +01:00
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
## AUTOBUILDREQ-END
|
2024-01-06 00:04:14 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
|
|
%description
|
|
|
|
Provides a library of matcher objects (also known as constraints or predicates) allowing 'match' rules to be defined declaratively, to be used in other frameworks.
|
|
|
|
Typical scenarios include testing frameworks, mocking libraries and UI validation rules.
|
|
|
|
|
|
|
|
%package demo
|
|
|
|
Group: Documentation
|
|
|
|
Summary: Samples for %{name}
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description demo
|
|
|
|
Provides a library of matcher objects (also known as constraints or predicates) allowing 'match' rules to be defined declaratively, to be used in other frameworks.
|
|
|
|
Typical scenarios include testing frameworks, mocking libraries and UI validation rules..
|
|
|
|
|
|
|
|
This package contains samples for %{name}.
|
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
Group: Documentation
|
|
|
|
Summary: Javadoc for %{name}
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
Provides a library of matcher objects (also known as constraints or predicates) allowing 'match' rules to be defined declaratively, to be used in other frameworks.
|
|
|
|
Typical scenarios include testing frameworks, mocking libraries and UI validation rules.
|
|
|
|
|
|
|
|
This package contains javadoc for %{name}.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
2024-01-06 00:04:15 +01:00
|
|
|
install -dm755 %{buildroot}%{_javadir}/%{libname}
|
|
|
|
cp %{SOURCE0} %{buildroot}%{_javadir}/%{libname}/core-%{version}.jar
|
|
|
|
cp %{SOURCE1} %{buildroot}%{_javadir}/%{libname}/library-%{version}.jar
|
|
|
|
cp %{SOURCE2} %{buildroot}%{_javadir}/%{libname}/generator-%{version}.jar
|
|
|
|
cp %{SOURCE3} %{buildroot}%{_javadir}/%{libname}/integration-%{version}.jar
|
2024-01-06 00:04:14 +01:00
|
|
|
|
2024-01-06 00:04:15 +01:00
|
|
|
for j in core library generator integration; do
|
|
|
|
ln -s ${j}-%{version}.jar %{buildroot}%{_javadir}/%{libname}/${j}.jar
|
|
|
|
ln -s %{libname}/${j}-%{version}.jar %{buildroot}%{_javadir}/%{libname}-${j}.jar
|
|
|
|
done
|
2024-01-06 00:04:14 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{_javadir}/hamcrest
|
2024-01-06 00:04:15 +01:00
|
|
|
%{_javadir}/hamcrest-core.jar
|
2024-01-06 00:04:14 +01:00
|
|
|
%{_javadir}/hamcrest/core-%{version}.jar
|
|
|
|
%{_javadir}/hamcrest/core.jar
|
2024-01-06 00:04:15 +01:00
|
|
|
%{_javadir}/hamcrest-generator.jar
|
2024-01-06 00:04:14 +01:00
|
|
|
%{_javadir}/hamcrest/generator-%{version}.jar
|
|
|
|
%{_javadir}/hamcrest/generator.jar
|
2024-01-06 00:04:15 +01:00
|
|
|
%{_javadir}/hamcrest-integration.jar
|
2024-01-06 00:04:14 +01:00
|
|
|
%{_javadir}/hamcrest/integration-%{version}.jar
|
|
|
|
%{_javadir}/hamcrest/integration.jar
|
2024-01-06 00:04:15 +01:00
|
|
|
%{_javadir}/hamcrest-library.jar
|
2024-01-06 00:04:14 +01:00
|
|
|
%{_javadir}/hamcrest/library-%{version}.jar
|
|
|
|
%{_javadir}/hamcrest/library.jar
|
2024-01-06 00:04:15 +01:00
|
|
|
#%{_javadir}/hamcrest/text-%{version}.jar
|
|
|
|
#%{_javadir}/hamcrest/text.jar
|
|
|
|
#%{_javadir}/hamcrest/unit-test-%{version}.jar
|
|
|
|
#%{_javadir}/hamcrest/unit-test.jar
|
2024-01-06 00:04:14 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-01-06 00:04:15 +01:00
|
|
|
* Wed Aug 08 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 1.3-1mamba
|
|
|
|
- update to 1.3
|
|
|
|
|
2024-01-06 00:04:14 +01:00
|
|
|
* Thu Nov 25 2010 gil <puntogil@libero.it> 1.1-4mamba
|
|
|
|
- rebuilt devel
|
|
|
|
|
|
|
|
* Thu Mar 18 2010 gil <puntogil@libero.it> 1.1-3mamba
|
|
|
|
- added: maven poms; hamcrest core OSGi MANIFEST
|
|
|
|
|
|
|
|
* Thu Jul 23 2009 gil <puntogil@libero.it> 1.1-2mamba
|
|
|
|
- added java-testng support
|
|
|
|
|
|
|
|
* Fri Mar 06 2009 gil <puntogil@libero.it> 1.1-1mamba
|
|
|
|
- package created by autospec
|