Accepting request 701253 from home:fstrba:maven

new package

OBS-URL: https://build.opensuse.org/request/show/701253
OBS-URL: https://build.opensuse.org/package/show/Java:packages/jhighlight?expand=0&rev=1
This commit is contained in:
Fridrich Strba 2019-05-07 09:25:22 +00:00 committed by Git OBS Bridge
commit eaa989d8de
4 changed files with 112 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

3
jhighlight-1.0.1.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e6d94a2069c314978eb58663eaa10fea1754073dcfd8967fab79718fceb09ef1
size 77013

70
jhighlight.spec Normal file
View File

@ -0,0 +1,70 @@
#
# spec file for package jhighlight
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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: jhighlight
Version: 1.0.1
Release: 0
Summary: An embeddable pure Java syntax highlighting library
License: LGPL-2.1-or-later OR CDDL-1.0
Group: Development/Libraries/Java
URL: http://svn.rifers.org/jhighlight
Source0: https://github.com/codelibs/jhighlight/archive/jhighlight-%{version}.tar.gz
Patch0: servlet31.patch
BuildRequires: fdupes
BuildRequires: maven-local
BuildRequires: mvn(javax.servlet:servlet-api)
BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
BuildArch: noarch
%description
JHighlight is an embeddable pure Java syntax highlighting library that supports
Java, Groovy, C++, HTML, XHTML, XML and LZX languages and outputs to XHTML. It
also supports RIFE (http://rifers.org) templates tags and highlights them
clearly so that you can easily identify the difference between your RIFE markup
and the actual marked up source.
%package javadoc
Summary: Javadocs for %{name}
Group: Documentation/HTML
%description javadoc
This package contains the API documentation for %{name}.
%prep
%setup -q -n %{name}-%{name}-%{version}
%patch0
%{mvn_alias} : com.uwyn:
%build
%{mvn_build} -f -- -Dsource=6
%install
%mvn_install
%fdupes -s %{buildroot}%{_javadocdir}
%files -f .mfiles
%doc README.md
%license COPYING
%doc LICENSE_LGPL.txt LICENSE_CDDL.txt
%files javadoc -f .mfiles-javadoc
%doc LICENSE_LGPL.txt LICENSE_CDDL.txt
%license COPYING
%changelog

16
servlet31.patch Normal file
View File

@ -0,0 +1,16 @@
--- src/main/java/com/uwyn/jhighlight/servlet/HighlightFilter.java.sav 2014-10-11 07:51:58.000000000 +0300
+++ src/main/java/com/uwyn/jhighlight/servlet/HighlightFilter.java 2015-03-05 20:11:11.701332059 +0200
@@ -232,5 +232,13 @@ public final class HighlightFilter imple
{
return mOutput.toByteArray();
}
+
+ public void setWriteListener(javax.servlet.WriteListener listener) {
+ throw new UnsupportedOperationException("Not implemented yet.");
+ }
+
+ public boolean isReady() {
+ return false;
+ }
}
}