diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2058e4d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/jtc-1.75c.tar.gz diff --git a/jtc.spec b/jtc.spec new file mode 100644 index 0000000..36ac6e7 --- /dev/null +++ b/jtc.spec @@ -0,0 +1,41 @@ +Name: jtc +Version: 1.75c +Release: 1%{?dist} +Summary: JSON processing utility + +License: MIT +URL: https://github.com/ldn-softdev/jtc +Source0: %{URL}/archive/%{version}/%{name}-%{version}.tar.gz + +BuildRequires: gcc-c++ + +%description +jtc stand for: JSON transformational chains (used to be JSON test console). + +jtc offers a powerful way to select one or multiple elements from a source JSON +and apply various actions on the selected elements at once (wrap selected +elements into a new JSON, filter in/out, sort elements, update elements, insert +new elements, remove, copy, move, compare, transform, swap around and many other +operations). + + +%prep +%autosetup + +%build +g++ -std=gnu++14 %optflags %{name}.cpp -o %{name} + +%install +install -Dpm 0755 %{name} %{buildroot}/%{_bindir}/%{name} + +%files +%{_bindir}/%{name} +%license LICENSE +%doc README.md +%doc "User Guide.md" +%doc "Walk-path tutorial.md" +%doc "Release Notes.md" + +%changelog +* Sun Jan 12 2020 Dan Čermák - 1.75c-1 +- Initial package version diff --git a/sources b/sources new file mode 100644 index 0000000..9746114 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (jtc-1.75c.tar.gz) = 548a8e9a6126dbf85fdf095b7465c97f404142625206a94cb5210372f7fc8b160555e09f303c9b1b77d97affdf3d1a5c2d88c0033d3fb697398886ac03fff045