diff --git a/kyclassifier.sh b/kyclassifier.sh new file mode 100644 index 0000000000000000000000000000000000000000..983a5324ac7c8e733433d899be878057d9e2d19e --- /dev/null +++ b/kyclassifier.sh @@ -0,0 +1,14 @@ +#!/bin/sh +# ********************************************************************************** +# Copyright (c) KylinSoft Co., Ltd. 2024.All rights reserved. +# [kyclassifier] licensed under the Mulan PSL v2. +# You can use this software according to the terms and conditions of the Mulan PSL v2. +# You may obtain a copy of Mulan PSL v2 at: +# http://license.coscl.org.cn/MulanPSL2 +# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR +# PURPOSE. +# See the Mulan PSL v2 for more details. +# ********************************************************************************** +cmd_exec='/usr/bin/python3 /opt/kyclassifier/main.py' +$cmd_exec $@ diff --git a/kyclassifier.spec b/kyclassifier.spec index d7a332f4b2f0d193e9ce3f9c097fce9a1745125a..c76dd877af00444178d272c13117248ef2c2dd2e 100644 --- a/kyclassifier.spec +++ b/kyclassifier.spec @@ -1,5 +1,5 @@ Name: kyclassifier -Version: 1.0 +Version: 2.0 Release: 0 Summary: Use for analyzes layers and categories information of packages in openEuler. License: Mulan PSL v2 @@ -7,7 +7,7 @@ Source0: kyclassifier-%{version}.tar.gz BuildArch: noarch BuildRequires: python3 -Requires: python3 +Requires: python3 python3-dnf python3-hawkey python3-six python3-pycdlib %description Use for analyzes layers and categories information of packages in openEuler. @@ -20,11 +20,13 @@ Use for analyzes layers and categories information of packages in openEuler. rm -rf %{buildroot}/* mkdir -p %{buildroot}/opt/kyclassifier mv main.py %{buildroot}/opt/kyclassifier +mv src/ %{buildroot}/opt/kyclassifier +install -m 755 -D kyclassifier.sh %{buildroot}/usr/bin/kyclassifier %files %doc NOTICE LICENSES -/opt/kyclassifier/main.py -%exclude /opt/kyclassifier/__pycache__ +/opt/kyclassifier/ +/usr/bin/kyclassifier %clean rm -rf %{buildroot} @@ -32,5 +34,8 @@ rm -rf %{_builddir}/* %changelog +* Tue Nov 26 2024 Sheng Ding -2.0-0 +- RPM packages can be analyzed in iso, repo, and local environments. + * Fri Aug 09 2024 Sheng Ding -1.0-0 - Initial spec. \ No newline at end of file