Fridrich Strba 2024-02-19 13:06:06 +00:00 committed by Git OBS Bridge
parent 9ae3987ed8
commit b4f87f69a9
3 changed files with 10 additions and 14 deletions

1
jtidy-rpmlintrc Normal file
View File

@ -0,0 +1 @@
addFilter("invalid-license")

View File

@ -2,6 +2,8 @@
Mon Feb 19 12:39:44 UTC 2024 - Fridrich Strba <fstrba@suse.com>
- 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 <fstrba@suse.com>

View File

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