Files
rsyntaxtextarea/rsyntaxtextarea.spec

74 lines
2.1 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package rsyntaxtextarea
#
# Copyright (c) 2024 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: rsyntaxtextarea
Version: 3.4.0
Release: 0
Summary: A syntax highlighting, code folding text editor for Java Swing applications
License: BSD-3-Clause
Group: Development/Libraries/Java
URL: https://github.com/bobbylight/RSyntaxTextArea
Source0: %{url}/archive/refs/tags/%{version}.tar.gz
Source1: https://repo1.maven.org/maven2/com/fifesoft/%{name}/%{version}/%{name}-%{version}.pom
BuildRequires: fdupes
BuildRequires: maven-local
BuildArch: noarch
%description
RSyntaxTextArea is a customizable, syntax highlighting text component for Java
Swing applications. Out of the box, it supports syntax highlighting for 50+
programming languages, code folding, search and replace, and has add-on
libraries for code completion and spell checking. Syntax highlighting for
additional languages can be added via tools such as JFlex.
%package javadoc
Summary: API documentation for %{name}
Group: Documentation/HTML
%description javadoc
API documentation for %{name}.
%prep
%setup -q -n RSyntaxTextArea-%{version}
chmod 0644 *.md
cp %{SOURCE1} RSyntaxTextArea/pom.xml
%{mvn_file} : %{name}
%build
pushd RSyntaxTextArea
%{mvn_build} -f
popd
%install
pushd RSyntaxTextArea
%mvn_install
%fdupes %{buildroot}%{_javadocdir}/%{name}
popd
%files -f RSyntaxTextArea/.mfiles
%license LICENSE.md
%doc README.md
%files javadoc -f RSyntaxTextArea/.mfiles-javadoc
%license LICENSE.md
%changelog