From 5f0933c7c32bd7bafefbfab9d94f6f668c0dfe5d Mon Sep 17 00:00:00 2001 From: Jiri Vanek Date: Fri, 2 Dec 2022 16:35:51 +0100 Subject: [PATCH] Initial import --- .gitignore | 1 + parserng | 20 ++++++++++++++ parserng.spec | 74 +++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 96 insertions(+) create mode 100644 .gitignore create mode 100644 parserng create mode 100644 parserng.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f84fada --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/parserng-0.1.8.tar.xz diff --git a/parserng b/parserng new file mode 100644 index 0000000..6796d9c --- /dev/null +++ b/parserng @@ -0,0 +1,20 @@ +#!/usr/bin/bash + +#parserng launch script + +# JPackage Project +# Source functions library + +source /usr/share/java-utils/java-functions + +echo $@ | grep -q -e "-verbose" +verbose=$? + +if [ $verbose -eq 0 ] ; then + set -x +fi +: ${MAIN_CLASS:=math.Main} +set_classpath parserng +#export FLAGS="$FLAGS -Djdk.attach.allowAttachSelf=true --add-exports jdk.jdeps/com.sun.tools.javap=ALL-UNNAMED" +run "$@" + diff --git a/parserng.spec b/parserng.spec new file mode 100644 index 0000000..a4bd732 --- /dev/null +++ b/parserng.spec @@ -0,0 +1,74 @@ +Summary: %{nice_name} is a powerful open-source tool that parses and evaluates algebraic and mathematical expressions +%global nice_name ParserNG +Name: parserng +Version: 0.1.8 +Release: 1%{?dist} +License: ASL 2.0 +URL: https://github.com/gbenroscience/ParserNG +# tarred cloned repo without hidden files and without idea iml +# usptream do not tag, but uses maven versionining +# so this is 1c0ecd8088b18111e44e1291b41606b46c7d8aa5 +# which set pom to 0.1.8 and moved it to maven repos +Source0: %{name}-%{version}.tar.xz +Source1: parserng + +BuildArch: noarch +ExclusiveArch: %{java_arches} noarch + +BuildRequires: maven-local +BuildRequires: junit5 +BuildRequires: ant-junit5 +BuildRequires: junit +BuildRequires: ant-junit +BuildRequires: maven-surefire-provider-junit +BuildRequires: maven-surefire-provider-junit5 +BuildRequires: maven-surefire +BuildRequires: maven-surefire-plugin +BuildRequires: maven-clean-plugin +BuildRequires: java-devel +Requires: java-headless +Provides: ParserNG +Provides: parser-ng + +%description +Rich and Performant, Cross Platform Java Library(100% Java)... +Now allows the differentiation function to be differentiated with +respect to any variable(not just x). Next to math.Main main cmdline entry point +also parser.MathExpression and parser.cmd.ParserCmd are here for cmdline service + +%package javadoc +Summary: Javadoc for %{name} +Requires: %{name} = %{version}-%{release} + +%description javadoc +This package contains the API documentation for %{name}. + +%prep +%setup -c %{name}-%{version} + + +%build +%pom_remove_plugin :maven-jar-plugin +%pom_remove_plugin :maven-source-plugin +%pom_remove_plugin :maven-gpg-plugin +%pom_remove_plugin :maven-javadoc-plugin +%mvn_build + +%install +%mvn_install +install -d -m 755 $RPM_BUILD_ROOT%{_bindir} +install -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/ +chmod 755 $RPM_BUILD_ROOT%{_bindir}/%{name} +install -d -m 755 $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/ + +%files -f .mfiles +%license LICENSE +%{_bindir}/%{name} + +%files javadoc -f .mfiles-javadoc +%license LICENSE + +%changelog +* Fri Dec 02 2022 Jiri Vanek - 0.1.8-1 +- bumped sources to upstream rc candidate + diff --git a/sources b/sources new file mode 100644 index 0000000..c98ecc2 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (parserng-0.1.8.tar.xz) = 881c80e37721ed48866f62af7c5947708e7caa2a31db25560f0c4a887cd80182a2f841a3cc8658374fb03dfc33b176e36d27388c85181bec6e9a6a61ebad7692