File rstalanguagesupport.spec of Package rstalanguagesupport
#
# spec file for package rstalanguagesupport
#
# 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: rstalanguagesupport
Version: 3.3.0
Release: 0
Summary: Code completion and other advanced features
License: BSD-3-Clause
Group: Development/Languages/Java
URL: https://github.com/bobbylight/RSTALanguageSupport
Source0: %{url}/archive/refs/tags/%{version}.tar.gz
Source1: https://repo1.maven.org/maven2/com/fifesoft/languagesupport/%{version}/languagesupport-%{version}.pom
BuildRequires: fdupes
BuildRequires: maven-local
BuildRequires: mvn(com.fifesoft:autocomplete)
BuildRequires: mvn(com.fifesoft:rsyntaxtextarea)
BuildRequires: mvn(org.mozilla:rhino)
BuildArch: noarch
%description
This library contains “language support” for various languages for
RSyntaxTextArea. “Language support” is a little vague, but it generally means
auto-completion of function names and/or Parsers for the language (i.e.
squiggle-underlining of errors in the source code).
%package javadoc
Summary: API documentation for %{name}
Group: Documentation/HTML
%description javadoc
API documentation for %{name}.
%prep
%autosetup -n RSTALanguageSupport-%{version}
cp %{SOURCE1} RSTALanguageSupport/pom.xml
%pom_change_dep org.mozilla:rhino :::compile RSTALanguageSupport
%{mvn_file} :'{*}' @1
%build
%{mvn_build} -f -- \
-Dproject.build.outputTimestamp=$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ) \
-f RSTALanguageSupport
%install
%mvn_install
%fdupes %{buildroot}%{_javadocdir}/%{name}
%files -f .mfiles
%license LICENSE.md
%doc README.md
%files javadoc -f .mfiles-javadoc
%license LICENSE.md
%changelog