Accepting request 1208210 from Java:packages

4.0.0

OBS-URL: https://build.opensuse.org/request/show/1208210
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/maven-reporting-api?expand=0&rev=6
This commit is contained in:
Ana Guerrero 2024-10-16 21:46:37 +00:00 committed by Git OBS Bridge
commit 4cbcb5a7a6
6 changed files with 68 additions and 42 deletions

15
_service Normal file
View File

@ -0,0 +1,15 @@
<services>
<service name="tar_scm" mode="disabled">
<param name="scm">git</param>
<param name="url">https://github.com/apache/maven-reporting-api.git</param>
<param name="revision">maven-reporting-api-4.0.0</param>
<param name="match-tag">maven-reporting-api-*</param>
<param name="versionformat">@PARENT_TAG@</param>
<param name="versionrewrite-pattern">maven-reporting-api-(.*)</param>
</service>
<service name="recompress" mode="disabled">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
<service name="set_version" mode="disabled"/>
</services>

Binary file not shown.

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b64f60c29f71f77b451e7e70513d4acfb932c55d5c43f5f576a14b596f272324
size 7376

View File

@ -10,22 +10,23 @@
<property name="project.groupId" value="org.apache.maven.reporting"/>
<property name="project.artifactId" value="maven-reporting-api"/>
<property name="project.name" value="Maven Reporting API"/>
<property name="project.version" value="3.1.1"/>
<property name="project.version" value="4.0.0"/>
<property name="project.organization.name"
value="The Apache Software Foundation"/>
<property name="spec.version" value="4.0"/>
<property name="project.organization.name" value="The Apache Software Foundation"/>
<property name="project.name" value="Apache Maven Reporting API"/>
<property name="compiler.release" value="8"/>
<property name="compiler.source" value="1.${compiler.release}"/>
<property name="compiler.target" value="${compiler.source}"/>
<property name="build.finalName"
value="${project.artifactId}-${project.version}"/>
<property name="build.finalName" value="${project.artifactId}-${project.version}"/>
<property name="build.dir" value="target"/>
<property name="build.outputDir" value="${build.dir}/classes"/>
<property name="build.srcDir" value="src/main/java"/>
<property name="build.resourceDir" value="src/main/resources"/>
<property name="reporting.outputDirectory" value="${build.dir}/site"/>
<!-- ====================================================================== -->
@ -53,7 +54,6 @@
<target name="compile" description="Compile the code">
<mkdir dir="${build.outputDir}"/>
<javac destdir="${build.outputDir}"
encoding="UTF-8"
nowarn="false"
debug="true"
optimize="false"
@ -62,15 +62,13 @@
target="${compiler.target}"
verbose="false"
fork="false"
encoding="utf-8"
source="${compiler.source}">
<src>
<pathelement location="${build.srcDir}"/>
</src>
<classpath refid="build.classpath"/>
</javac>
<copy todir="${build.outputDir}">
<fileset dir="${build.resourceDir}"/>
</copy>
</target>
<!-- ====================================================================== -->
@ -82,8 +80,8 @@
packagenames="*"
destdir="${reporting.outputDirectory}/apidocs"
access="protected"
source="${compiler.source}"
verbose="false"
locale="en"
version="true"
use="true"
author="true"
@ -95,9 +93,10 @@
nohelp="false"
nonavbar="false"
serialwarn="false"
encoding="UTF-8"
encoding="utf-8"
linksource="false"
breakiterator="false">
breakiterator="false"
source="${compiler.source}">
<classpath refid="build.classpath"/>
</javadoc>
</target>
@ -114,19 +113,15 @@
excludes="**/package.html">
<manifest>
<attribute name="Implementation-Title" value="${project.name}"/>
<attribute name="Implementation-URL"
value="http://maven.apache.org/shared/${project.artifactId}/"/>
<attribute name="Implementation-Vendor"
value="${project.organization.name}"/>
<attribute name="Implementation-Vendor" value="${project.organization.name}"/>
<attribute name="Implementation-Vendor-Id" value="${project.groupId}"/>
<attribute name="Implementation-Version" value="${project.version}"/>
<attribute name="JavaPackages-ArtifactId" value="${project.artifactId}"/>
<attribute name="JavaPackages-GroupId" value="${project.groupId}"/>
<attribute name="JavaPackages-Version" value="${project.version}"/>
<attribute name="Specification-Title" value="${project.name}"/>
<attribute name="Specification-Vendor"
value="${project.organization.name}"/>
<attribute name="Specification-Version" value="${project.version}"/>
<attribute name="Specification-Vendor" value="${project.organization.name}"/>
<attribute name="Specification-Version" value="${spec.version}"/>
</manifest>
</jar>
</target>

