Bootstrap Maven as non-modular packages
Resolves: rhbz#1951482
This commit is contained in:
		
							parent
							
								
									e3e631b04d
								
							
						
					
					
						commit
						ac591c6d04
					
				| @ -1,6 +1,12 @@ | ||||
| # Workaround for rhbz#1969370: __bootstrap macro is not defined in | ||||
| # CentOS Stream, See https://bugzilla.redhat.com/1969370 | ||||
| %global __bootstrap ~bootstrap | ||||
| 
 | ||||
| %bcond_without bootstrap | ||||
| 
 | ||||
| Name:           plexus-classworlds | ||||
| Version:        2.6.0 | ||||
| Release:        7%{?dist} | ||||
| Release:        8%{?dist} | ||||
| Summary:        Plexus Classworlds Classloader Framework | ||||
| License:        ASL 2.0 and Plexus | ||||
| URL:            https://github.com/codehaus-plexus/plexus-classworlds | ||||
| @ -8,17 +14,13 @@ BuildArch:      noarch | ||||
| 
 | ||||
| Source0:        https://github.com/codehaus-plexus/%{name}/archive/%{name}-%{version}.tar.gz | ||||
| 
 | ||||
| BuildRequires:  maven-local | ||||
| BuildRequires:  maven-local-openjdk8 | ||||
| %if %{with bootstrap} | ||||
| BuildRequires:  javapackages-bootstrap | ||||
| %else | ||||
| BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin) | ||||
| BuildRequires:  mvn(org.apache.maven.plugins:maven-dependency-plugin) | ||||
| BuildRequires:  mvn(org.apache.maven.plugins:maven-enforcer-plugin) | ||||
| BuildRequires:  mvn(org.codehaus.plexus:plexus:pom:) | ||||
| 
 | ||||
| # test deps missed by builddep | ||||
| BuildRequires:  mvn(org.apache.ant:ant) | ||||
| BuildRequires:  mvn(commons-logging:commons-logging) | ||||
| BuildRequires:  mvn(xml-apis:xml-apis) | ||||
| 
 | ||||
| %endif | ||||
| 
 | ||||
| %description | ||||
| Classworlds is a framework for container developers | ||||
| @ -30,17 +32,20 @@ loading of components or otherwise represent a 'container' | ||||
| can benefit from the classloading control provided by | ||||
| classworlds. | ||||
| 
 | ||||
| %package javadoc | ||||
| Summary:        Javadoc for %{name} | ||||
| 
 | ||||
| %description javadoc | ||||
| API documentation for %{name}. | ||||
| %{?javadoc_package} | ||||
| 
 | ||||
| %prep | ||||
| %setup -q -n %{name}-%{name}-%{version} | ||||
| %mvn_file : %{name} plexus/classworlds | ||||
| %mvn_alias : classworlds:classworlds | ||||
| 
 | ||||
| %pom_remove_plugin :maven-enforcer-plugin | ||||
| %pom_remove_plugin :maven-dependency-plugin | ||||
| 
 | ||||
| # These tests depend on artifacts that are not packaged | ||||
| sed -i /testConfigure_Valid/s/./@org.junit.Ignore/ $(find -name ConfiguratorTest.java) | ||||
| sed -i /testConfigure_Optionally_Existent/s/./@org.junit.Ignore/ $(find -name ConfiguratorTest.java) | ||||
| 
 | ||||
| %build | ||||
| %mvn_build | ||||
| 
 | ||||
| @ -48,14 +53,15 @@ API documentation for %{name}. | ||||
| %mvn_install | ||||
| 
 | ||||
| %files -f .mfiles | ||||
| %doc LICENSE.txt LICENSE-2.0.txt | ||||
| 
 | ||||
| %files javadoc -f .mfiles-javadoc | ||||
| %doc LICENSE.txt LICENSE-2.0.txt | ||||
| %license LICENSE.txt LICENSE-2.0.txt | ||||
| 
 | ||||
| %changelog | ||||
| * Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 2.6.0-7 | ||||
| - Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937 | ||||
| * Tue Jun 08 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.6.0-8 | ||||
| - Bootstrap Maven for CentOS Stream 9 | ||||
| 
 | ||||
| * Mon May 17 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.6.0-7 | ||||
| - Bootstrap build | ||||
| - Non-bootstrap build | ||||
| 
 | ||||
| * Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.0-6 | ||||
| - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild | ||||
| @ -69,9 +75,18 @@ API documentation for %{name}. | ||||
| * Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.0-3 | ||||
| - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild | ||||
| 
 | ||||
| * Sat Jan 25 2020 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.6.0-4 | ||||
| - Build with OpenJDK 8 | ||||
| 
 | ||||
| * Tue Nov 05 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.6.0-3 | ||||
| - Mass rebuild for javapackages-tools 201902 | ||||
| 
 | ||||
| * Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.0-2 | ||||
| - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild | ||||
| 
 | ||||
| * Fri May 24 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.6.0-2 | ||||
| - Mass rebuild for javapackages-tools 201901 | ||||
| 
 | ||||
| * Tue May 14 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.6.0-1 | ||||
| - Update to upstream version 2.6.0 | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user