java-hamcrest/java-hamcrest.spec

101 lines
3.8 KiB
RPMSpec

%define libname hamcrest
Name: java-hamcrest
Version: 1.3
Release: 1mamba
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/
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
License: BSD
## AUTOBUILDREQ-BEGIN
## AUTOBUILDREQ-END
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}"
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
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
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%dir %{_javadir}/hamcrest
%{_javadir}/hamcrest-core.jar
%{_javadir}/hamcrest/core-%{version}.jar
%{_javadir}/hamcrest/core.jar
%{_javadir}/hamcrest-generator.jar
%{_javadir}/hamcrest/generator-%{version}.jar
%{_javadir}/hamcrest/generator.jar
%{_javadir}/hamcrest-integration.jar
%{_javadir}/hamcrest/integration-%{version}.jar
%{_javadir}/hamcrest/integration.jar
%{_javadir}/hamcrest-library.jar
%{_javadir}/hamcrest/library-%{version}.jar
%{_javadir}/hamcrest/library.jar
#%{_javadir}/hamcrest/text-%{version}.jar
#%{_javadir}/hamcrest/text.jar
#%{_javadir}/hamcrest/unit-test-%{version}.jar
#%{_javadir}/hamcrest/unit-test.jar
%changelog
* Wed Aug 08 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 1.3-1mamba
- update to 1.3
* 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