Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:mnhauke:opc-ua
open62541
open62541.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File open62541.spec of Package open62541
# # spec file for package open62541 # # Copyright (c) 2017, Martin Hauke <mardnh@gmx.de> # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %define sover 0 %define libname lib%{name}-%{sover} Name: open62541 Version: 0.3rc1+git.20180626 Release: 0 Summary: OPC UA implementation License: MPL-2.0 Group: Development/Libraries/C and C++ URL: http://open62541.org #Git-Clone: https://github.com/open62541/open62541.git #Source: https://github.com/open62541/%%{name}/archive/v%%{version}.tar.gz#/%%{name}-%%{version}.tar.gz Source: %{name}-%{version}.tar.xz BuildRequires: cmake BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: pkgconfig %if 0%{?suse_version} >= 1500 BuildRequires: python3-six BuildRequires: python3-xml %else BuildRequires: python-six BuildRequires: python-xml %endif %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 -n %{libname} Summary: OPC UA implementation Group: Development/Libraries/C and C++ %description -n %{libname} 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 open62541 Requires: %{libname} = %{version}-%{release} %description devel The open62541-devel package contains libraries and header files for developing applications that use open62541. %package examples Summary: Example applications for open62541 %description examples The open62541-examples package contains the official example applications for open62541. %prep %setup -q sed -i 's/__DATE__/\"SUSE\"/g' plugins/ua_config_default.c sed -i 's/__TIME__/\"SUSE\"/g' plugins/ua_config_default.c %build %cmake \ -DUA_ENABLE_AMALGAMATION=ON \ -DUA_BUILD_EXAMPLES=ON make VERBOSE=1 %{?_smp_mflags} %install %cmake_install find %{buildroot} -type f -name ".*" | xargs rm %fdupes %{buildroot}/%{_includedir}/ # prefix example-binaries with open62541 install -dm 755 %{buildroot}%{_bindir} cd build/bin/examples for i in *; do mv $i open62541-$i; done mv * %{buildroot}%{_bindir} %post -n %{libname} -p /sbin/ldconfig %postun -n %{libname} -p /sbin/ldconfig %files -n %{libname} %license LICENSE %doc AUTHORS CHANGELOG CODE_OF_CONDUCT.md FEATURES.md LICENSE-CC0 README.md %{_libdir}/libopen62541.so.%{sover}* %files devel %{_includedir}/open62541 %{_datadir}/open62541 %{_libdir}/libopen62541.so %{_libdir}/pkgconfig/open62541.pc %{_libdir}/cmake/open62541*.cmake %files examples %{_bindir}/open62541-* %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor