Fix build with both xmvn-mojo:javadoc and javadoc:aggregate OBS-URL: https://build.opensuse.org/request/show/1264601 OBS-URL: https://build.opensuse.org/package/show/Java:packages/autocomplete?expand=0&rev=2
72 lines
1.9 KiB
RPMSpec
72 lines
1.9 KiB
RPMSpec
#
|
|
# spec file for package autocomplete
|
|
#
|
|
# 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: autocomplete
|
|
Version: 3.3.1
|
|
Release: 0
|
|
Summary: A code completion library for Swing text components
|
|
License: BSD-3-Clause
|
|
Group: Development/Libraries/Java
|
|
URL: https://github.com/bobbylight/AutoComplete
|
|
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
|
|
BuildRequires: mvn(com.fifesoft:rsyntaxtextarea)
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
AutoComplete is a code completion library for Swing JTextComponents, with
|
|
enhanced functionality available for instances of RSyntaxTextArea.
|
|
|
|
%package javadoc
|
|
Summary: API documentation for %{name}
|
|
Group: Documentation/HTML
|
|
|
|
%description javadoc
|
|
API documentation for %{name}.
|
|
|
|
%prep
|
|
%setup -q -n AutoComplete-%{version}
|
|
|
|
sed -i -e 's/\r//' README.md
|
|
|
|
cp %{SOURCE1} AutoComplete/pom.xml
|
|
|
|
%{mvn_file} : %{name}
|
|
|
|
%build
|
|
pushd AutoComplete
|
|
%{mvn_build} -f
|
|
popd
|
|
|
|
%install
|
|
pushd AutoComplete
|
|
%mvn_install
|
|
%fdupes %{buildroot}%{_javadocdir}/%{name}
|
|
popd
|
|
|
|
%files -f AutoComplete/.mfiles
|
|
%license LICENSE.md
|
|
%doc README.md
|
|
|
|
%files javadoc -f AutoComplete/.mfiles-javadoc
|
|
%license LICENSE.md
|
|
|
|
%changelog
|