commit 64c2f4f4708f5eae0496484b4dfd6f68e9cab123aea8f4302a903ea66462f962 Author: Fridrich Strba Date: Tue Mar 7 17:39:17 2023 +0000 Accepting request 1069585 from home:urbic:java Submitting a new package OBS-URL: https://build.opensuse.org/request/show/1069585 OBS-URL: https://build.opensuse.org/package/show/Java:packages/java-dataloader?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/java-dataloader-3.2.0.pom b/java-dataloader-3.2.0.pom new file mode 100644 index 0000000..134c4c9 --- /dev/null +++ b/java-dataloader-3.2.0.pom @@ -0,0 +1,47 @@ + + + + + + + + 4.0.0 + com.graphql-java + java-dataloader + 3.2.0 + + + org.slf4j + slf4j-api + 1.7.30 + compile + + + java-dataloader + A pure Java 8 port of Facebook Dataloader + https://github.com/graphql-java/java-dataloader + 2017 + + https://github.com/graphql-java/java-dataloader + scm:git@github.com:graphql-java/java-dataloader.git + scm:git@github.com:graphql-java/java-dataloader.git + + + + The Apache Software License, Version 2.0 + https://www.apache.org/licenses/LICENSE-2.0.txt + repo + + + + + bbakerman + Brad Baker + bbakerman@gmail.com + + + aschrijver + Arnold Schrijver + + + diff --git a/java-dataloader-3.2.0.tar.gz b/java-dataloader-3.2.0.tar.gz new file mode 100644 index 0000000..25eb343 --- /dev/null +++ b/java-dataloader-3.2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4473415b6bfbac1d718017361663238755dc6a7c81f4287f5ce81da7c856ca4d +size 128566 diff --git a/java-dataloader.changes b/java-dataloader.changes new file mode 100644 index 0000000..d293368 --- /dev/null +++ b/java-dataloader.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Fri Nov 25 13:55:42 UTC 2022 - Anton Shvetz + +- Initial packaging with v3.2.0 diff --git a/java-dataloader.spec b/java-dataloader.spec new file mode 100644 index 0000000..2a9f743 --- /dev/null +++ b/java-dataloader.spec @@ -0,0 +1,76 @@ +# +# spec file for package java-dataloader +# +# Copyright (c) 2022 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: java-dataloader +Version: 3.2.0 +Release: 0 +Summary: A Java 8 port of Facebook DataLoader +License: Apache-2.0 +Group: Development/Libraries/Java +URL: https://github.com/graphql-java/%{name} +Source0: %{url}/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz +Source1: https://repo1.maven.org/maven2/com/graphql-java/%{name}/%{version}/%{name}-%{version}.pom +BuildRequires: fdupes +BuildRequires: maven-local +BuildArch: noarch + +%description +This small and simple utility library is a pure Java 8 port of Facebook +DataLoader. + +It can serve as integral part of your application's data layer to provide a +consistent API over various back-ends and reduce message communication overhead +through batching and caching. + +An important use case for java-dataloader is improving the efficiency of +GraphQL query execution. Graphql fields are resolved independently and, with a +true graph of objects, you may be fetching the same object many times. + +A naive implementation of graphql data fetchers can easily lead to the dreaded +“n+1” fetch problem. + +Most of the code is ported directly from Facebook’s reference implementation, +with one IMPORTANT adaptation to make it work for Java 8. + +%package javadoc +Summary: API documentation for %{name} +Group: Documentation/HTML + +%description javadoc +API documentation for %{name}. + +%prep +%setup -q +cp %{SOURCE1} pom.xml +%{mvn_file} : %{name} + +%build +%{mvn_build} -f -- -Dmaven.compiler.{source,target}=8 + +%install +%mvn_install +%fdupes %{buildroot}%{_javadocdir}/%{name} + +%files -f .mfiles +%license LICENSE +%doc README.md + +%files javadoc -f .mfiles-javadoc +%license LICENSE + +%changelog