forked from pool/jtidy
This commit is contained in:
parent
9ae3987ed8
commit
b4f87f69a9
1
jtidy-rpmlintrc
Normal file
1
jtidy-rpmlintrc
Normal file
@ -0,0 +1 @@
|
|||||||
|
addFilter("invalid-license")
|
@ -2,6 +2,8 @@
|
|||||||
Mon Feb 19 12:39:44 UTC 2024 - Fridrich Strba <fstrba@suse.com>
|
Mon Feb 19 12:39:44 UTC 2024 - Fridrich Strba <fstrba@suse.com>
|
||||||
|
|
||||||
- The license is actually HTMLTIDY
|
- 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>
|
Mon Jul 24 19:53:59 UTC 2023 - Fridrich Strba <fstrba@suse.com>
|
||||||
|
21
jtidy.spec
21
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
|
Name: jtidy
|
||||||
Version: 1.0.4
|
Version: 1.0.4
|
||||||
Epoch: 1
|
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: HTML syntax checker and pretty printer
|
Summary: HTML syntax checker and pretty printer
|
||||||
License: HTMLTIDY
|
License: HTMLTIDY
|
||||||
Group: Development/Libraries/Java
|
Group: Development/Libraries/Java
|
||||||
URL: https://github.com/jtidy/jtidy
|
URL: https://github.com/jtidy/jtidy
|
||||||
Source0: https://github.com/jtidy/jtidy/archive/refs/tags/jtidy-1.0.4.tar.gz
|
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 >= 1.6
|
||||||
BuildRequires: ant-junit
|
BuildRequires: ant-junit
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: javapackages-local
|
BuildRequires: javapackages-local >= 6
|
||||||
BuildRequires: xerces-j2
|
BuildRequires: xerces-j2
|
||||||
BuildRequires: xml-commons-apis
|
BuildRequires: xml-apis
|
||||||
Requires: xerces-j2
|
Requires: xerces-j2
|
||||||
Requires: xml-commons-apis
|
Requires: xml-apis
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -77,7 +70,7 @@ cp -p %{SOURCE1} build.xml
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
mkdir -p lib
|
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} \
|
%{ant} \
|
||||||
package javadoc
|
package javadoc
|
||||||
|
|
||||||
@ -89,7 +82,7 @@ install -m 644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
|
|||||||
|
|
||||||
# pom
|
# pom
|
||||||
install -d -m 755 %{buildroot}%{_mavenpomdir}
|
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}
|
%add_maven_depmap %{name}.pom %{name}.jar -a net.sf.jtidy:%{name}
|
||||||
|
|
||||||
# javadoc
|
# javadoc
|
||||||
|
Loading…
Reference in New Issue
Block a user