commit 90bc5e12487df1a3c8ea9f80e0d8b6b58bbb8830968c2f5b8086f9aa5b0dec76 Author: Fridrich Strba Date: Sun Sep 10 15:42:40 2023 +0000 Accepting request 1110133 from home:urbic:java Submitting a new package OBS-URL: https://build.opensuse.org/request/show/1110133 OBS-URL: https://build.opensuse.org/package/show/Java:packages/underscore-java?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/underscore-java-1.93.tar.gz b/underscore-java-1.93.tar.gz new file mode 100644 index 0000000..a91b34c --- /dev/null +++ b/underscore-java-1.93.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4ddc49d0b56c18bf59486caad5703ab632f6ccb5beba474fb73c9e36e23c5b58 +size 168575 diff --git a/underscore-java.changes b/underscore-java.changes new file mode 100644 index 0000000..0bfb6e9 --- /dev/null +++ b/underscore-java.changes @@ -0,0 +1,19 @@ +------------------------------------------------------------------- +Sun Sep 10 09:08:18 UTC 2023 - Anton Shvetz + +- Update to v1.92 + * Substituted the customized Optional with java.util.Optional + * Updated junit + * Improved json parser tests + +------------------------------------------------------------------- +Tue Aug 8 12:40:40 UTC 2023 - Anton Shvetz + +- Update to v1.92 + * The interfaces have been relocated within the Underscore class + * XML attribute parser has been enhanced + +------------------------------------------------------------------- +Mon Jul 31 19:46:40 UTC 2023 - Anton Shvetz + +- Initial packaging with v1.91 diff --git a/underscore-java.spec b/underscore-java.spec new file mode 100644 index 0000000..5878b71 --- /dev/null +++ b/underscore-java.spec @@ -0,0 +1,72 @@ +# +# 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