From 628c3090e6b1512270f1c743dfc9559a7514ed89 Mon Sep 17 00:00:00 2001 From: Jens Reimann Date: Feb 06 2018 19:05:26 +0000 Subject: Initial import (#1542200). --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..93f7ab0 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/org.eclipse.4diac.forte-1.9.0.M3.tar.gz diff --git a/4diac-forte.spec b/4diac-forte.spec new file mode 100644 index 0000000..7c945d6 --- /dev/null +++ b/4diac-forte.spec @@ -0,0 +1,82 @@ + +%global _with_sysfs 1 + +%global extraver M3 + +Name: 4diac-forte +Version: 1.9.0 +Release: 0.1.%{extraver}%{?dist} +Summary: IEC 61499 runtime environment +License: EPL +URL: http://eclipse.org/4diac +Source0: https://git.eclipse.org/c/4diac/org.eclipse.4diac.forte.git/snapshot/org.eclipse.4diac.forte-%{version}.%{extraver}.tar.gz + +%{?systemd_requires} +BuildRequires: cmake, gcc-c++ +BuildRequires: systemd + +%if %{with opcua} +BuildRequires: open62541-devel >= 0.2 +%endif + +%if %{with lua} +BuildRequires: lua-devel >= 5.1 +%endif + +%description +The 4DIAC runtime environment (4DIAC-RTE, FORTE) is a small portable +implementation of an IEC 61499 runtime environment targeting small +embedded control devices (16/32 Bit), implemented in C++. It supports +online-reconfiguration of its applications and the real-time capable +execution of all function block types provided by the IEC 61499 standard. + +%prep +%setup -q -n org.eclipse.4diac.forte-%{version}.%{extraver} + +%build +mkdir -p bin/posix +cd bin/posix +%cmake -DFORTE_ARCHITECTURE=Posix \ + -DFORTE_COM_ETH=ON \ + -DFORTE_COM_FBDK=ON \ + -DFORTE_COM_LOCAL=ON \ + %{?_with_opcua: -DFORTE_COM_OPC_UA=ON -DFORTE_COM_OPC_UA_INCLUDE_DIR=%{_includedir}/open62541 -DFORTE_COM_OPC_UA_LIB_DIR=%{_libdir}} \ + -DFORTE_MODULE_CONVERT=ON \ + -DFORTE_MODULE_IEC61131=ON \ + %{?_with_sysfs: -DFORTE_MODULE_SysFs=ON } \ + -DFORTE_MODULE_UTILS=ON \ + %{?_with_lua: -DFORTE_USE_LUATYPES=Lua } \ + -DFORTE_TESTS=OFF \ + ../.. +make %{?_smp_mflags} + +%install +mkdir -p %{buildroot}%{_unitdir} +install -p systemd/4diac-forte.service %{buildroot}%{_unitdir} + +mkdir -p %{buildroot}%{_sysconfdir}/sysconfig +install -p systemd/4diac-forte-sysconfig %{buildroot}%{_sysconfdir}/sysconfig/4diac-forte + +cd bin/posix +%make_install + +%post +%systemd_post 4diac-forte.service + +%preun +%systemd_preun 4diac-forte.service + +%postun +%systemd_postun_with_restart 4diac-forte.service + +%files +%license epl-v10.html +%{_bindir}/forte +%{_unitdir}/4diac-forte.service +%config(noreplace) %{_sysconfdir}/sysconfig/4diac-forte + +%changelog +* Mon Feb 05 2018 Jens Reimann - 1.9.0.M3-0.1 +- Initial version of the package + + diff --git a/README.md b/README.md deleted file mode 100644 index f251bf8..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# 4diac-forte - -The 4diac-forte package \ No newline at end of file diff --git a/sources b/sources new file mode 100644 index 0000000..b84470c --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (org.eclipse.4diac.forte-1.9.0.M3.tar.gz) = 67b36b0c0c72b3fc9126052ff9815ac5c3f12925d1e14cfce7fa91b3231530173aeccefe5201660394cb3cf99b07c1fc4107776df44c9661151625de8e5cb17d