ソースを参照

Make changes for a Fedora RPM

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
Jens Reimann 7 年 前
コミット
101dab5933
共有3 個のファイルを変更した9 個の追加1 個の削除を含む
  1. 3 0
      .tito/packages/.readme
  2. 5 0
      .tito/tito.props
  3. 1 1
      open62541.spec

+ 3 - 0
.tito/packages/.readme

@@ -0,0 +1,3 @@
+the .tito/packages directory contains metadata files
+named after their packages. Each file has the latest tagged
+version and the project's relative directory.

+ 5 - 0
.tito/tito.props

@@ -0,0 +1,5 @@
+[buildconfig]
+builder = tito.builder.Builder
+tagger = tito.tagger.VersionTagger
+changelog_do_not_remove_cherrypick = 0
+changelog_format = %s (%ae)

+ 1 - 1
open62541.spec

@@ -4,7 +4,7 @@ Release:  1%{?dist}
 Summary:  OPC UA implementation
 License:  MPLv2.0
 URL:      http://open62541.org
-Source0:  https://github.com/ctron/open62541/archive/%{name}-%{version}.tar.gz
+Source0:  https://github.com/open62541/open62541/archive/%{name}-%{version}.tar.gz
 
 BuildRequires: cmake, python