mirror of
https://github.com/open62541/open62541.git
synced 2026-10-17 04:42:09 +08:00
101dab5933
This change adds an RPM file and makes some minor modifications to the build in order to create an RPM file which passed the Fedora review process. For this spec file to work there has to be a tag named `open62541-<version>`, e.g. `open62541-0.2`. However this can be locally emulated by providing a sources file of the same name, e.g. `open62541-0.2.tar.gz`. An easier option is to use `tito` for a local build and execute `tito --test --rpm` in order to build a local version of the latest git commit automatically. Also see: https://bugzilla.redhat.com/show_bug.cgi?id=1487578
57 lines
1.3 KiB
RPMSpec
57 lines
1.3 KiB
RPMSpec
Name: open62541
|
|
Version: 0.2
|
|
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: cmake, python
|
|
|
|
%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
|
|
%cmake -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
|
|
%{_includedir}/open62541.h
|
|
%doc FEATURES.md
|
|
%doc examples/
|
|
|
|
%changelog
|
|
* Thu Aug 31 2017 Jens Reimann <jreimann@redhat.com> - 0.2-1
|
|
- Initial version of the package
|
|
|