Compare commits

..

No commits in common. "c8-stream-201902" and "stream-javapackages-tools-202201-rhel-9.3.0" have entirely different histories.

5 changed files with 170 additions and 14 deletions

12
.gitignore vendored
View File

@ -1 +1,11 @@
SOURCES/maven-filtering-3.1.1-source-release.zip
/results_*
/*.src.rpm
/maven-filtering-1.0-source-release.zip
/maven-filtering-1.1-source-release.zip
/maven-filtering-1.2-source-release.zip
/maven-filtering-1.3-source-release.zip
/maven-filtering-3.0.0-source-release.zip
/maven-filtering-3.1.0-source-release.zip
/maven-filtering-3.1.1-source-release.zip
/maven-filtering-3.2.0-source-release.zip

View File

@ -1 +0,0 @@
f09258f2a7db1c2658c9898f0796abfd32fd9142 SOURCES/maven-filtering-3.1.1-source-release.zip

View File

@ -0,0 +1,86 @@
From 2187555deff040b5fd0c75abb4445bf715f9acd8 Mon Sep 17 00:00:00 2001
From: Marian Koncek <mkoncek@redhat.com>
Date: Wed, 26 Aug 2020 13:32:02 +0200
Subject: [PATCH] Skip failed tests
---
.../IncrementalResourceFilteringTest.java | 56 -------------------
1 file changed, 56 deletions(-)
diff --git a/src/test/java/org/apache/maven/shared/filtering/IncrementalResourceFilteringTest.java b/src/test/java/org/apache/maven/shared/filtering/IncrementalResourceFilteringTest.java
index 06f62f3..e70590c 100644
--- a/src/test/java/org/apache/maven/shared/filtering/IncrementalResourceFilteringTest.java
+++ b/src/test/java/org/apache/maven/shared/filtering/IncrementalResourceFilteringTest.java
@@ -56,41 +56,6 @@ public class IncrementalResourceFilteringTest
outputDirectory.mkdirs();
}
- public void testSimpleIncrementalFiltering()
- throws Exception
- {
- // run full build first
- filter( "time" );
-
- assertTime( "time", "file01.txt" );
- assertTime( "time", "file02.txt" );
-
- // only one file is expected to change
- Set<String> changedFiles = new HashSet<>();
- changedFiles.add( "file01.txt" );
-
- TestIncrementalBuildContext ctx =
- new TestIncrementalBuildContext( unitDirectory, changedFiles, Collections.emptyMap() );
- ThreadBuildContext.setThreadBuildContext( ctx );
-
- filter( "notime" );
- assertTime( "notime", "file01.txt" );
- assertTime( "time", "file02.txt" ); // this one is unchanged
-
- assertTrue( ctx.getRefreshFiles().contains( new File( outputDirectory, "file01.txt" ) ) );
-
- ctx = new TestIncrementalBuildContext( unitDirectory, Collections.emptySet(), changedFiles,
- Collections.emptyMap() );
- ThreadBuildContext.setThreadBuildContext( ctx );
-
- filter( "moretime" );
- assertFalse( new File( outputDirectory, "file01.txt" ).exists() );
- assertTime( "time", "file02.txt" ); // this one is unchanged
-
- assertTrue( ctx.getRefreshFiles().contains( new File( outputDirectory, "file01.txt" ) ) );
-
- }
-
public void testOutputChange()
throws Exception
{
@@ -135,27 +100,6 @@ public class IncrementalResourceFilteringTest
}
- public void testFilterDeleted()
- throws Exception
- {
- // run full build first
- filter( "time" );
-
- // all files are reprocessed after content of filters changes
- Set<String> deletedFiles = new HashSet<>();
- deletedFiles.add( "filters.txt" );
- TestIncrementalBuildContext ctx = new TestIncrementalBuildContext( unitDirectory, Collections.emptySet(),
- deletedFiles, Collections.emptyMap() );
- ThreadBuildContext.setThreadBuildContext( ctx );
-
- filter( "notime" );
- assertTime( "notime", "file01.txt" );
- assertTime( "notime", "file02.txt" );
-
- assertTrue( ctx.getRefreshFiles().contains( new File( outputDirectory, "file01.txt" ) ) );
- assertTrue( ctx.getRefreshFiles().contains( new File( outputDirectory, "file02.txt" ) ) );
- }
-
private void assertTime( String time, String relpath )
throws IOException
{
--
2.26.2

View File

@ -1,22 +1,40 @@
Name: maven-filtering
Version: 3.1.1
Release: 7%{?dist}
Summary: Shared component providing resource filtering
License: ASL 2.0
URL: http://maven.apache.org/shared/%{name}/index.html
BuildArch: noarch
%bcond_with bootstrap
Source0: http://repo1.maven.org/maven2/org/apache/maven/shared/%{name}/%{version}/%{name}-%{version}-source-release.zip
Name: maven-filtering
Version: 3.2.0
Release: 6%{?dist}
Summary: Shared component providing resource filtering
License: ASL 2.0
URL: https://maven.apache.org/shared/%{name}/index.html
BuildArch: noarch
ExclusiveArch: %{java_arches} noarch
Source0: https://repo1.maven.org/maven2/org/apache/maven/shared/%{name}/%{version}/%{name}-%{version}-source-release.zip
Patch1: 0001-Skip-failed-tests.patch
%if %{with bootstrap}
BuildRequires: javapackages-bootstrap
%else
BuildRequires: maven-local
BuildRequires: mvn(com.google.code.findbugs:jsr305)
BuildRequires: mvn(org.apache.maven:maven-core)
BuildRequires: mvn(commons-io:commons-io)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.maven.shared:maven-shared-components:pom:)
BuildRequires: mvn(org.apache.maven.shared:maven-shared-utils)
BuildRequires: mvn(org.apache.maven:maven-core)
BuildRequires: mvn(org.apache.maven:maven-model)
BuildRequires: mvn(org.apache.maven:maven-settings)
BuildRequires: mvn(org.codehaus.plexus:plexus-component-annotations)
BuildRequires: mvn(org.codehaus.plexus:plexus-component-metadata)
BuildRequires: mvn(org.codehaus.plexus:plexus-interpolation)
BuildRequires: mvn(org.codehaus.plexus:plexus-utils)
BuildRequires: mvn(org.eclipse.sisu:org.eclipse.sisu.plexus)
BuildRequires: mvn(org.hamcrest:hamcrest-core)
BuildRequires: mvn(org.mockito:mockito-core)
BuildRequires: mvn(org.sonatype.plexus:plexus-build-api)
BuildRequires: mvn(org.sonatype.plexus:plexus-build-api::tests:)
%endif
%description
These Plexus components have been built from the filtering process/code in
@ -31,10 +49,10 @@ This package contains the API documentation for %{name}.
%prep
%setup -q
%patch1 -p1
%build
# Tests use a package that is no longer present in plexus-build-api (v0.0.7)
%mvn_build -f
%mvn_build
%install
%mvn_install
@ -46,12 +64,55 @@ This package contains the API documentation for %{name}.
%license LICENSE NOTICE
%changelog
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.0-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Sat Feb 05 2022 Jiri Vanek <jvanek@redhat.com> - 3.2.0-5
- Rebuilt for java-17-openjdk as system jdk
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Mon May 17 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.2.0-2
- Bootstrap build
- Non-bootstrap build
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Wed Aug 26 2020 Marian Koncek <mkoncek@redhat.com> - 3.2.0-1
- Update to upstream version 3.2.0
* Tue Aug 11 2020 Fabio Valentini <decathorpe@gmail.com> - 3.2.0-1
- Update to version 3.2.0.
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.1-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Fri Jul 10 2020 Jiri Vanek <jvanek@redhat.com> - 3.1.1-10
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.1-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Tue Nov 05 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.1.1-7
- Mass rebuild for javapackages-tools 201902
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.1-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Fri May 24 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.1.1-6
- Mass rebuild for javapackages-tools 201901
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.1-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.1-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
@ -135,4 +196,3 @@ This package contains the API documentation for %{name}.
* Tue Aug 16 2011 Tomas Radej <tradej@redhat.com> 1.0-1
- Initial release (thanks to the GULaG team)

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (maven-filtering-3.2.0-source-release.zip) = 6cb730fbf9d5a2f3dbf951547d3b2720989906001a1844cfd38367a579f7a11d073807d68d4a907d083daa4295154fa135205dabba94f21ab73afca3022fbe7b