summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2025-02-08 12:28:59 +0000
committerCoprDistGit <infra@openeuler.org>2025-02-08 12:28:59 +0000
commitab9e31f035298fa6d372b3e8985b791dfec3c112 (patch)
treeeacadbf51d33f146960bccb395834219f4b83818
parent1920c2edabe69129026b67b69a68ca0678ce0a99 (diff)
automatic import of python-filesorter
-rw-r--r--.gitignore1
-rw-r--r--filesorter.spec65
-rw-r--r--sources1
3 files changed, 67 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..caca30c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/filesorter.tar.gz
diff --git a/filesorter.spec b/filesorter.spec
new file mode 100644
index 0000000..9974e33
--- /dev/null
+++ b/filesorter.spec
@@ -0,0 +1,65 @@
+Name: python-filesorter
+Version: 0.0.1
+Release: 1%{?dist}
+Summary: Example Python library
+
+License: MIT
+URL: https://example.com/%{Name}
+Source: filesorter.tar.gz
+
+BuildArch: noarch
+BuildRequires: python3-devel
+
+# Build dependencies needed to be specified manually
+BuildRequires: python3-setuptools
+
+# Test dependencies needed to be specified manually
+# Also runtime dependencies need to be BuildRequired manually to run tests during build
+BuildRequires: python3-pytest >= 3
+
+
+%global _description %{expand:
+filesorter is an example package with an executable that sort your files on the command line.}
+
+%description %_description
+
+%package -n python3-filesorter
+Summary: %{summary}
+
+%description -n python3-filesorter %_description
+
+
+%prep
+%autosetup -p1 -n filesorter-%{version}
+
+
+%build
+# The macro only supported projects with setup.py
+%py3_build
+
+
+%install
+# The macro only supported projects with setup.py
+%py3_install
+
+
+%check
+%{pytest}
+
+
+# Note that there is no %%files section for the unversioned python module
+%files -n python3-filesorter
+%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/
+
+
+%changelog
+* Sat Jan 18 2025 Super User
+-
diff --git a/sources b/sources
new file mode 100644
index 0000000..f5a9fd0
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+f68e14c170e6cd078f6e77beba1ac976 filesorter.tar.gz