fb5ceed
%global with_lua 1
e3e1405
%global with_luajit 0
dadab4a
%global with_sysfs 1
dadab4a
%global with_opcua 1
628c309
628c309
Name:     4diac-forte
0289409
Version:  1.11.0
7803292
Release:  2%{?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
e3e1405
BuildRequires: cmake
814a475
BuildRequires: make
e3e1405
BuildRequires: gcc-c++
628c309
BuildRequires: systemd
e3e1405
%{?systemd_requires}
628c309
dadab4a
%if 0%{?with_opcua}
0289409
BuildRequires: open62541-devel >= 1.0
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 \
e3e1405
%if 0%{?with_opcua}
814a475
       -DFORTE_COM_OPC_UA=ON -DFORTE_COM_OPC_UA_INCLUDE_DIR=%{_includedir} -DFORTE_COM_OPC_UA_LIB_DIR=%{_libdir} -DFORTE_COM_OPC_UA_LIB=libopen62541.so -DFORTE_COM_OPC_UA_MASTER_BRANCH=ON \
e3e1405
%endif
628c309
       -DFORTE_MODULE_CONVERT=ON \
628c309
       -DFORTE_MODULE_IEC61131=ON \
e3e1405
%if 0%{?with_sysfs}
e3e1405
       -DFORTE_MODULE_SysFs=ON \
e3e1405
%endif
628c309
       -DFORTE_MODULE_UTILS=ON \
e3e1405
%if 0%{?with_lua}
e3e1405
       -DFORTE_USE_LUATYPES=Lua \
e3e1405
%endif
e3e1405
%if 0%{?with_luajit}
e3e1405
       -DFORTE_USE_LUATYPES=LuaJIT \
e3e1405
%endif
628c309
       -DFORTE_TESTS=OFF \
628c309
       ../..
e3e1405
e3e1405
%make_build
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
8f5811c
%license epl-2.0.html
628c309
%{_bindir}/forte
628c309
%{_unitdir}/4diac-forte.service
628c309
%config(noreplace) %{_sysconfdir}/sysconfig/4diac-forte
628c309
628c309
%changelog
7803292
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.0-2
7803292
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
7803292
0289409
* Mon Oct 07 2019 Jens Reimann <jreimann@redhat.com> - 1.11.0-1
0289409
- Update to release 1.11.0
0289409
6792656
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.0-5
6792656
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
6792656
e3e1405
* Tue Feb 12 2019 Peter Robinson <pbrobinson@fedoraproject.org> 1.9.0-4
e3e1405
- Build fixes and cleanup
e3e1405
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
e3e1405
628c309
* Mon Feb 05 2018 Jens Reimann <jreimann@redhat.com> - 1.9.0.M3-0.1
628c309
- Initial version of the package