Files
underscore-java/underscore-java.spec

73 lines
2.1 KiB
RPMSpec

#
# spec file for package underscore-java
#
# 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: underscore-java
Version: 1.93
Release: 0
Summary: Java port of Underscore.js
License: MIT
Group: Development/Libraries/Java
URL: https://javadev.github.io/%{name}/
Source0: https://github.com/javadev/%{name}/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: maven-local
BuildArch: noarch
%description
Underscore-java is a port of Underscore.js for Java. It is a utility-belt
library that provides a lot of the functional programming support that you
would expect in Prototype.js (or Ruby).
Underscore-java provides dozens of functions that support both the usual
functional suspects: map, select, invoke as well as more specialized helpers:
function binding, sorting, deep equality testing, and so on. It delegates to
built-in functions where applicable.
%package javadoc
Summary: API documentation for %{name}
Group: Documentation/HTML
%description javadoc
API documentation for %{name}.
%prep
%setup -q
%pom_remove_plugin com.github.searls:jasmine-maven-plugin
%pom_remove_plugin org.jacoco:jacoco-maven-plugin
%pom_remove_plugin :maven-checkstyle-plugin
%pom_remove_plugin :maven-surefire-plugin
%{mvn_file} : underscore
%build
%{mvn_build} -f
%install
%mvn_install
%fdupes %{buildroot}%{_javadocdir}/%{name}
%files -f .mfiles
%license LICENSE
%doc {README,SECURITY}.md
%files javadoc -f .mfiles-javadoc
%license LICENSE
%changelog