Update/fix rpm and deb packaging 23/15023/1
authorSebastien Douheret <sebastien.douheret@iot.bzh>
Thu, 5 Jul 2018 08:24:49 +0000 (10:24 +0200)
committerSebastien Douheret <sebastien.douheret@iot.bzh>
Thu, 5 Jul 2018 08:44:43 +0000 (10:44 +0200)
- fix packaging to be compliant with latest subprojects hierarchy
  (Master, Master-Next, ElectricEel, ...)
- fix rpmlint warnings/error

Change-Id: Ib8c2014624542d3dfb81818ed605dc7a2dedf2c5
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
Makefile
conf.d/etc/profile.d/xds-server.sh
conf.d/packaging/deb/agl-xds-server.dsc
conf.d/packaging/deb/debian.control
conf.d/packaging/rpm/agl-xds-server.spec
scripts/sdks/agl/db-dump

index 271061c..3877ab7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -103,7 +103,10 @@ endif
 ifeq ($(SUB_VERSION), )
        PACKAGE_ZIPFILE := $(TARGET)_$(ARCH)-$(VERSION).zip
 else
-       PACKAGE_ZIPFILE := $(TARGET)_$(ARCH)-$(VERSION)_$(SUB_VERSION).zip
+       # only use dot as separator to allow rpm packaging (see version .spec file)
+       PK_VER := $(subst _,.,$(subst -,,$(VERSION)))
+       PK_SBVER := $(subst _,.,$(subst -,,$(SUB_VERSION)))
+       PACKAGE_ZIPFILE := $(TARGET)_$(ARCH)-$(PK_VER).$(PK_SBVER).zip
 endif
 
 
index 3459829..738be21 100644 (file)
@@ -1,5 +1,4 @@
-#!/bin/bash
- ###########################################################################
+###########################################################################
 # Copyright 2017 IoT.bzh
 #
 # author: Sebastien Douheret <sebastien@iot.bzh>
index 2dd2119..bc254a2 100644 (file)
@@ -2,10 +2,10 @@ Format: 1.0
 Source: agl-xds-server
 Binary: agl-xds-server
 Architecture: any
-Version: 1.1.1
+Version: 0.0.0
 Maintainer: Sebastien Douheret <sebastien@iot.bzh>
 Standards-Version: 3.8.2
-Homepage: https://github.com/iotbzh/xds-server.git
+Homepage: https://gerrit.automotivelinux.org/gerrit/p/src/xds/xds-server.git
 Build-Depends: debhelper (>= 5),
  unzip
-Debtransform-Tar: xds-server_linux-amd64-v1.1.1_2018-04-05_111758.zip
+Debtransform-Tar: xds-server_linux-amd64-*.zip
index 8d29279..f2dcafe 100644 (file)
@@ -4,7 +4,7 @@ Source: agl-xds-server
 Build-Depends: debhelper (>= 5),
  unzip
 Standards-Version: 3.8.2
-Homepage: https://github.com/iotbzh/xds-server.git
+Homepage: https://gerrit.automotivelinux.org/gerrit/p/src/xds/xds-server.git
 
 Package: agl-xds-server
 Section: libs
index 74e5b33..ee59be1 100644 (file)
@@ -6,14 +6,15 @@
 %global debug_package %{nil}
 
 Name:           agl-xds-server
-Version:        1.1.1
+Version:        0.0.0
 Release:        0
 License:        Apache-2.0
 Summary:        XDS-server
-Url:            https://github.com/iotbzh/xds-server.git
-Source0:        xds-server_linux-amd64-v%{version}_2018-04-05_111758.zip
+Url:            https://gerrit.automotivelinux.org/gerrit/p/src/xds/xds-server.git
+Source0:        xds-server_linux-amd64-%{version}.zip
 BuildRequires:  unzip
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+Group:          Development/Tools/Debuggers
 
 # for now still embedded with xds
 # Requires:       syncthing
@@ -55,8 +56,8 @@ sed -e "s;@XDS_INSTALL_BIN_DIR@;%{_bindir};g" ./conf.d/etc/profile.d/xds-server.
 %{_bindir}/syncthing-inotify
 %dir %{_sysconfdir}/xds
 %dir %{_sysconfdir}/xds/server
-%{_sysconfdir}/default/xds-server
-%{_sysconfdir}/xds/server/*
+%config %{_sysconfdir}/default/xds-server
+%config %{_sysconfdir}/xds/server/*
 %config %{_sysconfdir}/profile.d/%{name}.sh
 %dir %{_userunitdir}
 %{_userunitdir}/xds-server.service
index ec2b1d8..ab6cfd4 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3
 #
 # /**************************************************************************
 # * Copyright 2017-2018 IoT.bzh