628c309
dadab4a
%global with_sysfs 1
dadab4a
%global with_opcua 1
628c309
628c309
Name:     4diac-forte
628c309
Version:  1.9.0
0265066
Release:  3.1%{?dist}
628c309
Summary:  IEC 61499 runtime environment
628c309
License:  EPL
628c309
URL:      http://eclipse.org/4diac
22433c8
Source0:  https://git.eclipse.org/c/4diac/org.eclipse.4diac.forte.git/snapshot/org.eclipse.4diac.forte-%{version}.tar.gz
628c309
628c309
%{?systemd_requires}
628c309
BuildRequires: cmake, gcc-c++
628c309
BuildRequires: systemd
628c309
dadab4a
%if 0%{?with_opcua}
628c309
BuildRequires: open62541-devel >= 0.2
628c309
%endif
628c309
dadab4a
%if 0%{?with_lua}
628c309
BuildRequires: lua-devel >= 5.1
628c309
%endif
628c309
5fd50e6
%if 0%{?with_luajit}
5fd50e6
BuildRequires: luajit-devel >= 2.1.0
5fd50e6
%endif
5fd50e6
628c309
%description
628c309
The 4DIAC runtime environment (4DIAC-RTE, FORTE) is a small portable
628c309
implementation of an IEC 61499 runtime environment targeting small
628c309
embedded control devices (16/32 Bit), implemented in C++. It supports
628c309
online-reconfiguration of its applications and the real-time capable
628c309
execution of all function block types provided by the IEC 61499 standard.
628c309
628c309
%prep
22433c8
%setup -q -n org.eclipse.4diac.forte-%{version}
628c309
628c309
%build
628c309
mkdir -p bin/posix
628c309
cd bin/posix
628c309
%cmake -DFORTE_ARCHITECTURE=Posix \
628c309
       -DFORTE_COM_ETH=ON \
628c309
       -DFORTE_COM_FBDK=ON \
628c309
       -DFORTE_COM_LOCAL=ON \
dadab4a
       %{?with_opcua: -DFORTE_COM_OPC_UA=ON -DFORTE_COM_OPC_UA_INCLUDE_DIR=%{_includedir}/open62541 -DFORTE_COM_OPC_UA_LIB_DIR=%{_libdir}} \
628c309
       -DFORTE_MODULE_CONVERT=ON \
628c309
       -DFORTE_MODULE_IEC61131=ON \
dadab4a
       %{?with_sysfs: -DFORTE_MODULE_SysFs=ON } \
628c309
       -DFORTE_MODULE_UTILS=ON \
dadab4a
       %{?with_lua: -DFORTE_USE_LUATYPES=Lua } \
5fd50e6
       %{?with_luajit: -DFORTE_USE_LUATYPES=LuaJIT } \
628c309
       -DFORTE_TESTS=OFF \
628c309
       ../..
628c309
make %{?_smp_mflags}
628c309
628c309
%install
628c309
mkdir -p %{buildroot}%{_unitdir}
628c309
install -p systemd/4diac-forte.service %{buildroot}%{_unitdir}
628c309
628c309
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
628c309
install -p systemd/4diac-forte-sysconfig %{buildroot}%{_sysconfdir}/sysconfig/4diac-forte
628c309
628c309
cd bin/posix
628c309
%make_install
628c309
628c309
%post
628c309
%systemd_post 4diac-forte.service
628c309
628c309
%preun
628c309
%systemd_preun 4diac-forte.service
628c309
628c309
%postun
628c309
%systemd_postun_with_restart 4diac-forte.service
628c309
628c309
%files
628c309
%license epl-v10.html
628c309
%{_bindir}/forte
628c309
%{_unitdir}/4diac-forte.service
628c309
%config(noreplace) %{_sysconfdir}/sysconfig/4diac-forte
628c309
628c309
%changelog
0265066
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.0-3.1
0265066
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
0265066
8ac2674
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.0-2.1
8ac2674
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
8ac2674
94bbe17
* Thu Apr 19 2018 Jens Reimann <jreimann@redhat.com> - 1.9.0-1.1
22433c8
- Update to the final release 1.9.0
22433c8
- Enable Lua integration
22433c8
- Enable OPC UA integration
628c309
* Mon Feb 05 2018 Jens Reimann <jreimann@redhat.com> - 1.9.0.M3-0.1
628c309
- Initial version of the package
628c309
628c309