npm-pkgbuild 22.2.1 → 22.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/output/rpm.mjs +34 -14
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "npm-pkgbuild",
3
- "version": "22.2.1",
3
+ "version": "22.2.2",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": false
@@ -3,9 +3,9 @@ import { readFile } from "node:fs/promises";
3
3
  import { cp } from "node:fs/promises";
4
4
  import { execa } from "execa";
5
5
  import {
6
- integer_attribute,
7
- url_attribute,
8
- string_attribute,
6
+ integer_attribute_writable,
7
+ url_attribute_writable,
8
+ string_attribute_writable,
9
9
  string_collection_attribute_writable
10
10
  } from "pacc";
11
11
  import { ContentEntry, IteratorContentEntry } from "content-entry";
@@ -20,7 +20,8 @@ import {
20
20
  pkgbuild_version_attribute,
21
21
  pkgbuild_description_attribute,
22
22
  pkgbuild_name_attribute,
23
- arch_attribute_writable
23
+ arch_attribute_writable,
24
+ dependency_attribute_collection_writable
24
25
  } from "../types.mjs";
25
26
  import {
26
27
  copyEntries,
@@ -65,40 +66,59 @@ export class RPM extends Packager {
65
66
  name: { ...pkgbuild_name_attribute, externalName: "Name" },
66
67
  description: { ...pkgbuild_description_attribute, externalName: "Summary" },
67
68
  license: {
68
- ...string_attribute,
69
+ ...string_attribute_writable,
69
70
  name: "license",
70
71
  externalName: "License",
71
72
  mandatory: true
72
73
  },
73
74
  version: { ...pkgbuild_version_attribute, externalName: "Version" },
74
75
  release: {
75
- ...integer_attribute,
76
+ ...integer_attribute_writable,
76
77
  externalName: "Release",
77
78
  name: "release",
78
79
  default: 1,
79
80
  mandatory: true
80
81
  },
81
- source: { ...string_attribute, externalName: "Source0", name: "source" },
82
- groups: { ...string_attribute, externalName: "Group", name: "groups" },
82
+ source: {
83
+ ...string_attribute_writable,
84
+ externalName: "Source0",
85
+ name: "source"
86
+ },
87
+ groups: {
88
+ ...string_attribute_writable,
89
+ externalName: "Group",
90
+ name: "groups",
91
+ skipEmpty: true
92
+ },
83
93
  maintainer: {
84
- ...string_attribute,
94
+ ...string_attribute_writable,
85
95
  name: "maintainer",
86
96
  externalName: "Packager"
87
97
  },
88
- vendor: { ...string_attribute, externalName: "Vendor", name: "vendor" },
98
+ vendor: {
99
+ ...string_attribute_writable,
100
+ externalName: "Vendor",
101
+ name: "vendor",
102
+ skipEmpty: true
103
+ },
89
104
  arch: {
90
105
  ...arch_attribute_writable,
91
106
  externalName: "BuildArch",
92
107
  default: "noarch",
93
108
  mapping: { any: "noarch" }
94
109
  },
95
- URL: { ...url_attribute, name: "URL", alias: "homepage" },
110
+ URL: {
111
+ ...url_attribute_writable,
112
+ name: "URL",
113
+ alias: "homepage",
114
+ skipEmpty: true
115
+ },
96
116
  dependencies: {
97
- ...string_collection_attribute_writable,
117
+ ...dependency_attribute_collection_writable,
98
118
  externalName: "Requires"
99
119
  },
100
- Obsoletes: { ...string_collection_attribute_writable, name: "Obsoletes" },
101
- Conflicts: { ...string_collection_attribute_writable, name: "Conflicts" }
120
+ Obsoletes: { ...dependency_attribute_collection_writable, name: "Obsoletes" },
121
+ Conflicts: { ...dependency_attribute_collection_writable, name: "Conflicts" }
102
122
  };
103
123
 
104
124
  static get workspaceLayout() {