5 Commits

Author SHA1 Message Date
Gris Ge
b84e23c744 copr: Fix build failure caused by git version upgrade
The srpm build system of copr just upgrade their git which enforce
`safe.directory` check.

https://git-scm.com/docs/git-config/#Documentation/git-config.txt-safedirectory

This command fixed copr issue:

    git config --global --add safe.directory $(PROJECT_DIR)

Signed-off-by: Gris Ge <fge@redhat.com>
2022-05-19 23:25:44 +08:00
Fernando Fernandez Mancera
1c91636f63 Makefile: respect the outdir used by Copr if defined
Signed-off-by: Fernando Fernandez Mancera <ffmancera@riseup.net>
2022-04-22 14:39:02 +02:00
Gris Ge
752c861045 Makefile: rewrite packaging makefile
Include single top level Makefile for:
 * `make dist`: Generate tarball for packaging
 * `SKIP_VENDOR_CREATION=1 make dist`: Skip creating rust vendor tarball.
 * `make release`: Generate tarball for alpha release and sign it
 * `RELEASE=1 make release`: Generate official tarball and sign it
 * `make rpm`: Build rpm
 * `make srpm`: make source rpm
 * `make check`: run unit test cases

Renaming the CLI `nmstatectl-rust` to `nmstatectl` and remove
`nmstatectl-rust` from rpm as we never advertise that.

Signed-off-by: Gris Ge <fge@redhat.com>
2022-04-21 10:28:42 +08:00
Till Maas
d7c252f974 copr: Detect python version for SRPM deps
Signed-off-by: Till Maas <opensource@till.name>
2019-06-05 20:26:19 +08:00
Till Maas
4b7c4f0ef2 packaging: Prepare automated COPR packaging
Break up the rpm building process in individual scripts that accept the
COPR environment variables `spec` and `outdir` and add a Makefile for
COPR automated building. Rename the spec files to have a spec suffix
because COPR requires this to specify them.

Signed-off-by: Till Maas <opensource@till.name>
2019-01-04 12:06:44 +01:00