summaryrefslogtreecommitdiff
path: root/filesorter.spec
diff options
context:
space:
mode:
Diffstat (limited to 'filesorter.spec')
-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/