2023-11-30 05:16:38 +00:00
|
|
|
#
|
|
|
|
# spec file for package jolt
|
|
|
|
#
|
|
|
|
# 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: jolt
|
|
|
|
Version: 0.1.6
|
|
|
|
Release: 0
|
|
|
|
Summary: JSON to JSON transformation library written in Java
|
|
|
|
License: Apache-2.0
|
|
|
|
Group: Development/Libraries/Java
|
|
|
|
URL: https://github.com/bazaarvoice/%{name}
|
|
|
|
Source0: %{url}/archive/refs/tags/%{name}-%{version}.tar.gz
|
|
|
|
Source1: %{name}.pod
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: maven-local
|
|
|
|
BuildRequires: mvn(com.fasterxml.jackson.core:jackson-core)
|
|
|
|
BuildRequires: mvn(com.fasterxml.jackson.core:jackson-databind)
|
|
|
|
BuildRequires: mvn(net.sourceforge.argparse4j:argparse4j)
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
|
|
|
JSON to JSON transformation library written in Java where the “specification”
|
|
|
|
for the transform is itself a JSON document.
|
|
|
|
|
|
|
|
Useful For
|
|
|
|
• Transforming JSON data from ElasticSearch, MongoDb, Cassandra, etc before
|
|
|
|
sending it off to the world
|
|
|
|
• Extracting data from a large JSON documents for your own consumption
|
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
Summary: API documentation for %{name}
|
|
|
|
Group: Documentation/HTML
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
API documentation for %{name}.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{name}-%{name}-%{version}
|
|
|
|
|
|
|
|
%pom_remove_parent parent
|
|
|
|
|
|
|
|
%pom_remove_plugin :maven-source-plugin parent
|
|
|
|
%pom_remove_plugin :maven-javadoc-plugin parent
|
|
|
|
%pom_remove_plugin org.apache.rat:apache-rat-plugin parent
|
|
|
|
%pom_remove_plugin :maven-shade-plugin cli
|
|
|
|
|
|
|
|
%build
|
|
|
|
%{mvn_build} -f -- \
|
2025-03-27 21:15:47 +00:00
|
|
|
%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 9}%{!?pkg_vcmp:0}
|
|
|
|
-Dmaven.compiler.release=8 \
|
|
|
|
%endif
|
|
|
|
-Dsource=8
|
2023-11-30 05:16:38 +00:00
|
|
|
|
|
|
|
pod2man --release='%{name} %{version}' --section=1 --center='User Commands' --quotes=none %{SOURCE1} %{name}.1
|
|
|
|
|
|
|
|
%install
|
|
|
|
%mvn_install
|
|
|
|
%fdupes %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
|
|
|
|
%jpackage_script com.bazaarvoice.jolt.JoltCli "" "" %{name}:argparse4j:atinject:google-guice:jackson-core:jackson-databind %{name} true
|
|
|
|
|
|
|
|
install -dm0755 %{buildroot}%{_mandir}/man1
|
|
|
|
install -Dm0644 %{name}.1 %{buildroot}%{_mandir}/man1
|
|
|
|
|
|
|
|
%files -f .mfiles
|
|
|
|
%license LICENSE
|
|
|
|
%doc OWNERS README.md
|
|
|
|
%{_bindir}/%{name}
|
|
|
|
%{_mandir}/man1/%{name}.1%{?ext_man}
|
|
|
|
|
|
|
|
%files javadoc -f .mfiles-javadoc
|
|
|
|
%license LICENSE
|
|
|
|
|
|
|
|
%changelog
|