Update to version 1.4.0

Adds new API for returning failed YAML subdocuments
Stop emitting log messages by default (polluting consumer logs)
Validate RPM artifacts for proper NEVRA format
Improve the validator tool
Drop upstreamed patch

Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
This commit is contained in:
Stephen Gallagher 2018-04-25 13:54:34 -04:00
parent 25b1c759bb
commit b4fe4a807f
No known key found for this signature in database
GPG Key ID: 7A25556236BAA3A3
4 changed files with 12 additions and 40 deletions

1
.gitignore vendored
View File

@ -13,3 +13,4 @@
/modulemd-1.1.3.tar.xz
/modulemd-1.2.0.tar.xz
/modulemd-1.3.0.tar.xz
/modulemd-1.4.0.tar.xz

View File

@ -1,34 +0,0 @@
From 2f302ac7dfa5d922cf1981752153f53a69eaa2c9 Mon Sep 17 00:00:00 2001
From: Stephen Gallagher <sgallagh@redhat.com>
Date: Mon, 16 Apr 2018 08:29:15 -0400
Subject: [PATCH] Defaults emitter should use the correct name key
The specification requires that module name is represented as
"module: <modulename>", but the emitter was writing out
"name: <modulename>" instead.
Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
---
modulemd/modulemd-yaml-emitter-defaults.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modulemd/modulemd-yaml-emitter-defaults.c b/modulemd/modulemd-yaml-emitter-defaults.c
index cfd580a5dce40dc817d13e7e6bc09f6a7a786588..f6dc9e52a87ac8eed336ed475fd4dabebd19dfa7 100644
--- a/modulemd/modulemd-yaml-emitter-defaults.c
+++ b/modulemd/modulemd-yaml-emitter-defaults.c
@@ -190,11 +190,11 @@ _emit_defaults_data (yaml_emitter_t *emitter,
YAML_EMITTER_EMIT_WITH_ERROR_RETURN (
emitter, &event, error, "Error starting data mapping");
/* Module name */
- name = g_strdup ("name");
+ name = g_strdup ("module");
value = modulemd_defaults_dup_module_name (defaults);
MMD_YAML_EMIT_STR_STR_DICT (&event, name, value, YAML_PLAIN_SCALAR_STYLE);
/* Module default stream */
--
2.17.0

View File

@ -1,12 +1,12 @@
%global majorversion 1
%global minorversion 3
%global minorversion 4
%global patchversion 0
%global majorminorversion %{majorversion}.%{minorversion}
%global nsversion %{majorversion}.0
Name: libmodulemd
Version: %{majorminorversion}%{?patchversion:.%{patchversion}}
Release: 2%{?dist}
Release: 1%{?dist}
Summary: Module metadata manipulation library
License: MIT
@ -23,9 +23,6 @@ BuildRequires: python3-gobject-base
# Patches
# Defaults emitter wasn't following the spec properly. Included upstream
# https://github.com/fedora-modularity/libmodulemd/commit/2f302ac7dfa5d922cf1981752153f53a69eaa2c9
Patch0001: 0001-Defaults-emitter-should-use-the-correct-name-key.patch
%description
C Library for manipulating module metadata files.
@ -74,6 +71,14 @@ export LC_CTYPE=C.utf8
%{_datadir}/gtk-doc/html/modulemd/
%changelog
* Wed Apr 25 2018 Stephen Gallagher <sgallagh@redhat.com> - 1.4.0-1
- Update to version 1.4.0
- Adds new API for returning failed YAML subdocuments
- Stop emitting log messages by default (polluting consumer logs)
- Validate RPM artifacts for proper NEVRA format
- Improve the validator tool
- Drop upstreamed patch
* Mon Apr 16 2018 Stephen Gallagher <sgallagh@redhat.com> - 1.3.0-2
- Fix serious error in modulemd-defaults emitter

View File

@ -1 +1 @@
SHA512 (modulemd-1.3.0.tar.xz) = e55a014ba4cde890d63755b1032f62d4667f1467de18ee618fe10fc742ac3e28b17ac9938fe941ce18c819d7a1d904ae2fa9fada55c3f2ad3d5622816ec8b3a0
SHA512 (modulemd-1.4.0.tar.xz) = 2fe8c9642a4f67c0b11929c8fbf81ade228de43ac8bbdeab4bd16c9e0faed2d64cb6d930b7ff064ea2d2eaffaba335f222c03c3d7d129557ac07ba78536aac4a