# # 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