0ffb3f
%global upstream_version %(echo %{version} | tr '~' '-')
0ffb3f
0ffb3f
Name:           hamcrest
0ffb3f
Version:        2.2
0ffb3f
Release:        2%{?dist}
0ffb3f
Summary:        Library of matchers for building test expressions
0ffb3f
License:        BSD
0ffb3f
URL:            https://github.com/hamcrest/JavaHamcrest
0ffb3f
BuildArch:      noarch
0ffb3f
0ffb3f
Source0:        https://github.com/hamcrest/JavaHamcrest/archive/v%{upstream_version}.tar.gz#/%{name}-%{version}.tar.gz
0ffb3f
Source1:        https://repo1.maven.org/maven2/org/hamcrest/hamcrest/%{upstream_version}/hamcrest-%{upstream_version}.pom
0ffb3f
0ffb3f
Patch0:         0001-Fix-build-with-OpenJDK-11.patch
0ffb3f
0ffb3f
BuildRequires:  maven-local
0ffb3f
BuildRequires:  mvn(junit:junit)
0ffb3f
0ffb3f
%description
0ffb3f
Provides a library of matcher objects (also known as constraints or predicates)
0ffb3f
allowing 'match' rules to be defined declaratively, to be used in other
0ffb3f
frameworks. Typical scenarios include testing frameworks, mocking libraries and
0ffb3f
UI validation rules.
0ffb3f
0ffb3f
%package javadoc
0ffb3f
Summary:        Javadoc for %{name}
0ffb3f
0ffb3f
%description javadoc
0ffb3f
Javadoc for %{name}.
0ffb3f
0ffb3f
%prep
0ffb3f
%setup -q -n JavaHamcrest-%{upstream_version}
0ffb3f
%patch0 -p1
0ffb3f
0ffb3f
rm -rf docs
0ffb3f
rm -rf *gradle*
0ffb3f
rm -rf */*.gradle
0ffb3f
0ffb3f
mv hamcrest/src .
0ffb3f
rm -rf hamcrest
0ffb3f
rm -rf hamcrest-core
0ffb3f
rm -rf hamcrest-integration
0ffb3f
rm -rf hamcrest-library
0ffb3f
0ffb3f
cp -p %{SOURCE1} pom.xml
0ffb3f
%pom_add_dep junit:junit
0ffb3f
%pom_xpath_inject pom:project '
0ffb3f
<build>
0ffb3f
	<plugins>
0ffb3f
		<plugin>
0ffb3f
		<groupId>org.apache.maven.plugins</groupId>
0ffb3f
		<artifactId>maven-compiler-plugin</artifactId>
0ffb3f
		<version>3.8.1</version>
0ffb3f
		<configuration>
0ffb3f
			<source>1.8</source>
0ffb3f
			<target>1.8</target>
0ffb3f
		</configuration>
0ffb3f
		</plugin>
0ffb3f
	</plugins>
0ffb3f
</build>'
0ffb3f
0ffb3f
%mvn_alias org.hamcrest:hamcrest org.hamcrest:hamcrest-all
0ffb3f
%mvn_alias org.hamcrest:hamcrest org.hamcrest:hamcrest-core
0ffb3f
%mvn_alias org.hamcrest:hamcrest org.hamcrest:hamcrest-library
0ffb3f
0ffb3f
sed -i 's/\r//' LICENSE.txt
0ffb3f
0ffb3f
%build
0ffb3f
%mvn_build
0ffb3f
0ffb3f
%install
0ffb3f
%mvn_install
0ffb3f
0ffb3f
%files -f .mfiles
0ffb3f
%doc README.md
0ffb3f
%license LICENSE.txt
0ffb3f
0ffb3f
%files javadoc -f .mfiles-javadoc
0ffb3f
%license LICENSE.txt
0ffb3f
0ffb3f
%changelog
0ffb3f
* Tue Nov 05 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.2-2
0ffb3f
- Mass rebuild for javapackages-tools 201902
0ffb3f
0ffb3f
* Thu Oct 17 2019 Marian Koncek <mkoncek@redhat.com> - 2.2-1
0ffb3f
- Update to upstream version 2.2
0ffb3f
0ffb3f
* Wed Sep 18 2019 Marian Koncek <mkoncek@redhat.com> - 2.2~rc1-1
0ffb3f
- Update to upstream version 2.2~rc1
0ffb3f
0ffb3f
* Mon Aug 19 2019 Marian Koncek <mkoncek@redhat.com> - 2.1-1
0ffb3f
- Update to upstream version 2.1
0ffb3f
0ffb3f
* Fri May 24 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.3-24
0ffb3f
- Mass rebuild for javapackages-tools 201901
0ffb3f
0ffb3f
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0:1.3-23
0ffb3f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
0ffb3f
0ffb3f
* Mon Sep 25 2017 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.3-22
0ffb3f
- Elimitate race condition when injecting JAR manifest
0ffb3f
- Resolves: rhbz#1495234
0ffb3f
- Remove bogus hamcrest-text JAR
0ffb3f
0ffb3f
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0:1.3-21
0ffb3f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
0ffb3f
0ffb3f
* Wed Mar 22 2017 Michael Simacek <msimacek@redhat.com> - 0:1.3-20
0ffb3f
- Fix mistake in mvn_artifact invocation
0ffb3f
0ffb3f
* Tue Mar 21 2017 Michael Simacek <msimacek@redhat.com> - 0:1.3-19
0ffb3f
- Install with XMvn
0ffb3f
- Update upstream URL
0ffb3f
- Build from github source
0ffb3f
- Specfile cleanup
0ffb3f
0ffb3f
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0:1.3-18
0ffb3f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
0ffb3f
0ffb3f
* Wed Feb 01 2017 Michael Simacek <msimacek@redhat.com> - 0:1.3-17
0ffb3f
- Port to current QDox
0ffb3f
0ffb3f
* Mon Jan 02 2017 Michael Simacek <msimacek@redhat.com> - 0:1.3-16
0ffb3f
- Try to fix nondeterministic failures by forking javac
0ffb3f
0ffb3f
* Mon Oct  3 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.3-15
0ffb3f
- Remove build-requires on perl
0ffb3f
0ffb3f
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0:1.3-14
0ffb3f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
0ffb3f
0ffb3f
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.3-13
0ffb3f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
0ffb3f
0ffb3f
* Thu May 14 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.3-12
0ffb3f
- Disable javadoc doclint
0ffb3f
0ffb3f
* Tue Feb 24 2015 Alexander Kurtakov <akurtako@redhat.com> 0:1.3-11
0ffb3f
- Add obsoletes in core to the main package to ease updates.
0ffb3f
0ffb3f
* Mon Feb 23 2015 Alexander Kurtakov <akurtako@redhat.com> 0:1.3-10
0ffb3f
- Split hamcrest-core subpackage to allow other frameworks to reduce deps.
0ffb3f
0ffb3f
* Wed Feb  4 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.3-9
0ffb3f
- Port to QDox 2.0
0ffb3f
- Resolves: rhbz#1166700
0ffb3f
0ffb3f
* Wed Jul 30 2014 Mat Booth <mat.booth@redhat.com> - 0:1.3-8
0ffb3f
- Fix FTBFS
0ffb3f
- Always build integration jar (removes some complexity from the spec)
0ffb3f
- Drop unused patch
0ffb3f
0ffb3f
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.3-7
0ffb3f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
0ffb3f
0ffb3f
* Tue Mar 04 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0:1.3-6
0ffb3f
- Use Requires: java-headless rebuild (#1067528)
0ffb3f
0ffb3f
* Mon Aug 12 2013 Alexander Kurtakov <akurtako@redhat.com> 0:1.3-5
0ffb3f
- Update osgi manifests.
0ffb3f
0ffb3f
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.3-4
0ffb3f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
0ffb3f
0ffb3f
* Wed Jul 24 2013 Alexander Kurtakov <akurtako@redhat.com> 0:1.3-3
0ffb3f
- Build against easymock3.
0ffb3f
0ffb3f
* Wed Jul 03 2013 Michal Srb <msrb@redhat.com> - 0:1.3-2
0ffb3f
- Add easymock2 to classpath (Resolves: #979501)
0ffb3f
0ffb3f
* Thu Mar 21 2013 Tomas Radej <tradej@redhat.com> - 0:1.3-1
0ffb3f
- Updated to latest upstream version
0ffb3f
0ffb3f
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.1-22
0ffb3f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
0ffb3f
0ffb3f
* Mon Nov 26 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0:1.1-21
0ffb3f
- Fix core manifest typo ";" -> ","
0ffb3f
0ffb3f
* Tue Aug 14 2012 Severin Gehwolf <sgehwolf@redhat.com> 0:1.1-20
0ffb3f
- Remove attributes in Export-Package header of hamcrest-core
0ffb3f
  manifest.
0ffb3f
0ffb3f
* Wed Aug 1 2012 Alexander Kurtakov <akurtako@redhat.com> 0:1.1-19
0ffb3f
- Add OSGi metadata to hamcrest-generator.
0ffb3f
0ffb3f
* Tue Jul 31 2012 Alexander Kurtakov <akurtako@redhat.com> 0:1.1-18
0ffb3f
- Actually build integration.
0ffb3f
0ffb3f
* Tue Jul 31 2012 Alexander Kurtakov <akurtako@redhat.com> 0:1.1-17
0ffb3f
- Add OSGi metadata to hamcrest-integration.
0ffb3f
0ffb3f
* Tue Jul 31 2012 Alexander Kurtakov <akurtako@redhat.com> 0:1.1-16
0ffb3f
- Remove checksums from manifest.
0ffb3f
0ffb3f
* Tue Jul 31 2012 Alexander Kurtakov <akurtako@redhat.com> 0:1.1-15
0ffb3f
- Add OSGi metadata to hamcrest-text.
0ffb3f
0ffb3f
* Tue Jul 31 2012 Alexander Kurtakov <akurtako@redhat.com> 0:1.1-14
0ffb3f
- Add OSGi metadata for hamcrest-library.
0ffb3f
0ffb3f
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.1-13
0ffb3f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
0ffb3f
0ffb3f
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.1-12
0ffb3f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
0ffb3f
0ffb3f
* Thu Aug 25 2011 Alexander Kurtakov <akurtako@redhat.com> 0:1.1-11
0ffb3f
- Do not BR/R openjdk6 but java >= 1:1.6.0
0ffb3f
- Adapt to current guidelines.
0ffb3f
0ffb3f
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.1-10.4
0ffb3f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
0ffb3f
0ffb3f
* Sun Dec 12 2010 Mat Booth <fedora@matbooth.co.uk> 0:1.1-9.4
0ffb3f
- Fix FTBFS due to zip BR - RHBZ #661011.
0ffb3f
0ffb3f
* Thu Oct 7 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.1-9.3
0ffb3f
- Drop gcj support.
0ffb3f
0ffb3f
* Tue Aug 18 2009 Alexander Kurtakov <akurtako@redhat.com> 0:1.1-9.2
0ffb3f
- Add OSGi manifest for hamcrest-core.
0ffb3f
- Make javadoc package noarch.
0ffb3f
0ffb3f
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.1-9.1
0ffb3f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
0ffb3f
0ffb3f
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.1-8.1
0ffb3f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
0ffb3f
0ffb3f
* Mon Nov 24 2008 David Walluck <dwalluck@redhat.com> 0:1.1-7.1
0ffb3f
- Fedora-specific: enable GCJ support
0ffb3f
- Fedora-specific: build with java 1.6.0
0ffb3f
- Fedora-specific: disable integration and tests
0ffb3f
0ffb3f
* Mon Nov 24 2008 David Walluck <dwalluck@redhat.com> 0:1.1-7
0ffb3f
- update summary and description
0ffb3f
0ffb3f
* Tue Oct 28 2008 David Walluck <dwalluck@redhat.com> 0:1.1-6
0ffb3f
- make demo dependency on testng conditional
0ffb3f
0ffb3f
* Fri Oct 24 2008 David Walluck <dwalluck@redhat.com> 0:1.1-5
0ffb3f
- fix GCJ file list
0ffb3f
- simplify build by always setting OPT_JAR_LIST
0ffb3f
0ffb3f
* Fri Oct 24 2008 David Walluck <dwalluck@redhat.com> 0:1.1-4
0ffb3f
- add epoch to demo Requires
0ffb3f
0ffb3f
* Fri Oct 24 2008 David Walluck <dwalluck@redhat.com> 0:1.1-3
0ffb3f
- set -Dant.build.javac.source=1.5
0ffb3f
0ffb3f
* Fri Oct 24 2008 David Walluck <dwalluck@redhat.com> 0:1.1-2
0ffb3f
- add options to build without integration, jarjar, and tests
0ffb3f
- allow build with java-devel >= 1.5.0
0ffb3f
- remove javadoc scriptlets
0ffb3f
- use more strict file list
0ffb3f
- fix maven directory ownership
0ffb3f
- add non-versioned symlink for demo
0ffb3f
- fix GCJ requires
0ffb3f
- fix eol in LICENSE.txt
0ffb3f
- remove Vendor and Distribution
0ffb3f
0ffb3f
* Tue Feb 19 2008 Ralph Apel <r.apel@r-apel.de> - 0:1.1-1jpp
0ffb3f
- 1.1
0ffb3f
0ffb3f
* Mon Feb 11 2008 Ralph Apel <r.apel@r-apel.de> - 0:4.3.1-4jpp
0ffb3f
- Fix versioned jar name, was junit-4.3.1
0ffb3f
- Restore Epoch
0ffb3f
0ffb3f
* Fri Jan 25 2008 Ralph Apel <r.apel@r-apel.de> - 0:4.3.1-3jpp
0ffb3f
- build and upload noarch packages
0ffb3f
- Add pom and depmap frag
0ffb3f
- BR java-devel = 1.5.0
0ffb3f
- Restore Vendor, Distribution from macros
0ffb3f
0ffb3f
* Tue Aug 07 2007 Ben Konrath <bkonrath@redhat.com> - 4.3.1-2jpp
0ffb3f
- Set gcj_support to 0 to work around problems with GCJ.
0ffb3f
- Fix buglet with the gcj post/postun if statement.
0ffb3f
- Fix tab / space problems.
0ffb3f
- Fix buildroot.
0ffb3f
- Update Summary.
0ffb3f
- Convert html files to Unix file endings.
0ffb3f
- Disable aot-compile-rpm because it's not working ATM.
0ffb3f
0ffb3f
* Mon Jul 09 2007 Ben Konrath <bkonrath@redhat.com> - 4.3.1-1jpp
0ffb3f
- 4.3.1.
0ffb3f
0ffb3f
* Mon Feb 12 2007 Thomas Fitzsimmons <fitzsim@redhat.com> - 3.8.2-3jpp.1.fc7
0ffb3f
- Add dist tag
0ffb3f
0ffb3f
* Mon Feb 12 2007 Thomas Fitzsimmons <fitzsim@redhat.com> - 3.8.2-3jpp.1
0ffb3f
- Committed on behalf of Tania Bento <tbento@redhat.com>
0ffb3f
- Update per Fedora review process
0ffb3f
- Resolves rhbz#225954
0ffb3f
0ffb3f
* Thu Aug 10 2006 Deepak Bhole <dbhole@redhat.com> -  0:3.8.2-3jpp.1
0ffb3f
- Added missing requirements.
0ffb3f
0ffb3f
* Thu Aug 10 2006 Karsten Hopp <karsten@redhat.de> 0:3.8.2-2jpp_3fc
0ffb3f
- Require(post/postun): coreutils
0ffb3f
0ffb3f
* Fri Jun 23 2006 Deepak Bhole <dbhole@redhat.com> -  0:3.8.2-2jpp_2fc
0ffb3f
- Rebuilt.
0ffb3f
0ffb3f
* Thu Jun 22 2006 Deepak Bhole <dbhole@redhat.com> -  0:3.8.2-2jpp_1fc
0ffb3f
- Upgrade to 3.8.2
0ffb3f
- Added conditional native compilation.
0ffb3f
- Fix path where demo is located.
0ffb3f
0ffb3f
* Fri Mar 03 2006 Ralph Apel <r.apel at r-apel.de> - 0:3.8.2-1jpp
0ffb3f
- First JPP-1.7 release
0ffb3f
0ffb3f
* Mon Aug 23 2004 Randy Watler <rwatler at finali.com> - 0:3.8.1-4jpp
0ffb3f
- Rebuild with ant-1.6.2
0ffb3f
* Fri May 09 2003 David Walluck <david@anti-microsoft.org> 0:3.8.1-3jpp
0ffb3f
- update for JPackage 1.5
0ffb3f
0ffb3f
* Fri Mar 21 2003 Nicolas Mailhot <Nicolas.Mailhot (at) JPackage.org> 3.8.1-2jpp
0ffb3f
- For jpackage-utils 1.5
0ffb3f
0ffb3f
* Fri Sep 06 2002 Henri Gomez <hgomez@users.sourceforge.net> 3.8.1-1jpp
0ffb3f
- 3.8.1
0ffb3f
0ffb3f
* Sun Sep 01 2002 Guillaume Rousse <guillomovitch@users.sourceforge.net> 3.8-2jpp
0ffb3f
- used original zip file
0ffb3f
0ffb3f
* Thu Aug 29 2002 Guillaume Rousse <guillomovitch@users.sourceforge.net> 3.8-1jpp
0ffb3f
- 3.8
0ffb3f
- group, vendor and distribution tags
0ffb3f
0ffb3f
* Sat Jan 19 2002 Guillaume Rousse <guillomovitch@users.sourceforge.net> 3.7-6jpp
0ffb3f
- versioned dir for javadoc
0ffb3f
- no dependencies for manual and javadoc packages
0ffb3f
- stricter dependency for demo package
0ffb3f
- additional sources in individual archives
0ffb3f
- section macro
0ffb3f
0ffb3f
* Sat Dec 1 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 3.7-5jpp
0ffb3f
- javadoc in javadoc package
0ffb3f
0ffb3f
* Wed Nov 21 2001 Christian Zoffoli <czoffoli@littlepenguin.org> 3.7-4jpp
0ffb3f
- fixed previous releases ...grrr
0ffb3f
0ffb3f
* Wed Nov 21 2001 Christian Zoffoli <czoffoli@littlepenguin.org> 3.7-3jpp
0ffb3f
- added jpp extension
0ffb3f
- removed packager tag
0ffb3f
0ffb3f
* Sun Sep 30 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 3.7-2jpp
0ffb3f
- first unified release
0ffb3f
- s/jPackage/JPackage
0ffb3f
0ffb3f
* Mon Sep 17 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 3.7-1mdk
0ffb3f
- 3.7
0ffb3f
- vendor tag
0ffb3f
- packager tag
0ffb3f
- s/Copyright/License/
0ffb3f
- truncated description to 72 columns in spec
0ffb3f
- spec cleanup
0ffb3f
- used versioned jar
0ffb3f
- moved demo files to %%{_datadir}/%%{name}
0ffb3f
0ffb3f
* Sat Feb 17 2001 Guillaume Rousse <g.rousse@linux-mandrake.com> 3.5-1mdk
0ffb3f
- first Mandrake release