10 Commits

Author SHA256 Message Date
6ff59c2c7f Accepting request 1202691 from Java:packages
reproducible build + packaging overhaul

OBS-URL: https://build.opensuse.org/request/show/1202691
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xalan-j2?expand=0&rev=33
2024-09-24 15:31:25 +00:00
8fe771b86b OBS-URL: https://build.opensuse.org/package/show/Java:packages/xalan-j2?expand=0&rev=55 2024-09-23 14:46:18 +00:00
540bf6b503 OBS-URL: https://build.opensuse.org/package/show/Java:packages/xalan-j2?expand=0&rev=54 2024-09-23 14:45:49 +00:00
069275c669 OBS-URL: https://build.opensuse.org/package/show/Java:packages/xalan-j2?expand=0&rev=53 2024-09-22 18:41:39 +00:00
2ca3911b31 OBS-URL: https://build.opensuse.org/package/show/Java:packages/xalan-j2?expand=0&rev=52 2024-09-22 14:45:21 +00:00
119175cfef OBS-URL: https://build.opensuse.org/package/show/Java:packages/xalan-j2?expand=0&rev=51 2024-09-22 13:50:01 +00:00
aebb1e269b OBS-URL: https://build.opensuse.org/package/show/Java:packages/xalan-j2?expand=0&rev=50 2024-09-22 10:16:56 +00:00
6082c056d5 OBS-URL: https://build.opensuse.org/package/show/Java:packages/xalan-j2?expand=0&rev=49 2024-09-22 10:12:27 +00:00
267bb43d48 OBS-URL: https://build.opensuse.org/package/show/Java:packages/xalan-j2?expand=0&rev=48 2024-09-22 10:04:30 +00:00
4b4ea7423d OBS-URL: https://build.opensuse.org/package/show/Java:packages/xalan-j2?expand=0&rev=47 2024-09-22 07:00:32 +00:00
2 changed files with 22 additions and 13 deletions

View File

@@ -1,13 +1,3 @@
-------------------------------------------------------------------
Fri Sep 5 06:55:25 UTC 2025 - Fridrich Strba <fstrba@suse.com>
- Do not require the jaxp_parser_impl, but xerces-j2 directly
-------------------------------------------------------------------
Fri Sep 5 06:23:04 UTC 2025 - Fridrich Strba <fstrba@suse.com>
- Do not provide the jaxp_transform_impl alternative (bsc#1245931)
-------------------------------------------------------------------
Sun Sep 22 07:00:22 UTC 2024 - Fridrich Strba <fstrba@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package xalan-j2
#
# Copyright (c) 2025 SUSE LLC and contributors
# 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
@@ -53,7 +53,10 @@ BuildRequires: xml-commons-apis-bootstrap
#!BuildIgnore: xml-commons-apis
#!BuildIgnore: xml-commons-jaxp-1.3-apis
#!BuildIgnore: xml-commons-resolver
Requires: xerces-j2
Requires: jaxp_parser_impl
Requires(post): update-alternatives
Requires(postun): update-alternatives
Provides: jaxp_transform_impl
BuildArch: noarch
%if %{with extras}
Name: %{base_name}-extras
@@ -86,9 +89,9 @@ Summary: Java XSLT compiler
Group: Development/Libraries/Java
Requires: bcel
Requires: java_cup
Requires: jaxp_parser_impl
Requires: jlex
Requires: regexp
Requires: xerces-j2
%description -n %{base_name}-xsltc
The XSLT Compiler is a Java-based tool for compiling XSLT stylesheets
@@ -207,6 +210,10 @@ install -d -m 755 %{buildroot}%{_mavenpomdir}
%{mvn_install_pom} %{SOURCE2} %{buildroot}%{_mavenpomdir}/%{base_name}-serializer.pom
%add_maven_depmap %{base_name}-serializer.pom %{base_name}-serializer.jar
# alternatives
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
ln -sf %{_sysconfdir}/alternatives/jaxp_transform_impl.jar %{buildroot}%{_javadir}/jaxp_transform_impl.jar
# bnc#485299
install -d -m 0755 %{buildroot}/%{_sysconfdir}/ant.d/
echo xalan-j2-serializer > %{buildroot}/%{_sysconfdir}/ant.d/serializer
@@ -229,11 +236,23 @@ cp -pr samples %{buildroot}%{_datadir}/%{base_name}
%endif
%if %{without extras}
%post
update-alternatives --install %{_javadir}/jaxp_transform_impl.jar \
jaxp_transform_impl %{_javadir}/%{base_name}.jar 30
%preun
{
[ $1 = 0 ] || exit 0
update-alternatives --remove jaxp_transform_impl %{_javadir}/%{base_name}.jar
} >/dev/null 2>&1 || :
%files -f .mfiles
%defattr(0644,root,root,0755)
%license LICENSE.txt
%doc KEYS NOTICE.txt
%config %{_sysconfdir}/ant.d/serializer
%ghost %{_sysconfdir}/alternatives/jaxp_transform_impl.jar
%{_javadir}/jaxp_transform_impl.jar
%else