浏览代码

Updated with comments from review

Jens Reimann 7 年之前
父节点
当前提交
94ef13105f
共有 1 个文件被更改,包括 5 次插入5 次删除
  1. 5 5
      open62541.spec

+ 5 - 5
open62541.spec

@@ -4,7 +4,7 @@ Release:  1%{?dist}
 Summary:  OPC UA implementation
 License:  MPLv2.0
 URL:      http://open62541.org
-Source0:  https://github.com/open62541/open62541/archive/v%{version}.tar.gz
+Source0:  https://github.com/ctron/open62541/archive/rpm-%{version}.tar.gz
 
 BuildRequires: cmake, python2
 
@@ -15,17 +15,17 @@ or to integrate OPC UA-based communication into existing applications.
 
 %package  devel
 Summary:  Development files for %{name}
-Requires: %{name} = %{version}-%{release}
+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
+%setup -q -n %{name}-rpm-%{version}
 
 %build
-%cmake .
+%cmake -DUA_ENABLE_AMALGAMATION=ON .
 make %{?_smp_mflags}
 
 %install
@@ -36,10 +36,10 @@ make %{?_smp_mflags}
 %postun -p /sbin/ldconfig
 
 %files
-%{_libdir}/libopen62541.so
 %{_libdir}/libopen62541.so.*
 
 %files devel
+%{_libdir}/libopen62541.so
 %{_includedir}/open62541.h
 
 %changelog