%package sub1-Preset_iot-examples
Summary: IOT Device Board and SW Platform Presets
-%ifarch aarch64 armv7l
-Suggests: %{name}-sub2-Preset_iot-examples-RPI3_headless_devboard
-Suggests: %{name}-sub2-Preset_iot-examples-RPI3_headless_networkhub
-Suggests: %{name}-sub2-Preset_iot-examples-RPI3_headless_minimal
-Suggests: %{name}-sub2-Preset_iot-examples-RPI3_headless
-%endif
%ifarch armv7l
-Suggests: %{name}-sub2-Preset_iot-examples-ARTIK_headless
-Suggests: %{name}-sub2-Preset_iot-examples-ARTIK_headed_full
-Suggests: %{name}-sub2-Preset_iot-examples-ODROID_headed_full
+Suggests: %{name}-sub2-Preset_iot-examples-1_AAA_BLANK1__UI__SM
+Suggests: %{name}-sub2-Preset_iot-examples-1_ARTIK_headless
+Suggests: %{name}-sub2-Preset_iot-examples-1_ARTIK_headed_full
+Suggests: %{name}-sub2-Preset_iot-examples-1_ODROID_headed_full
+%endif
+Suggests: %{name}-sub2-Preset_iot-examples-1_ZZZBLANK1__UI__HR
+Suggests: %{name}-sub2-Preset_iot-examples-1_ZZZBLANK2__UI__SM
+%ifarch aarch64 armv7l
+Suggests: %{name}-sub2-Preset_iot-examples-1_RPI3_headless
+Suggests: %{name}-sub2-Preset_iot-examples-3_RPI3_headless_devboard
+Suggests: %{name}-sub2-Preset_iot-examples-3_RPI3_headless_networkhub
+Suggests: %{name}-sub2-Preset_iot-examples-3_RPI3_headless_minimal
%endif
%description sub1-Preset_iot-examples
Tizen IoT Presets of specific devices, which have both BSPs and software platforms.
An item in this section is intended to represent a whole OS image.
%files sub1-Preset_iot-examples
+%package sub2-Preset_iot-examples-1_AAA_BLANK1__UI__SM
+Summary: <b>Examples of Official Tizen Snapshot Images</b>
+%description sub2-Preset_iot-examples-1_AAA_BLANK1__UI__SM
+%files sub2-Preset_iot-examples-1_AAA_BLANK1__UI__SM
+
+%package sub2-Preset_iot-examples-1_ZZZBLANK1__UI__HR
+Summary: UI Blank
+%description sub2-Preset_iot-examples-1_ZZZBLANK1__UI__HR
+%files sub2-Preset_iot-examples-1_ZZZBLANK1__UI__HR
+
+%package sub2-Preset_iot-examples-1_ZZZBLANK2__UI__SM
+Summary: <b>Examples Not Verified</b>
+%description sub2-Preset_iot-examples-1_ZZZBLANK2__UI__SM
+%files sub2-Preset_iot-examples-1_ZZZBLANK2__UI__SM
%package sub2-Preset_iot-platforms-headless_minimal
%ifarch aarch64 armv7l
-%package sub2-Preset_iot-examples-RPI3_headless_devboard
+%package sub2-Preset_iot-examples-3_RPI3_headless_devboard
Summary: RPI3 Headless for Developers
Requires: %{name}-sub2-Preset_iot-platforms-headless_minimal
Requires: %{name}-sub1-Preset_boards-RPI3_headlessBSP
Suggests: gcc
Suggests: make
Suggests: cmake
-%description sub2-Preset_iot-examples-RPI3_headless_devboard
-%files sub2-Preset_iot-examples-RPI3_headless_devboard
+%description sub2-Preset_iot-examples-3_RPI3_headless_devboard
+%files sub2-Preset_iot-examples-3_RPI3_headless_devboard
%endif
%ifarch aarch64 armv7l
-%package sub2-Preset_iot-examples-RPI3_headless_networkhub
+%package sub2-Preset_iot-examples-3_RPI3_headless_networkhub
Summary: RPI3 Headless Network Hub
Requires: %{name}-sub2-Preset_iot-platforms-headless_minimal
Requires: %{name}-sub1-Preset_boards-RPI3_headlessBSP
Requires: %{name}-root-domain_network
-%description sub2-Preset_iot-examples-RPI3_headless_networkhub
-%files sub2-Preset_iot-examples-RPI3_headless_networkhub
+%description sub2-Preset_iot-examples-3_RPI3_headless_networkhub
+%files sub2-Preset_iot-examples-3_RPI3_headless_networkhub
%endif
%ifarch aarch64 armv7l
-%package sub2-Preset_iot-examples-RPI3_headless_minimal
+%package sub2-Preset_iot-examples-3_RPI3_headless_minimal
Summary: RPI3 Minimal Headless
Requires: %{name}-sub2-Preset_iot-platforms-headless_minimal
Requires: %{name}-sub1-Preset_boards-RPI3_headlessBSP
-%description sub2-Preset_iot-examples-RPI3_headless_minimal
-%files sub2-Preset_iot-examples-RPI3_headless_minimal
+%description sub2-Preset_iot-examples-3_RPI3_headless_minimal
+%files sub2-Preset_iot-examples-3_RPI3_headless_minimal
%endif
%ifarch aarch64 armv7l
-%package sub2-Preset_iot-examples-RPI3_headless
+%package sub2-Preset_iot-examples-1_RPI3_headless
Summary: RPI3 Headless Tizen Official Example
%list_with_require %{_datadir}/image-configurations/common-headless-2parts-armv7l-rpi3.ks
-%description sub2-Preset_iot-examples-RPI3_headless
+%description sub2-Preset_iot-examples-1_RPI3_headless
Replication of Tizen IoT RPI3 Snapshot Release (download.tizen.org/snapshots/tizen/unified)
This is from common-headless-2parts-armv7l-rpi3. (armv7l)
Userspace rootfs only.
-%files sub2-Preset_iot-examples-RPI3_headless
+%files sub2-Preset_iot-examples-1_RPI3_headless
%endif
%ifarch armv7l
-%package sub2-Preset_iot-examples-ARTIK_headless
+%package sub2-Preset_iot-examples-1_ARTIK_headless
Summary: ARTIK Headless Tizen Official Example
%list_with_require %{_datadir}/image-configurations/common-headless-3parts-armv7l-artik.ks
-%description sub2-Preset_iot-examples-ARTIK_headless
+%description sub2-Preset_iot-examples-1_ARTIK_headless
Replication of Tizen IoT ARTIK Snapshot Release (download.tizen.org/snapshots/tizen/unified)
This is from common-headless-3parts-armv7l-artik. (armv7l)
Userspace rootfs only
-%files sub2-Preset_iot-examples-ARTIK_headless
+%files sub2-Preset_iot-examples-1_ARTIK_headless
%endif
%ifarch armv7l
-%package sub2-Preset_iot-examples-ARTIK_headed_full
+%package sub2-Preset_iot-examples-1_ARTIK_headed_full
Summary: ARTIK Headed Tizen Official Example (common/full)
%list_with_require %{_datadir}/image-configurations/common-wayland-3parts-armv7l-artik.ks
-%description sub2-Preset_iot-examples-ARTIK_headed_full
+%description sub2-Preset_iot-examples-1_ARTIK_headed_full
Replication of Tizen IoT ARTIK Headed/Wayland Snapshot Release (download.tizen.org/snapshots/tizen/unified)
This is from common-wayland-3parts-armv7l-artik. (armv7l)
Userspace rootfs only
-%files sub2-Preset_iot-examples-ARTIK_headed_full
+%files sub2-Preset_iot-examples-1_ARTIK_headed_full
%endif
%ifarch armv7l
-%package sub2-Preset_iot-examples-ODROID_headed_full
+%package sub2-Preset_iot-examples-1_ODROID_headed_full
Summary: ODROID U3/XU3 Headed Tizen Official Example (common/full)
%list_with_require %{_datadir}/image-configurations/common-wayland-3parts-armv7l-odroidu3.ks
-%description sub2-Preset_iot-examples-ODROID_headed_full
+%description sub2-Preset_iot-examples-1_ODROID_headed_full
Replication of Tizen IoT Odroid U3/XU3 Headed/Wayland Snapshot Release (download.tizen.org/snapshots/tizen/unified)
This is from common-wayland-3parts-armv7l-odroidu3. (armv7l)
Userspace rootfs only
-%files sub2-Preset_iot-examples-ODROID_headed_full
+%files sub2-Preset_iot-examples-1_ODROID_headed_full
%endif
files = 0 # Start checking if %files section have files (error if exists)
lastpkg = ''
+ uipkg_checking = 0 # 1 if we are in a context of uipkg (after %package, before %description/%files/...)
try:
f = open("packaging/"+file, 'r')
if (files == 1):
if re.search(r'^\s*(%package)|(%build)|(%description)|(%prep)|(%clean)|(%install)|(%post)|(%pre)', line):
files = 0
+ uipkg_checking = 0
else:
if re.search(r'^\s*[^#\s]+', line) and \
not re.search(r'^\s*(%include)|(%endif)|(%ifarch)|(%list_require)', line):
continue
if re.search(r'^\s*((Suggests)|(Requires))', line, re.IGNORECASE):
+ # RULE 5.5
+ if uipkg_checking == 1:
+ error += 1
+ print("ERROR: RULE 5.5 a UI block cannot have relation with others.")
+ report(file, lc, line)
+ continue
+
if not re.search(r'^\s*((Suggests)|(Requires)):', line):
error += 1
print("ERROR: Use case sensitive put : directly after the keyword")
print("ERROR: RULE 1.3 the send prefix should be root, sub1, sub2, or sub3.")
report(file, lc, line)
continue
+ if re.search(r'^.*__UI__..$', line):
+ uipkg_checking = 1
# RULE 1-9 for root block (1-5)
if re.search(r'^\s*%package\s*root', line) and \