|
|
@ -4,28 +4,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
Name: hamcrest
|
|
|
|
Name: hamcrest
|
|
|
|
Version: 2.2
|
|
|
|
Version: 2.2
|
|
|
|
Release: 9%{?dist}
|
|
|
|
Release: 16%{?dist}
|
|
|
|
Summary: Library of matchers for building test expressions
|
|
|
|
Summary: Library of matchers for building test expressions
|
|
|
|
License: BSD
|
|
|
|
License: BSD-3-Clause
|
|
|
|
URL: https://github.com/hamcrest/JavaHamcrest
|
|
|
|
URL: https://github.com/hamcrest/JavaHamcrest
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
ExclusiveArch: %{java_arches} noarch
|
|
|
|
|
|
|
|
|
|
|
|
Source0: https://github.com/hamcrest/JavaHamcrest/archive/v%{upstream_version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
|
|
Source0: https://github.com/hamcrest/JavaHamcrest/archive/v%{upstream_version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
|
|
Source1: https://repo1.maven.org/maven2/org/hamcrest/hamcrest/%{upstream_version}/hamcrest-%{upstream_version}.pom
|
|
|
|
Source1: https://repo1.maven.org/maven2/org/hamcrest/hamcrest/%{upstream_version}/hamcrest-%{upstream_version}.pom
|
|
|
|
|
|
|
|
|
|
|
|
Patch0: 0001-Fix-build-with-OpenJDK-11.patch
|
|
|
|
Patch0: 0001-Fix-build-with-OpenJDK-11.patch
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: maven-local
|
|
|
|
|
|
|
|
%if %{with bootstrap}
|
|
|
|
%if %{with bootstrap}
|
|
|
|
BuildRequires: javapackages-bootstrap
|
|
|
|
BuildRequires: javapackages-bootstrap
|
|
|
|
%else
|
|
|
|
%else
|
|
|
|
|
|
|
|
BuildRequires: maven-local
|
|
|
|
BuildRequires: mvn(junit:junit)
|
|
|
|
BuildRequires: mvn(junit:junit)
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
Provides: hamcrest-core = %{version}-%{release}
|
|
|
|
|
|
|
|
Obsoletes: hamcrest-core < 1.3-32
|
|
|
|
|
|
|
|
Obsoletes: hamcrest-demo < 1.3-32
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
Provides a library of matcher objects (also known as constraints or predicates)
|
|
|
|
Provides a library of matcher objects (also known as constraints or predicates)
|
|
|
|
allowing 'match' rules to be defined declaratively, to be used in other
|
|
|
|
allowing 'match' rules to be defined declaratively, to be used in other
|
|
|
@ -40,70 +37,97 @@ Javadoc for %{name}.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q -n JavaHamcrest-%{upstream_version}
|
|
|
|
%setup -q -n JavaHamcrest-%{upstream_version}
|
|
|
|
%patch -P 0 -p1
|
|
|
|
%patch0 -p1
|
|
|
|
|
|
|
|
|
|
|
|
rm -rf docs
|
|
|
|
|
|
|
|
rm -rf *gradle*
|
|
|
|
|
|
|
|
rm -rf */*.gradle
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mv hamcrest/src .
|
|
|
|
sed -i 's/\r//' LICENSE.txt
|
|
|
|
rm -rf hamcrest
|
|
|
|
|
|
|
|
rm -rf hamcrest-core
|
|
|
|
|
|
|
|
rm -rf hamcrest-integration
|
|
|
|
|
|
|
|
rm -rf hamcrest-library
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pushd hamcrest
|
|
|
|
cp -p %{SOURCE1} pom.xml
|
|
|
|
cp -p %{SOURCE1} pom.xml
|
|
|
|
%pom_add_dep junit:junit::test
|
|
|
|
%pom_add_dep junit:junit::test
|
|
|
|
%pom_xpath_inject pom:project '
|
|
|
|
%pom_xpath_inject pom:project '
|
|
|
|
<build>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
|
|
<version>3.8.1</version>
|
|
|
|
<version>any</version>
|
|
|
|
<configuration>
|
|
|
|
<configuration>
|
|
|
|
<source>1.8</source>
|
|
|
|
<source>1.8</source>
|
|
|
|
<target>1.8</target>
|
|
|
|
<target>1.8</target>
|
|
|
|
</configuration>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
<plugin>
|
|
|
|
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
|
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
|
|
|
|
|
|
<version>any</version>
|
|
|
|
|
|
|
|
<configuration>
|
|
|
|
|
|
|
|
<archive>
|
|
|
|
|
|
|
|
<manifestEntries>
|
|
|
|
|
|
|
|
<Automatic-Module-Name>org.hamcrest</Automatic-Module-Name>
|
|
|
|
|
|
|
|
</manifestEntries>
|
|
|
|
|
|
|
|
</archive>
|
|
|
|
|
|
|
|
</configuration>
|
|
|
|
|
|
|
|
</plugin>
|
|
|
|
|
|
|
|
</plugins>
|
|
|
|
</build>'
|
|
|
|
</build>'
|
|
|
|
|
|
|
|
|
|
|
|
%mvn_alias org.hamcrest:hamcrest org.hamcrest:hamcrest-all
|
|
|
|
%mvn_alias org.hamcrest:hamcrest org.hamcrest:hamcrest-all
|
|
|
|
%mvn_alias org.hamcrest:hamcrest org.hamcrest:hamcrest-core
|
|
|
|
%mvn_alias org.hamcrest:hamcrest org.hamcrest:hamcrest-core
|
|
|
|
%mvn_alias org.hamcrest:hamcrest org.hamcrest:hamcrest-library
|
|
|
|
%mvn_alias org.hamcrest:hamcrest org.hamcrest:hamcrest-library
|
|
|
|
|
|
|
|
|
|
|
|
sed -i 's/\r//' LICENSE.txt
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
|
|
|
|
pushd hamcrest
|
|
|
|
%mvn_build
|
|
|
|
%mvn_build
|
|
|
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
|
|
|
|
pushd hamcrest
|
|
|
|
%mvn_install
|
|
|
|
%mvn_install
|
|
|
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
|
%files -f .mfiles
|
|
|
|
%files -f hamcrest/.mfiles
|
|
|
|
%doc README.md
|
|
|
|
%doc README.md
|
|
|
|
%license LICENSE.txt
|
|
|
|
%license LICENSE.txt
|
|
|
|
|
|
|
|
|
|
|
|
%files javadoc -f .mfiles-javadoc
|
|
|
|
%files javadoc -f hamcrest/.mfiles-javadoc
|
|
|
|
%license LICENSE.txt
|
|
|
|
%license LICENSE.txt
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Thu Nov 21 2024 Marián Konček <mkoncek@redhat.com> - 2.2-9
|
|
|
|
* Thu Aug 01 2024 Troy Dawson <tdawson@redhat.com> - 2.2-16
|
|
|
|
- Fix patch usage
|
|
|
|
- Bump release for Aug 2024 java mass rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 2.2-15
|
|
|
|
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.2-14
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Jan 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.2-13
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Sep 01 2023 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.2-12
|
|
|
|
|
|
|
|
- Convert License tag to SPDX format
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.2-11
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Feb 23 2023 Marian Koncek <mkoncek@redhat.com> - 2.2-10
|
|
|
|
|
|
|
|
- Add Automatic-Module-Name manifest entry
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.2-9
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Nov 19 2024 Marián Konček <mkoncek@redhat.com> - 2.2-8
|
|
|
|
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.2-8
|
|
|
|
- Rebuild with regenerated Requires on Java
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 2.2-7
|
|
|
|
* Sat Feb 05 2022 Jiri Vanek <jvanek@redhat.com> - 2.2-7
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
- Rebuilt for java-17-openjdk as system jdk
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jun 09 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.2-6
|
|
|
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.2-6
|
|
|
|
- Rebuild to workaround DistroBaker issue
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jun 08 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.2-5
|
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.2-5
|
|
|
|
- Bootstrap Maven for CentOS Stream 9
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jun 01 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.2-4
|
|
|
|
* Tue Jun 01 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.2-4
|
|
|
|
- Obsolete hamcrest-core and -demo
|
|
|
|
- Obsolete hamcrest-core and -demo
|
|
|
|