From a574932b40926764aa9aed2a98f164a8cc5659c4 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Tue, 16 Apr 2024 13:18:36 +0000 Subject: automatic import of av --- .gitignore | 1 + av.spec | 69 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 71 insertions(+) create mode 100644 av.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..af0e9b4 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/av-12.0.0.tar.gz diff --git a/av.spec b/av.spec new file mode 100644 index 0000000..875c3d0 --- /dev/null +++ b/av.spec @@ -0,0 +1,69 @@ +%global _empty_manifest_terminate_build 0 +%global _unpackaged_files_terminate_build 0 + +# using global macro to speed up the spec editing +%global pkg_name av +%global version 12.0.0 +%global pkg_summary %{expand:An awesome python package} +%global pkg_desc %{expand:%{pkg_summary}} +%global open_license BSD + +Name: %{pkg_name} +Version: %{version} +Release: 1 +Summary: %{pkg_summary} +License: %{open_license} + +# the url and source0 url here +URL: https://pypi.org/project/av/#files +Source0: https://files.pythonhosted.org/packages/e7/45/282a04df72c17cc6cdd86df51b77754f61d1a8f3d68155e1821a8a76e399/av-12.0.0.tar.gz#/av-%{version}.tar.gz + +# build requires +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-hatchling +BuildRequires: python3-setuptools_scm + +# higharchy desc +%description +%{pkg_summary} + +# sub pkg section 1 +%package -n python3-%{pkg_name} +Summary: %{pkg_summary} + +%description -n python3-%{pkg_name} +%{pkg_desc} + +# pkg section: help optional +# %package -n help +# Summary: docs for the transformers +# Provides: python3-transformers-doc +# %description -n help +# description for the doc of the python3-transformers + +# the name here should match the name of the dir of the source code zip +# which got from the .tar.gz unzipped +%prep +%autosetup -p1 -n %{pkg_name}-%{version} + +# using python poject build, supplied by setup.py or pyproject.toml +%build +%pyproject_build + +# using python project install, supplied by setup.py or pyproject.toml +%install +%pyproject_install + +# point out the files here +%files -n python3-%{pkg_name} +%doc *.md +%license LICENSE* +%{python3_sitelib}/%{pkg_name}* + + +%changelog +* Mon Apr 15 2024 youser<1328699220@qq.com> +- pkg init diff --git a/sources b/sources new file mode 100644 index 0000000..4aa3ede --- /dev/null +++ b/sources @@ -0,0 +1 @@ +909a750a88ba7cdce85769cc3850c0ef av-12.0.0.tar.gz -- cgit v1.2.3