Fix javadoc generation with javadoc:aggregate OBS-URL: https://build.opensuse.org/request/show/1264703 OBS-URL: https://build.opensuse.org/package/show/Java:packages/jdeferred?expand=0&rev=4
68 lines
2.0 KiB
RPMSpec
68 lines
2.0 KiB
RPMSpec
#
|
||
# spec file for package jdeferred
|
||
#
|
||
# 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: jdeferred
|
||
Version: 2.0.0
|
||
Release: 0
|
||
Summary: Java Deferred/Promise library similar to JQuery
|
||
License: Apache-2.0
|
||
Group: Development/Libraries/Java
|
||
URL: https://jdeferred.org/
|
||
Source0: https://github.com/%{name}/%{name}/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||
Source1: https://repo1.maven.org/maven2/org/%{name}/v2/%{name}-core/%{version}/%{name}-core-%{version}.pom
|
||
Patch0: %{name}-incompatible-types.patch
|
||
BuildRequires: fdupes
|
||
BuildRequires: maven-local
|
||
BuildArch: noarch
|
||
|
||
%description
|
||
JDeferred is a Java Deferred/Promise library similar to JQuery’s Deferred
|
||
Object. Inspired by JQuery and Android Deferred Object.
|
||
|
||
%package javadoc
|
||
Summary: API documentation for %{name}
|
||
Group: Documentation/HTML
|
||
|
||
%description javadoc
|
||
API documentation for %{name}.
|
||
|
||
%prep
|
||
%setup -q
|
||
%patch -P 0 -p1
|
||
cp %{SOURCE1} subprojects/%{name}-core/pom.xml
|
||
|
||
%build
|
||
pushd subprojects/%{name}-core
|
||
%{mvn_build} -f
|
||
popd
|
||
|
||
%install
|
||
pushd subprojects/%{name}-core
|
||
%mvn_install
|
||
%fdupes %{buildroot}%{_javadocdir}/%{name}
|
||
popd
|
||
|
||
%files -f subprojects/%{name}-core/.mfiles
|
||
%license LICENSE.txt
|
||
%doc README.md
|
||
|
||
%files javadoc -f subprojects/%{name}-core/.mfiles-javadoc
|
||
%license LICENSE.txt
|
||
|
||
%changelog
|