-
Notifications
You must be signed in to change notification settings - Fork 1
/
4diac-forte.spec
76 lines (61 loc) · 2.01 KB
/
4diac-forte.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
Name: 4diac-forte
Version: 1.9.0
Release: 1%{?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.git-%{version}.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
%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-20.html
%{_bindir}/forte
%{_unitdir}/4diac-forte.service
%{_sysconfdir}/sysconfig/4diac-forte
%changelog
* Fri Sep 01 2017 Jens Reimann <jreimann@redhat.com> - 1.9.0-1
- Initial version of the package