commit 903ddb6687d873e9699cfb41f77bcf9afe5f90d41805085b2f63ecd907c46c44 Author: Fridrich Strba Date: Wed Mar 19 20:31:41 2025 +0000 Accepting request 1254522 from home:fstrba:maven new package OBS-URL: https://build.opensuse.org/request/show/1254522 OBS-URL: https://build.opensuse.org/package/show/Java:packages/plexus-xml4?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/plexus-xml-4.0.4.tar.gz b/plexus-xml-4.0.4.tar.gz new file mode 100644 index 0000000..3772d19 --- /dev/null +++ b/plexus-xml-4.0.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:82359f0a2e638a7cd30f46888dc892b262915a7145a57303b0256d01fac2c9d8 +size 113806 diff --git a/plexus-xml4-build.xml b/plexus-xml4-build.xml new file mode 100644 index 0000000..488568b --- /dev/null +++ b/plexus-xml4-build.xml @@ -0,0 +1,118 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/plexus-xml4.spec b/plexus-xml4.spec new file mode 100644 index 0000000..9108fed --- /dev/null +++ b/plexus-xml4.spec @@ -0,0 +1,81 @@ +# +# spec file for package plexus-xml4 +# +# Copyright (c) 2025 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/ +# + + +%global base_name plexus-xml +Name: %{base_name}4 +Version: 4.0.4 +Release: 0 +Summary: Plexus XML Utilities +License: Apache-2.0 +Group: Development/Libraries/Java +URL: https://github.com/codehaus-plexus/%{base_name} +Source0: https://github.com/codehaus-plexus/%{base_name}/archive/refs/tags/%{base_name}-%{version}.tar.gz +Source1: %{name}-build.xml +BuildRequires: ant +BuildRequires: fdupes +BuildRequires: javapackages-local >= 6 +BuildRequires: maven4-bootstrap +BuildRequires: xz +BuildArch: noarch + +%description +A collection of various utility classes to ease working with XML in Maven 4. + +%package javadoc +Summary: Javadoc for %{name} +Group: Documentation/HTML + +%description javadoc +Javadoc for %{name}. + +%prep +%setup -q -n %{base_name}-%{base_name}-%{version} +cp -p %{SOURCE1} build.xml + +%pom_change_dep :maven-xml-impl :maven-xml:4.0.0-rc-3 + +%build +mkdir -p lib +build-jar-repository -s lib \ + maven4/maven-api-xml \ + maven4/maven-xml +%{ant} \ + jar javadoc + +%install +# jar +install -dm 0755 %{buildroot}%{_javadir}/%{name} +install -pm 0644 target/%{base_name}-%{version}.jar %{buildroot}%{_javadir}/%{name}/%{base_name}.jar +# pom +install -dm 0755 %{buildroot}%{_mavenpomdir}/%{name} +%{mvn_install_pom} pom.xml %{buildroot}%{_mavenpomdir}/%{name}/%{base_name}.pom +%add_maven_depmap %{name}/%{base_name}.pom %{name}/%{base_name}.jar -v %{version} +# javadoc +install -dm 0755 %{buildroot}%{_javadocdir}/%{name} +cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}/ +%fdupes -s %{buildroot}%{_javadocdir} + +%files -f .mfiles +%doc README.md +%license LICENSE.txt NOTICE.txt + +%files javadoc +%license LICENSE.txt NOTICE.txt +%{_javadocdir}/%{name} + +%changelog