From b4f87f69a9c58602cf2e8ae1266167098071315550474318ed11d8dd6e78d90a Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Mon, 19 Feb 2024 13:06:06 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/Java:packages/jtidy?expand=0&rev=22 --- jtidy-rpmlintrc | 1 + jtidy.changes | 2 ++ jtidy.spec | 21 +++++++-------------- 3 files changed, 10 insertions(+), 14 deletions(-) create mode 100644 jtidy-rpmlintrc diff --git a/jtidy-rpmlintrc b/jtidy-rpmlintrc new file mode 100644 index 0000000..e0f074c --- /dev/null +++ b/jtidy-rpmlintrc @@ -0,0 +1 @@ +addFilter("invalid-license") diff --git a/jtidy.changes b/jtidy.changes index 3b4ca58..eba97ef 100644 --- a/jtidy.changes +++ b/jtidy.changes @@ -2,6 +2,8 @@ Mon Feb 19 12:39:44 UTC 2024 - Fridrich Strba - The license is actually HTMLTIDY +- Add rpmlintrc to avoid errors with that license tag on SLE-15-SP2 +- Clean the spec file ------------------------------------------------------------------- Mon Jul 24 19:53:59 UTC 2023 - Fridrich Strba diff --git a/jtidy.spec b/jtidy.spec index 403e5ee..a846114 100644 --- a/jtidy.spec +++ b/jtidy.spec @@ -16,31 +16,24 @@ # -%define with() %{expand:%%{?with_%{1}:1}%%{!?with_%{1}:0}} -%define without() %{expand:%%{?with_%{1}:0}%%{!?with_%{1}:1}} -%define bcond_with() %{expand:%%{?_with_%{1}:%%global with_%{1} 1}} -%define bcond_without() %{expand:%%{!?_without_%{1}:%%global with_%{1} 1}} -%define _without_maven 1 -%define section free -%bcond_with maven Name: jtidy Version: 1.0.4 -Epoch: 1 Release: 0 Summary: HTML syntax checker and pretty printer License: HTMLTIDY Group: Development/Libraries/Java URL: https://github.com/jtidy/jtidy Source0: https://github.com/jtidy/jtidy/archive/refs/tags/jtidy-1.0.4.tar.gz -Source1: jtidy-build.xml +Source1: %{name}-build.xml +Source100: %{name}-rpmlintrc BuildRequires: ant >= 1.6 BuildRequires: ant-junit BuildRequires: fdupes -BuildRequires: javapackages-local +BuildRequires: javapackages-local >= 6 BuildRequires: xerces-j2 -BuildRequires: xml-commons-apis +BuildRequires: xml-apis Requires: xerces-j2 -Requires: xml-commons-apis +Requires: xml-apis BuildArch: noarch %description @@ -77,7 +70,7 @@ cp -p %{SOURCE1} build.xml %build mkdir -p lib -build-jar-repository -s lib xerces-j2 xml-commons-jaxp-1.3-apis +build-jar-repository -s lib xerces-j2 xml-apis %{ant} \ package javadoc @@ -89,7 +82,7 @@ install -m 644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar # pom install -d -m 755 %{buildroot}%{_mavenpomdir} -install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/%{name}.pom +%{mvn_install_pom} pom.xml %{buildroot}%{_mavenpomdir}/%{name}.pom %add_maven_depmap %{name}.pom %{name}.jar -a net.sf.jtidy:%{name} # javadoc