# # spec file for package xmlresolver # # 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/ # Name: xmlresolver Version: 5.2.2 Release: 0 Summary: XML Resolver License: Apache-2.0 Group: Development/Libraries/Java URL: https://github.com/%{name}/%{name} Source0: https://repo1.maven.org/maven2/org/xmlresolver/%{name}/%{version}/%{name}-%{version}-sources.jar Source1: https://repo1.maven.org/maven2/org/xmlresolver/%{name}/%{version}/%{name}-%{version}.pom Source2: %{name}-build.xml BuildRequires: ant BuildRequires: fdupes BuildRequires: httpcomponents-client5 BuildRequires: httpcomponents-core5 BuildRequires: java-devel >= 1.8 BuildRequires: javapackages-local >= 6 BuildRequires: jing BuildRequires: slf4j BuildRequires: xerces-j2 BuildArch: noarch %description An XML entity/uri resolver. %package javadoc Summary: Javadoc for %{name} Group: Documentation/HTML %description javadoc This package contains javadoc for %{name}. %prep %setup -q -T -c mkdir -p src pushd src jar -xvf %{SOURCE0} popd cp %{SOURCE2} build.xml %build mkdir -p lib build-jar-repository -s lib httpcomponents-client5/httpclient5 httpcomponents-core5/httpcore5 jing slf4j/api xerces-j2 %{ant} -Dproject.version=%{version} package javadoc %install # jar install -dm 0755 %{buildroot}%{_javadir} install -pm 0644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar # pom install -dm 0755 %{buildroot}%{_mavenpomdir} %{mvn_install_pom} %{SOURCE1} %{buildroot}%{_mavenpomdir}/%{name}.pom %add_maven_depmap %{name}.pom %{name}.jar # javadoc install -dm 0755 %{buildroot}%{_javadocdir}/%{name} cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}/ %fdupes %{buildroot}%{_javadocdir}/%{name} %files -f .mfiles %files javadoc %{_javadocdir}/%{name} %changelog