Sync from SUSE:SLFO:Main maven-archiver revision 18137c2a9a2001519f2d4a6fd38c5185

This commit is contained in:
Adrian Schröter 2024-05-03 16:34:56 +02:00
commit a22ad99355
5 changed files with 338 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

BIN
maven-archiver-3.6.1-source-release.zip (Stored with Git LFS) Normal file

Binary file not shown.

131
maven-archiver-build.xml Normal file
View File

@ -0,0 +1,131 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="maven-archiver" default="package" basedir=".">
<!-- ====================================================================== -->
<!-- Build environment properties -->
<!-- ====================================================================== -->
<property file="build.properties"/>
<property name="project.groupId" value="org.apache.maven"/>
<property name="project.artifactId" value="maven-archiver"/>
<property name="project.version" value="3.6.1"/>
<property name="project.name" value="Apache Maven Archiver"/>
<property name="project.organization.name" value="The Apache Software Foundation"/>
<property name="spec.version" value="3.6"/>
<property name="compiler.source" value="1.8"/>
<property name="compiler.target" value="${compiler.source}"/>
<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"/>
<!-- ====================================================================== -->
<!-- Defining classpaths -->
<!-- ====================================================================== -->
<path id="build.classpath">
<fileset dir="lib">
<include name="**/*.jar"/>
</fileset>
</path>
<!-- ====================================================================== -->
<!-- Cleaning up target -->
<!-- ====================================================================== -->
<target name="clean" description="Clean the output directory">
<delete dir="${build.dir}"/>
</target>
<!-- ====================================================================== -->
<!-- Compilation target -->
<!-- ====================================================================== -->
<target name="compile" description="Compile the code">
<mkdir dir="${build.outputDir}"/>
<javac destdir="${build.outputDir}"
nowarn="false"
debug="true"
optimize="false"
deprecation="true"
target="${compiler.target}"
verbose="false"
fork="false"
source="${compiler.source}">
<src>
<pathelement location="${build.srcDir}"/>
</src>
<classpath refid="build.classpath"/>
</javac>
</target>
<!-- ====================================================================== -->
<!-- Javadoc target -->
<!-- ====================================================================== -->
<target name="javadoc" description="Generates the Javadoc of the application">
<javadoc sourcepath="${build.srcDir}"
packagenames="*"
destdir="${reporting.outputDirectory}/apidocs"
access="protected"
source="${compiler.source}"
verbose="false"
version="true"
use="true"
author="true"
splitindex="false"
nodeprecated="false"
nodeprecatedlist="false"
notree="false"
noindex="false"
nohelp="false"
nonavbar="false"
serialwarn="false"
encoding="UTF-8"
linksource="false"
breakiterator="false">
<classpath refid="build.classpath"/>
</javadoc>
</target>
<!-- ====================================================================== -->
<!-- Package target -->
<!-- ====================================================================== -->
<target name="package" depends="compile" description="Package the application">
<jar jarfile="${build.dir}/${build.finalName}.jar"
compress="true"
index="false"
basedir="${build.outputDir}"
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-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="${spec.version}"/>
</manifest>
</jar>
</target>
<!-- ====================================================================== -->
<!-- A dummy target for the package named after the type it creates -->
<!-- ====================================================================== -->
<target name="jar" depends="package" description="Builds the jar for the application"/>
</project>

88
maven-archiver.changes Normal file
View File

