open62541.spec 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. Name: open62541
  2. Version: 0.3
  3. Release: 1%{?dist}
  4. Summary: OPC UA implementation
  5. License: MPLv2.0
  6. URL: http://open62541.org
  7. Source0: https://github.com/open62541/open62541/archive/%{name}-%{version}.tar.gz
  8. BuildRequires: cmake3, 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}-%{name}-%{version} # double-name prefix by GitHub
  21. %build
  22. %cmake3 -DUA_ENABLE_AMALGAMATION=ON .
  23. make
  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
  32. %doc AUTHORS CHANGELOG README.md
  33. %{_libdir}/libopen62541.so.*
  34. %files devel
  35. %license LICENSE LICENSE-CC0
  36. %{_libdir}/libopen62541.so
  37. %{_libdir}/pkgconfig/open62541.pc
  38. %dir %{_includedir}/open62541
  39. %{_includedir}/open62541/*
  40. %{_libdir}/cmake/open62541*
  41. %dir %{_exec_prefix}/share/open62541
  42. %{_exec_prefix}/share/open62541/*
  43. %doc FEATURES.md
  44. %doc examples/
  45. %changelog
  46. * Tue Sep 05 2017 Jens Reimann <jreimann@redhat.com> - 0.3-1
  47. - New version of open62541
  48. - Adapt for cmake3
  49. * Thu Aug 31 2017 Jens Reimann <jreimann@redhat.com> - 0.2-1
  50. - Initial version of the package