From b1d31e42ecce157a5a59efeabf1d906571482604 Mon Sep 17 00:00:00 2001 From: Mikolaj Izdebski Date: Fri, 11 Aug 2023 10:33:18 +0200 Subject: [PATCH] Update to upstream version 1.5 --- .gitignore | 1 + ...cubator-disclaimer-resource-bundle-1.1.pom | 16 ---- apache-jar-resource-bundle-1.4.pom | 22 ----- apache-license-header-resource-bundle-1.1.pom | 16 ---- apache-resource-bundles-cleanup-poms.patch | 20 ----- apache-resource-bundles.spec | 80 +++++-------------- sources | 5 +- 7 files changed, 21 insertions(+), 139 deletions(-) delete mode 100644 apache-incubator-disclaimer-resource-bundle-1.1.pom delete mode 100644 apache-jar-resource-bundle-1.4.pom delete mode 100644 apache-license-header-resource-bundle-1.1.pom delete mode 100644 apache-resource-bundles-cleanup-poms.patch diff --git a/.gitignore b/.gitignore index 3462825..b0fbcb0 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ apache-jar-resource-bundle-1.4-sources.jar apache-license-header-resource-bundle-1.1-sources.jar /apache-resource-bundles-36.pom /apache-resource-bundles-37.pom +/apache-resource-bundles-1.5-source-release.zip diff --git a/apache-incubator-disclaimer-resource-bundle-1.1.pom b/apache-incubator-disclaimer-resource-bundle-1.1.pom deleted file mode 100644 index 2495577..0000000 --- a/apache-incubator-disclaimer-resource-bundle-1.1.pom +++ /dev/null @@ -1,16 +0,0 @@ - - - 4.0.0 - - org.apache - apache-resource-bundles - 2 - - apache-incubator-disclaimer-resource-bundle - Apache Incubator Disclaimer Resource Bundle - 1.1 - 2006 - - An archive which contains the standard Apache Incubator disclaimer. - - diff --git a/apache-jar-resource-bundle-1.4.pom b/apache-jar-resource-bundle-1.4.pom deleted file mode 100644 index 0e32dae..0000000 --- a/apache-jar-resource-bundle-1.4.pom +++ /dev/null @@ -1,22 +0,0 @@ - - - 4.0.0 - - org.apache - apache-resource-bundles - 2 - - apache-jar-resource-bundle - Apache JAR Resource Bundle - 1.4 - 2006 - - An archive which contains templates for generating the necessary license files and notices for all Apache releases. - - - - scm:svn:https://svn.apache.org/repos/asf/maven/resources/tags/apache-jar-resource-bundle-1.4 - scm:svn:https://svn.apache.org/repos/asf/maven/resources/tags/apache-jar-resource-bundle-1.4 - https://svn.apache.org/repos/asf/maven/resources/tags/apache-jar-resource-bundle-1.4 - - diff --git a/apache-license-header-resource-bundle-1.1.pom b/apache-license-header-resource-bundle-1.1.pom deleted file mode 100644 index e595bac..0000000 --- a/apache-license-header-resource-bundle-1.1.pom +++ /dev/null @@ -1,16 +0,0 @@ - - - 4.0.0 - - org.apache - apache-resource-bundles - 2 - - apache-license-header-resource-bundle - Apache License Header Resource Bundle - 1.1 - 2006 - - An archive which contains the notice file template. - - diff --git a/apache-resource-bundles-cleanup-poms.patch b/apache-resource-bundles-cleanup-poms.patch deleted file mode 100644 index 2bffc13..0000000 --- a/apache-resource-bundles-cleanup-poms.patch +++ /dev/null @@ -1,20 +0,0 @@ ---- apache-resource-bundles-2/pom.xml.orig 2010-01-19 10:29:54.688919029 +0000 -+++ apache-resource-bundles-2/pom.xml 2010-01-19 10:30:08.671919266 +0000 -@@ -24,17 +24,6 @@ - https://svn.apache.org/repos/asf/maven/resources/tags/apache-resource-bundles-2 - - -- -- -- -- maven-release-plugin -- 2.0-beta-4 -- -- https://svn.apache.org/repos/asf/maven/resources/tags -- -- -- -- - - - diff --git a/apache-resource-bundles.spec b/apache-resource-bundles.spec index 83c0f64..6545d1b 100644 --- a/apache-resource-bundles.spec +++ b/apache-resource-bundles.spec @@ -1,32 +1,27 @@ %bcond_with bootstrap -%global jar_version 1.4 -%global lh_version 1.1 -%global id_version 1.1 - Name: apache-resource-bundles -Version: 37 -Release: 3%{?dist} +Epoch: 1 +Version: 1.5 +Release: 1%{?dist} Summary: Apache Resource Bundles License: ASL 2.0 -URL: https://repo1.maven.org/maven2/org/apache/apache-resource-bundles/ +URL: https://maven.apache.org/apache-resource-bundles/ BuildArch: noarch ExclusiveArch: %{java_arches} noarch -Source0: https://repo1.maven.org/maven2/org/apache/apache/resources/%{name}/%{version}/%{name}-%{version}.pom -Source1: https://repo1.maven.org/maven2/org/apache/apache-jar-resource-bundle/%{jar_version}/apache-jar-resource-bundle-%{jar_version}-sources.jar -Source2: https://repo1.maven.org/maven2/org/apache/apache-jar-resource-bundle/%{jar_version}/apache-jar-resource-bundle-%{jar_version}.pom -Source3: https://repo1.maven.org/maven2/org/apache/apache-license-header-resource-bundle/%{lh_version}/apache-license-header-resource-bundle-%{lh_version}-sources.jar -Source4: https://repo1.maven.org/maven2/org/apache/apache-license-header-resource-bundle/%{lh_version}/apache-license-header-resource-bundle-%{lh_version}.pom -Source5: https://repo1.maven.org/maven2/org/apache/apache-incubator-disclaimer-resource-bundle/%{id_version}/apache-incubator-disclaimer-resource-bundle-%{id_version}-sources.jar -Source6: https://repo1.maven.org/maven2/org/apache/apache-incubator-disclaimer-resource-bundle/%{id_version}/apache-incubator-disclaimer-resource-bundle-%{id_version}.pom +Source0: https://repo1.maven.org/maven2/org/apache/apache/resources/apache-resource-bundles/%{version}/apache-resource-bundles-%{version}-source-release.zip %if %{with bootstrap} BuildRequires: javapackages-bootstrap %else BuildRequires: maven-local -BuildRequires: mvn(org.apache.maven:maven-parent:pom:) +BuildRequires: mvn(junit:junit) BuildRequires: mvn(org.apache.maven.plugins:maven-remote-resources-plugin) +BuildRequires: mvn(org.apache.maven.shared:maven-verifier) +BuildRequires: mvn(org.apache.maven:maven-parent:pom:) +BuildRequires: mvn(org.codehaus.plexus:plexus-archiver) +BuildRequires: mvn(org.codehaus.plexus:plexus-utils) %endif %description @@ -34,61 +29,24 @@ An archive which contains templates for generating the necessary license files and notices for all Apache releases. %prep -%setup -cT -cp -p %{SOURCE0} ./pom.xml -%pom_xpath_inject 'pom:project' ' - - apache-jar-resource-bundle - apache-license-header-resource-bundle - apache-incubator-disclaimer-resource-bundle -' - -%pom_xpath_set 'pom:project/pom:parent/pom:relativePath' '../pom/maven/pom.xml' -%pom_xpath_set 'pom:project/pom:groupId' 'org.apache' - -# jar -mkdir -p apache-jar-resource-bundle -pushd apache-jar-resource-bundle -jar xvf %{SOURCE1} -cp -p %{SOURCE2} ./pom.xml -%pom_xpath_set 'pom:project/pom:parent/pom:version' %{version} -mkdir -p src/main/resources -mv META-INF src/main/resources -popd - -# license-header -mkdir -p apache-license-header-resource-bundle -pushd apache-license-header-resource-bundle -jar xvf %{SOURCE3} -cp -p %{SOURCE4} ./pom.xml -%pom_xpath_set 'pom:project/pom:parent/pom:version' %{version} -mkdir -p src/main/resources -mv META-INF src/main/resources -popd - -# incubator-disclaimer -mkdir -p apache-incubator-disclaimer-resource-bundle -pushd apache-incubator-disclaimer-resource-bundle -jar xvf %{SOURCE5} -cp -p %{SOURCE6} ./pom.xml -%pom_xpath_set 'pom:project/pom:parent/pom:version' %{version} -mkdir -p src/main/resources -mv META-INF src/main/resources -popd - -%mvn_file :apache-jar-resource-bundle apache-resource-bundles/jar -%mvn_file :apache-license-header-resource-bundle apache-resource-bundles/license-header -%mvn_file :apache-incubator-disclaimer-resource-bundle apache-resource-bundles/incubator-disclaimer +%setup -q +%pom_disable_module resources-bundles-sample +%mvn_alias :apache-jar-resource-bundle org.apache: %build -%mvn_build +# Use system version of apache-resource-bundles instead of reactor version +%mvn_build -- -Dversion.apache-resource-bundles=SYSTEM %install %mvn_install %files -f .mfiles +%license LICENSE NOTICE %changelog +* Fri Aug 11 2023 Mikolaj Izdebski - 1:1.5-1 +- Update to upstream version 1.5 + * Wed Jul 19 2023 Fedora Release Engineering - 37-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild diff --git a/sources b/sources index 25da010..f6ab908 100644 --- a/sources +++ b/sources @@ -1,4 +1 @@ -SHA512 (apache-resource-bundles-37.pom) = 0aa325f2e0c0d814678485e53cb26198c226058b9e42dcd74b12d62b2e50a120b415e6c53208d17b72747ae8e07f8720e708f7ae4f8ce769b107b29e9dab6bd4 -SHA512 (apache-jar-resource-bundle-1.4-sources.jar) = 55dae4fb13624f083e049c5e9b1556f325c392f734ba034763091261f19239a13c5e2497fcaba190582d820074be0ee8d1ba91e8509bf5a0c91eb8c509b980b3 -SHA512 (apache-license-header-resource-bundle-1.1-sources.jar) = 055ebd253138231c96388ee51b1b0c4013c20b5a16fb124ceb404ae466535e3303d0d07b8fa6794889d9159755d18e40518d5b07c142cdd6cee74d78aca0befc -SHA512 (apache-incubator-disclaimer-resource-bundle-1.1-sources.jar) = 4095b22b344a2e0e44a04cdb26f89db16e6b11e57fb5584caf7ecef0f9d2bb40fb188832d371c375ab917ea2d72445ac7a7387f6353d3b3c1d93266c71c3d4e9 +SHA512 (apache-resource-bundles-1.5-source-release.zip) = ba10e36f8f20b54676b78a1fb5ff20f570f18daa6fe314e7372824ecda72f4c94c85d5c172b79716cc9b79ef4a65b06dbd5f7e83305e4aac0734fa351f3691f1