- upgrade to 1.5.1 - The binaries are compatible with java 1.8 - Use %patch -P N instead of deprecated %patchN. - Added patch: * glassfish-dtd-parser-sourcetarget.patch + do the base build with source/target 8 - Bring back the modular jar, since it is needed by packages down the dependency chain. - Specify source 7 for javadoc - Specify maven.compiler.release to fix build with jdk9+ and newer maven-javadoc-plugin - Do not build modular jar with any java version - BuildRequire java-devel > 9, so that we compile the module-info.java - Do not build module-info.java if compiling with java < 9 - Initial packaging of glassfish-dtd-parser 1.4 OBS-URL: https://build.opensuse.org/request/show/1208898 OBS-URL: https://build.opensuse.org/package/show/Java:packages/jaxb-dtd-parser?expand=0&rev=1
78 lines
2.2 KiB
RPMSpec
78 lines
2.2 KiB
RPMSpec
#
|
|
# spec file for package jaxb-dtd-parser
|
|
#
|
|
# 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
|
|
# 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/
|
|
#
|
|
|
|
|
|
# The automatic requires would be java-headless >= 9, but the
|
|
# binaries are java 8 compatible
|
|
%define __requires_exclude java-headless
|
|
Name: jaxb-dtd-parser
|
|
Version: 1.5.1
|
|
Release: 0
|
|
Summary: Library for parsing XML DTDs
|
|
License: CDDL-1.1 AND GPL-2.0-only WITH Classpath-exception-2.0
|
|
Group: Development/Libraries/Java
|
|
URL: http://java.net/projects/dtd-parser
|
|
Source0: https://github.com/eclipse-ee4j/%{name}/archive/refs/tags/%{version}.tar.gz
|
|
BuildRequires: ee4j
|
|
BuildRequires: fdupes
|
|
BuildRequires: fdupes
|
|
BuildRequires: java-devel >= 9
|
|
BuildRequires: maven-local
|
|
BuildRequires: mvn(net.java:jvnet-parent:pom:)
|
|
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
|
|
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
|
|
Requires: java-headless >= 1.8
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
Library for parsing XML DTDs.
|
|
|
|
%package javadoc
|
|
Summary: Javadoc for %{name}
|
|
Group: Documentation/HTML
|
|
|
|
%description javadoc
|
|
This package contains javadoc for %{name}.
|
|
|
|
%prep
|
|
%setup -q -n jaxb-dtd-parser-%{version}
|
|
|
|
%pom_remove_plugin org.codehaus.mojo:buildnumber-maven-plugin dtd-parser
|
|
%pom_remove_plugin org.glassfish.copyright:glassfish-copyright-maven-plugin dtd-parser
|
|
|
|
%build
|
|
pushd dtd-parser
|
|
|
|
%{mvn_file} :dtd-parser %{name}
|
|
%{mvn_build} -f -- -Dsource=8
|
|
|
|
popd
|
|
|
|
%install
|
|
pushd dtd-parser
|
|
%mvn_install
|
|
%fdupes -s %{buildroot}%{_javadocdir}
|
|
popd
|
|
|
|
%files -f dtd-parser/.mfiles
|
|
%license LICENSE.md
|
|
|
|
%files javadoc -f dtd-parser/.mfiles-javadoc
|
|
%license LICENSE.md
|
|
|
|
%changelog
|