@ -0,0 +1,88 @@
-------------------------------------------------------------------
Wed Sep 6 14:03:52 UTC 2023 - Fridrich Strba <fstrba@suse.com>
- Upgrade to maven-archiver 3.6.1
- Changes of 3.6.1
* New Feature
+ MSHARED-1251: Deprecate the JAR Index feature (JDK-8302819)
* Task
+ MSHARED-1293: Refresh download page
+ MSHARED-1297: Prefer JDK features over plexus-utils, plexus-io
- Changes of 3.6.0
* Task
+ MSHARED-991: Require Java 8
+ MSHARED-1081: Drop m-shared-utils from deps
- Changes of 3.5.2
* Bug
+ MSHARED-849: archiver sorts META-INF/MANIFEST.MF before
META-INF/ in ZIP header
- Changes of 3.5.1
* Improvement
+ MSHARED-879: make build Reproducible
- Removed patch:
* 0001-Port-tests-to-Eclipse-Aether.patch
+ not needed with this version
-------------------------------------------------------------------
Sun Mar 20 19:54:42 UTC 2022 - Fridrich Strba <fstrba@suse.com>
- Build with java source and target levels 8
-------------------------------------------------------------------
Sun Nov 24 14:39:30 UTC 2019 - Fridrich Strba <fstrba@suse.com>
- Upgrade to version 3.5.0
- Changes of 3.5.0
* New Feature
+ MSHARED-837: add an API to configure Reproducible Builds
with outputTimestamp
* Improvement
* MSHARED-833: make pom.properties entries order reproducible
* MSHARED-834: add an API to override Created-By manifest entry
value
* MSHARED-835: add an API to not define Build-Jdk-Spec default
manifest entry
- Changes of 3.4.0
* Bug
+ MSHARED-588: User supplied Class-Path entry does not go first
+ MSHARED-782: Deprecated option classpathMavenRepositoryLayout
not marked as deprecated in the documentation
+ MSHARED-783: Archiver documentation issue tracker 404
* New Feature
+ MSHARED-787: Add optional buildEnvironment information to the
manifest
+ MSHARED-798: Add addDefaultEntries option (true by default)
* Improvement
+ MSHARED-362: Support removing default manifest entries with
Maven Archiver
+ MSHARED-777: Remove deprecated main attributes from generated
manifest
+ MSHARED-799: Change "Created-By" manifest entry value to be
reproducible
+ MSHARED-800: Remove Maven version from pom.properties
* Wish
+ MSHARED-661: Remove manifest entry "Built-By: <username>" for
reproducible builds
+ MSHARED-796] - use java.specification.version instead of
java.version in Build-Jdk manifest entry
* Task
+ MSHARED-797: Move current Build-Jdk manifest entry to
Build-Jdk-Spec
- Changes of 3.3.0
* Bug
+ MSHARED-448: testRecreation failure with OpenJDK 8 on Linux
* Improvement
+ MSHARED-773: Fail on invalid 'Automatic-Module-Name' in
MANIFEST
- Removed patch:
* 0002-MSHARED-448-Skip-failing-assertion.patch
+ not needed with this version
- Modified patch:
* 0001-Port-tests-to-Eclipse-Aether.patch
+ rediff to changed context
-------------------------------------------------------------------
Mon Mar 25 06:52:33 UTC 2019 - Fridrich Strba <fstrba@suse.com>
- Initial packaging of maven-archiver 3.2.0
- Generate and customize the ant build.xml file

93
maven-archiver.spec Normal file
View File

@ -0,0 +1,93 @@
#
# spec file for package maven-archiver
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%bcond_with tests
Name: maven-archiver
Version: 3.6.1
Release: 0
Summary: Maven Archiver
License: Apache-2.0
Group: Development/Libraries/Java
URL: https://maven.apache.org/shared/maven-archiver/
Source0: https://repo1.maven.org/maven2/org/apache/maven/%{name}/%{version}/%{name}-%{version}-source-release.zip
Source1: %{name}-build.xml
BuildRequires: ant
BuildRequires: fdupes
BuildRequires: javapackages-local
BuildRequires: maven-lib
BuildRequires: maven-shared-utils
BuildRequires: plexus-archiver >= 4.2.0
BuildRequires: plexus-interpolation >= 1.25
BuildRequires: plexus-utils >= 3.3.0
BuildRequires: sisu-plexus
BuildRequires: unzip
BuildArch: noarch
%description
The Maven Archiver is used by other Maven plugins
to handle packaging
%package javadoc
Summary: Javadoc for %{name}
Group: Documentation/HTML
%description javadoc
Javadoc for %{name}.
%prep
%setup -q
cp %{SOURCE1} build.xml
%pom_xpath_remove pom:project/pom:parent/pom:relativePath
%build
mkdir -p lib
build-jar-repository -s lib \
org.eclipse.sisu.plexus \
maven-shared-utils/maven-shared-utils \
maven/maven-artifact maven/maven-core \
maven/maven-model \
plexus/interpolation \
plexus/archiver
%{ant} \
jar javadoc
%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
# javadoc
install -dm 0755 %{buildroot}%{_javadocdir}/%{name}
cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}/
%fdupes -s %{buildroot}%{_javadocdir}
%files -f .mfiles
%license LICENSE
%doc NOTICE
%files javadoc
%{_javadocdir}/%{name}
%license LICENSE
%doc NOTICE
%changelog