From 6aa0669002c34c39d1bfc82798bc981ffd96224e Mon Sep 17 00:00:00 2001 From: Jonny Heggheim Date: Apr 02 2019 08:25:48 +0000 Subject: initial package --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5de0c33 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/reactfx-2.0.tar.gz diff --git a/reactfx.spec b/reactfx.spec new file mode 100644 index 0000000..b51347c --- /dev/null +++ b/reactfx.spec @@ -0,0 +1,69 @@ +Name: reactfx +Version: 2.0 +Release: 1.M5%{?dist} +Summary: Reactive event streams for JavaFX + +License: BSD +URL: http://www.reactfx.org/ +Source0: https://github.com/TomasMikula/ReactFX/archive/v%{version}-M5.tar.gz#/%{name}-%{version}.tar.gz +Patch0: remove-missing-test-dependencies.patch + +#openjfx is x86 and x86_64 only +ExclusiveArch: %{ix86} x86_64 noarch +BuildArch: noarch +BuildRequires: gradle-local + +Requires: javafx +BuildRequires: javafx +BuildRequires: javafx-devel +BuildRequires: mvn(org.hamcrest:hamcrest-library) + +%description +ReactFX is an exploration of (functional) reactive programming techniques for +JavaFX. These techniques usually result in more concise code, less side effects +and less inversion of control, all of which improve the readability of code. + +Initial inspiration came from the Principles of Reactive Programming course and +the RxJava library. There are, however, important differences from RxJava. + +%package javadoc +Summary: Javadoc for %{name} + +%description javadoc +This package contains the API documentation for %{name}. + +%prep +%setup -q -n ReactFX-%{version}-M5 + +%patch0 -p1 + +%build +#Missing test dependencies: +#mvn(com.pholser:junit-quickcheck-core) +#mvn(com.pholser:junit-quickcheck-generators) +#mvn(org.junit.contrib:junit-theories) +rm -f reactfx/src/test/java/org/reactfx/util/SparseListTest.java + +#Swing Tests +rm -f reactfx/src/test/java/org/reactfx/AwaitTest.java \ + reactfx/src/test/java/org/reactfx/SuccessionReducingTest.java \ + reactfx/src/test/java/org/reactfx/TicksTest.java \ + reactfx/src/test/java/org/reactfx/value/AnimatedValTest.java + + +%gradle_build + +%install +%mvn_install -J reactfx/build/docs/javadoc + +%files -f .mfiles +%doc README.md +%license LICENSE + +%files javadoc -f .mfiles-javadoc +%doc README.md +%license LICENSE + +%changelog +* Fri Jul 14 2017 Jonny Heggheim - 2.0-1.M5 +- initial package diff --git a/remove-missing-test-dependencies.patch b/remove-missing-test-dependencies.patch new file mode 100644 index 0000000..9aa5f36 --- /dev/null +++ b/remove-missing-test-dependencies.patch @@ -0,0 +1,14 @@ +diff --git a/reactfx/build.gradle b/reactfx/build.gradle +index cc8e5e1..e9edbc1 100644 +--- a/reactfx/build.gradle ++++ b/reactfx/build.gradle +@@ -6,9 +6,6 @@ group = 'org.reactfx' + dependencies { + testCompile group: 'junit', name: 'junit', version: '4.12' + testCompile group: 'org.hamcrest', name: 'hamcrest-library', version: '1.3' +- testCompile group: 'org.junit.contrib', name: 'junit-theories', version: '4.12' +- testCompile group: 'com.pholser', name: 'junit-quickcheck-core', version: '0.4' +- testCompile group: 'com.pholser', name: 'junit-quickcheck-generators', version: '0.4' + } + + javadoc { diff --git a/sources b/sources new file mode 100644 index 0000000..0b1269c --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (reactfx-2.0.tar.gz) = 9be85f26ed20a5cea260c39b65e250c054277782d17497b1df504fe56dd26e777d3dc77d41a6ff9170e580c184958617051e4c15ff53133bbb3c0e33fb02f65f