|
|
7050e4d |
%global commit da2b76f9ef1fb7100a109b4c0b20e08eedf76ed6
|
|
|
6e254be |
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
|
|
6e254be |
Name: freeopcua
|
|
|
6e254be |
Version: 0
|
|
Till Hofmann |
e0f9b6d |
Release: 0.10.20200131.%{shortcommit}%{?dist}
|
|
|
6e254be |
Summary: Open Source C++ OPC-UA Server and Client Library
|
|
|
6e254be |
|
|
|
6e254be |
License: LGPLv3+
|
|
|
6e254be |
URL: http://freeopcua.github.io/
|
|
|
6e254be |
Source0: https://github.com/FreeOpcUa/freeopcua/archive/%{commit}/%{name}-%{shortcommit}.tar.gz
|
|
|
28c5d1f |
# Do not override build flags, we want to use the Fedora flags
|
|
|
6e254be |
Patch0: freeopcua.build-flags.patch
|
|
|
4f2d276 |
# https://github.com/FreeOpcUa/freeopcua/pull/354
|
|
|
4f2d276 |
Patch1: freeopcua.catch-exception-in-destructor.patch
|
|
|
639d03a |
# Upstream has not reacted to a request to add a SOVERSION:
|
|
|
639d03a |
# https://github.com/FreeOpcUa/freeopcua/issues/337
|
|
|
639d03a |
# This patch sets the SOVERSION to 0.1.
|
|
|
639d03a |
Patch2: freeopcua.set-soversion.patch
|
|
|
61b246a |
# https://github.com/FreeOpcUa/freeopcua/pull/356
|
|
|
61b246a |
Patch3: freeopcua.use-system-spdlog.patch
|
|
|
6e254be |
|
|
|
6e254be |
BuildRequires: boost-devel
|
|
|
6e254be |
BuildRequires: cmake
|
|
|
6e254be |
BuildRequires: gcc-c++
|
|
|
6e254be |
BuildRequires: mbedtls-devel
|
|
|
61b246a |
BuildRequires: spdlog-devel
|
|
|
6e254be |
|
|
|
6e254be |
%description
|
|
|
c6b5570 |
A LGPL C++ library to develop server and client OPC-UA applications.
|
|
|
6e254be |
|
|
|
6e254be |
%package devel
|
|
|
6e254be |
Summary: Development files for %{name}
|
|
|
6e254be |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
61b246a |
# The dependencies are not picked up automatically
|
|
|
48d09b3 |
Requires: mbedtls-devel
|
|
|
61b246a |
Requires: spdlog-devel
|
|
|
6e254be |
|
|
|
6e254be |
%description devel
|
|
|
6e254be |
The %{name}-devel package contains libraries and header files for
|
|
|
6e254be |
developing applications that use %{name}.
|
|
|
6e254be |
|
|
|
6e254be |
%prep
|
|
|
7050e4d |
%autosetup -p1 -n %{name}-%{commit}
|
|
|
6e254be |
|
|
|
61b246a |
# Remove bundled spdlog
|
|
|
61b246a |
rm -rf include/opc/spdlog
|
|
|
61b246a |
|
|
|
6e254be |
|
|
|
6e254be |
%build
|
|
|
6e254be |
mkdir -p build
|
|
|
6e254be |
pushd build
|
|
|
6e254be |
%cmake -DCMAKE_INSTALL_LIBDIR=%{?_lib} ..
|
|
|
6e254be |
%make_build
|
|
|
6e254be |
popd
|
|
|
6e254be |
|
|
|
6e254be |
|
|
|
6e254be |
%install
|
|
|
6e254be |
pushd build
|
|
|
6e254be |
%make_install
|
|
|
6e254be |
popd
|
|
|
6e254be |
|
|
|
6e254be |
|
|
|
6e254be |
%files
|
|
|
6e254be |
%license COPYING
|
|
|
6e254be |
%doc README.md
|
|
|
639d03a |
%{_libdir}/libopc*.so.0.1
|
|
|
6e254be |
|
|
|
6e254be |
|
|
|
6e254be |
%files devel
|
|
|
6e254be |
%{_includedir}/opc
|
|
|
9c0a126 |
%{_libdir}/cmake/*
|
|
|
9c0a126 |
%{_libdir}/pkgconfig/*
|
|
|
639d03a |
%{_libdir}/libopc*.so
|
|
|
6e254be |
|
|
|
6e254be |
|
|
|
6e254be |
|
|
|
6e254be |
%changelog
|
|
Till Hofmann |
e0f9b6d |
* Thu Apr 23 2020 Till Hofmann <hofmann@kbsg.rwth-aachen.de> - 0-0.10.20200131.da2b76f
|
|
Till Hofmann |
e0f9b6d |
- Update spdlog patch to properly export compiler flags (update to upstream PR #356)
|
|
Till Hofmann |
e0f9b6d |
|
|
|
61b246a |
* Tue Apr 21 2020 Till Hofmann <thofmann@fedoraproject.org> - 0-0.9.20200131.da2b76f
|
|
|
61b246a |
- Remove bundled spdlog and build against system spdlog instead
|
|
|
61b246a |
|
|
|
639d03a |
* Thu Apr 16 2020 Till Hofmann <thofmann@fedoraproject.org> - 0-0.8.20200131.da2b76f
|
|
|
639d03a |
- Add patch to set the downstream SOVERSION to 0.1
|
|
|
639d03a |
|
|
|
4f2d276 |
* Thu Feb 06 2020 Till Hofmann <thofmann@fedoraproject.org> - 0-0.7.20200131.da2b76f
|
|
|
4f2d276 |
- Add patch to catch exception in UaClient destructor
|
|
|
4f2d276 |
|
|
|
7050e4d |
* Fri Jan 31 2020 Till Hofmann <thofmann@fedoraproject.org> - 0-0.6.20200131.da2b76f
|
|
|
7050e4d |
- Update snapshot to latest upstream commit
|
|
|
7050e4d |
- Remove upstreamed patches
|
|
|
7050e4d |
|
|
|
28c5d1f |
* Sat Jul 27 2019 Till Hofmann <thofmann@fedoraproject.org> - 0-0.5.20190615.6124e55
|
|
|
28c5d1f |
- Add patch to fix build failure with boost 1.69
|
|
|
28c5d1f |
|
|
|
e6ed6ab |
* Sat Jun 15 2019 Till Hofmann <thofmann@fedoraproject.org> - 0-0.4.20190615.6124e55
|
|
|
e6ed6ab |
- Update snapshot to latest upstream commit
|
|
|
e6ed6ab |
|
|
|
48d09b3 |
* Sun Apr 28 2019 Till Hofmann <thofmann@fedoraproject.org> - 0-0.3.20190417.2f2c886
|
|
|
48d09b3 |
- Add dependency of devel sub-package on mbedtls-devel
|
|
|
48d09b3 |
|
|
|
9c0a126 |
* Sun Apr 28 2019 Till Hofmann <thofmann@fedoraproject.org> - 0-0.2.20190417.2f2c886
|
|
|
9c0a126 |
- Move cmake and pkgconfig files into devel sub-package
|
|
|
9c0a126 |
|
|
|
6e254be |
* Wed Apr 17 2019 Till Hofmann <thofmann@fedoraproject.org> - 0-0.1.20190417.2f2c886
|
|
|
6e254be |
- Initial package
|