Files
unbescape/unbescape.spec

78 lines
2.2 KiB
RPMSpec

#
# spec file for package unbescape
#
# Copyright (c) 2023 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: unbescape
Version: 1.1.6
Release: 0
Summary: Advanced yet easy to use escaping library for Java
License: Apache-2.0
Group: Development/Libraries/Java
URL: https://github.com/%{name}/%{name}
Source0: %{url}/archive/refs/tags/%{name}-%{version}.RELEASE.tar.gz
BuildRequires: maven-local
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-assembly-plugin)
BuildArch: noarch
%description
Unbescape is a Java library aimed at performing fully-featured and
high-performance escape and unescape operations for:
HTML (HTML5 and HTML 4)
XML (XML 1.0 and XML 1.1)
JavaScript
JSON
URI/URL
CSS
CSV (Comma-Separated Values)
Java literals
Java .properties files
%package javadoc
Summary: API documentation for %{name}
Group: Documentation/HTML
%description javadoc
API documentation for %{name}.
%prep
%setup -q -n %{name}-%{name}-%{version}.RELEASE
chmod 0644 NOTICE.txt
%pom_remove_plugin :maven-source-plugin
%pom_remove_plugin :maven-javadoc-plugin
%{mvn_file} : %{name}
%build
%{mvn_build} -f -- \
-Dproject.build.outputTimestamp=$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ) \
-Dmaven.compile{,r}.{source,target}=8
%install
%mvn_install
%files -f .mfiles
%license {NOTICE,LICENSE}.txt
%doc {ChangeLog,USAGE}.txt README.markdown
%files javadoc -f .mfiles-javadoc
%license {NOTICE,LICENSE}.txt
%changelog