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