summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2025-02-08 14:16:03 +0000
committerCoprDistGit <infra@openeuler.org>2025-02-08 14:16:03 +0000
commit27640ca07fd5bd5a6ddec83c55dbd96124a9b716 (patch)
tree0ea20000b15474a1617b2509550ba1aeccb15084
parentdbb3aabb7291581302e6f4243456827bfe31320e (diff)
automatic import of python-filesorter
-rw-r--r--filesorter.spec11
1 files changed, 4 insertions, 7 deletions
diff --git a/filesorter.spec b/filesorter.spec
index 3973e40..9eda4ec 100644
--- a/filesorter.spec
+++ b/filesorter.spec
@@ -34,14 +34,13 @@ Summary: %{summary}
%build
-# The macro only supported projects with setup.py
-%py3_build
+# Simple Python pkg no need to py3_build
%install
-# The macro only supported projects with setup.py
-%py3_install
-
+# Simple Python pkg, copy the script
+mkdir -p %{buildroot}%{python3_sitelib}/filesorter/
+cp %{SOURCE0} %{buildroot}%{python3_sitelib}/filesorter/xxx.py
%check
%{pytest}
@@ -52,10 +51,8 @@ Summary: %{summary}
%doc README.md
%license LICENSE.txt
%{_bindir}/filesorter
-
# The library files needed to be listed manually
%{python3_sitelib}/filesorter/
-
# The metadata files needed to be listed manually
%{python3_sitelib}/filesorter-*.egg-info/