13 Commits

Author SHA256 Message Date
Fridrich Štrba
aa8596f7b6 don't require update-alteantives 2025-09-05 09:32:03 +02:00
Fridrich Štrba
b93f4792e0 Do not require the jaxp_parser_impl, but xerces-j2 directly 2025-09-05 08:57:02 +02:00
Fridrich Štrba
a6600e2c1d bsc#12459312 2025-09-05 08:24:19 +02:00
f226e8b382 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
b653153dee OBS-URL: https://build.opensuse.org/package/show/Java:packages/xalan-j2?expand=0&rev=55 2024-09-23 14:46:18 +00:00
23abe9dbc4 OBS-URL: https://build.opensuse.org/package/show/Java:packages/xalan-j2?expand=0&rev=54 2024-09-23 14:45:49 +00:00
17b735a83e OBS-URL: https://build.opensuse.org/package/show/Java:packages/xalan-j2?expand=0&rev=53 2024-09-22 18:41:39 +00:00
535aa0dcdf OBS-URL: https://build.opensuse.org/package/show/Java:packages/xalan-j2?expand=0&rev=52 2024-09-22 14:45:21 +00:00
02e165eec6 OBS-URL: https://build.opensuse.org/package/show/Java:packages/xalan-j2?expand=0&rev=51 2024-09-22 13:50:01 +00:00
08df65207a OBS-URL: https://build.opensuse.org/package/show/Java:packages/xalan-j2?expand=0&rev=50 2024-09-22 10:16:56 +00:00
e2acb06a66 OBS-URL: https://build.opensuse.org/package/show/Java:packages/xalan-j2?expand=0&rev=49 2024-09-22 10:12:27 +00:00
e6c1f630b2 OBS-URL: https://build.opensuse.org/package/show/Java:packages/xalan-j2?expand=0&rev=48 2024-09-22 10:04:30 +00:00
d5876cd479 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 13 additions and 22 deletions

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
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) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -53,10 +53,7 @@ BuildRequires: xml-commons-apis-bootstrap
#!BuildIgnore: xml-commons-apis
#!BuildIgnore: xml-commons-jaxp-1.3-apis
#!BuildIgnore: xml-commons-resolver
Requires: jaxp_parser_impl
Requires(post): update-alternatives
Requires(postun): update-alternatives
Provides: jaxp_transform_impl
Requires: xerces-j2
BuildArch: noarch
%if %{with extras}
Name: %{base_name}-extras
@@ -89,9 +86,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
@@ -210,10 +207,6 @@ 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
@@ -236,23 +229,11 @@ 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