View File

@ -1,3 +1,19 @@
-------------------------------------------------------------------
Thu Oct 3 22:04:11 UTC 2024 - Fridrich Strba <fstrba@suse.com>
- Upgrade to upstream version 4.0.0
* Improvement
+ MSHARED-193: API change: let MavenReportRenderer#render()
throw an exception
+ MSHARED-1032: API change: let MavenReport#canGenerateReport()
throw an exception
* Task
+ MSHARED-1159: Require locale to be not null
+ MSHARED-1231: Remove unused default-report.xml file
+ MSHARED-1326: Improve MavenReport interface and
AbstractMavenReport class API
- Fetch sources by source service from Github
-------------------------------------------------------------------
Sun Sep 24 01:57:03 UTC 2023 - Fridrich Strba <fstrba@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package maven-reporting-api
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -17,22 +17,19 @@
Name: maven-reporting-api
Version: 3.1.1
Version: 4.0.0
Release: 0
Summary: API to manage report generation
License: Apache-2.0
Group: Development/Libraries/Java
URL: https://maven.apache.org/shared/maven-reporting-api
Source0: https://archive.apache.org/dist/maven/reporting/%{name}-%{version}-source-release.zip
Source0: %{name}-%{version}.tar.xz
Source1: http://www.apache.org/licenses/LICENSE-2.0.txt
Source2: %{name}-build.xml
BuildRequires: ant
BuildRequires: fdupes
BuildRequires: javapackages-local
BuildRequires: maven-doxia-sink-api
BuildRequires: unzip
BuildRequires: xmvn-install
BuildRequires: xmvn-resolve
BuildRequires: javapackages-local >= 6
BuildRequires: maven-doxia-sink-api >= 2.0
BuildArch: noarch
%description
@ -54,27 +51,30 @@ API documentation for %{name}.
cp %{SOURCE1} LICENSE.txt
cp %{SOURCE2} build.xml
%pom_remove_parent
# Previous package provides groupIds org.apache.maven.shared and org.apache.maven.reporting
%{mvn_alias} : org.apache.maven.shared:maven-reporting-api
%build
mkdir -p lib
build-jar-repository -s lib \
maven-doxia/doxia-sink-api
%{ant} jar javadoc
%{mvn_artifact} pom.xml target/%{name}-%{version}.jar
ant jar javadoc
%install
%mvn_install
# jar
install -dm 0755 %{buildroot}%{_javadir}/%{name}
install -pm 0644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}/%{name}.jar
# pom
install -dm 0755 %{buildroot}%{_mavenpomdir}/%{name}
%{mvn_install_pom} pom.xml %{buildroot}%{_mavenpomdir}/%{name}/%{name}.pom
%add_maven_depmap %{name}/%{name}.pom %{name}/%{name}.jar -a org.apache.maven.shared:maven-reporting-api
# javadoc
install -dm 0755 %{buildroot}%{_javadocdir}/%{name}
cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}/
%fdupes -s %{buildroot}%{_javadocdir}
%files -f .mfiles
%license LICENSE.txt
%files javadoc -f .mfiles-javadoc
%files javadoc
%{_javadocdir}/%{name}
%license LICENSE.txt
%changelog