summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2025-02-10 16:30:52 +0000
committerCoprDistGit <infra@openeuler.org>2025-02-10 16:30:52 +0000
commitde38ca4f4adb96f5038acae0979c2b4408967673 (patch)
tree1ddac5c01e51585a68a2e63ae8e4cdb2b0d884ab
parent87827594694eaba11642c66591028b2af2840d57 (diff)
automatic import of filesorter
-rw-r--r--.gitignore1
-rw-r--r--filesorter.spec49
-rw-r--r--sources1
3 files changed, 51 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..f9ea405 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/filesorter-0.0.1.tar.gz
diff --git a/filesorter.spec b/filesorter.spec
new file mode 100644
index 0000000..0ad07c0
--- /dev/null
+++ b/filesorter.spec
@@ -0,0 +1,49 @@
+Name: filesorter
+Version: 0.0.1
+Release: 1%{?dist}
+Summary: A filesorter using python impl.
+
+License: MIT
+URL: https://example.com
+
+# None // the online source code url, not the local path
+Source0: %{name}-%{version}.tar.gz
+
+
+Requires: python3
+BuildArch: noarch
+
+%description
+A filesorter using python
+
+
+%prep
+echo "setup begin!\n"
+%setup -q
+echo "setup end!\n"
+
+%build
+echo "buildstart"
+echo "buildend"
+
+
+%install
+echo "install start!"
+mkdir -p %{buildroot}/%{_bindir}
+mkdir -p %{buildroot}/usr/lib/%{name}
+
+cp %{name} %{buildroot}%{_bindir}/%{name}
+chmod +x %{buildroot}%{_bindir}/%{name}
+install -m 0644 %{name}.py %{buildroot}/usr/lib/%{name}/
+echo "Install Done!\n"
+
+
+%files
+%license LICENSE
+%{_bindir}/%{name}
+/usr/lib/%{name}/*.*
+/usr/lib/%{name}/__pycache__/*.*
+
+%changelog
+* Mon Feb 10 2025 Youser <1328699220@qq.com>
+- Init
diff --git a/sources b/sources
new file mode 100644
index 0000000..479bec7
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+0480a1ee89403b55106715c1c779aadd filesorter-0.0.1.tar.gz