forked from open62541/open62541
-
Notifications
You must be signed in to change notification settings - Fork 0
/
open62541.spec
65 lines (50 loc) · 1.56 KB
/
open62541.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
Name: open62541
Version: 0.3
Release: 1%{?dist}
Summary: OPC UA implementation
License: MPLv2.0
URL: http://open62541.org
Source0: https://github.com/open62541/open62541/archive/%{name}-%{version}.tar.gz
BuildRequires: cmake3, python, python-six
%description
open62541 is a C-based library (linking with C++ projects is possible)
with all necessary tools to implement dedicated OPC UA clients and servers,
or to integrate OPC UA-based communication into existing applications.
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%prep
%setup -q -n %{name}-%{name}-%{version} # double-name prefix by GitHub
%build
%cmake3 -DUA_ENABLE_AMALGAMATION=ON .
make
%install
%make_install
# Remove this from the examples installation
rm examples/CMakeLists.txt
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%license LICENSE
%doc AUTHORS CHANGELOG README.md
%{_libdir}/libopen62541.so.*
%files devel
%license LICENSE LICENSE-CC0
%{_libdir}/libopen62541.so
%{_libdir}/pkgconfig/open62541.pc
%dir %{_includedir}/open62541
%{_includedir}/open62541/*
%{_libdir}/cmake/open62541*
%dir %{_exec_prefix}/share/open62541
%{_exec_prefix}/share/open62541/*
%doc FEATURES.md
%doc examples/
%changelog
* Tue Sep 05 2017 Jens Reimann <[email protected]> - 0.3-1
- New version of open62541
- Adapt for cmake3
* Thu Aug 31 2017 Jens Reimann <[email protected]> - 0.2-1
- Initial version of the package