open62541.spec 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. Name: open62541
  2. Version: 0.2
  3. Release: 1%{?dist}
  4. Summary: OPC UA implementation
  5. License: MPLv2.0
  6. URL: http://open62541.org
  7. Source0: https://github.com/ctron/open62541/archive/%{name}-%{version}.tar.gz
  8. BuildRequires: cmake, python
  9. %description
  10. open62541 is a C-based library (linking with C++ projects is possible)
  11. with all necessary tools to implement dedicated OPC UA clients and servers,
  12. or to integrate OPC UA-based communication into existing applications.
  13. %package devel
  14. Summary: Development files for %{name}
  15. Requires: %{name}%{?_isa} = %{version}-%{release}
  16. %description devel
  17. The %{name}-devel package contains libraries and header files for
  18. developing applications that use %{name}.
  19. %prep
  20. %setup -q -n %{name}-rpm-%{version}
  21. %build
  22. %cmake -DUA_ENABLE_AMALGAMATION=ON .
  23. make %{?_smp_mflags}
  24. %install
  25. %make_install
  26. # Remove this from the examples installation
  27. rm examples/CMakeLists.txt
  28. %post -p /sbin/ldconfig
  29. %postun -p /sbin/ldconfig
  30. %files
  31. %license LICENSE LICENSE-CC0
  32. %doc AUTHORS CHANGELOG README.md
  33. %{_libdir}/libopen62541.so.*
  34. %files devel
  35. %{_libdir}/libopen62541.so
  36. %{_includedir}/open62541.h
  37. %doc FEATURES.md
  38. %doc examples/
  39. %changelog
  40. * Thu Aug 31 2017 Jens Reimann <jreimann@redhat.com> - 0.2-1
  41. - Initial version of the package