From 709624288a310d346ae371c8fa0707baec28f8ac Mon Sep 17 00:00:00 2001 From: eabdullin Date: Thu, 31 Oct 2024 15:08:33 +0300 Subject: [PATCH] Initial commit --- .gitignore | 1 + README.md | 3 + ...3.11-rpmautospec-0.6.5-no-pytest-cov.patch | 9 +++ python3.11-rpmautospec.spec | 64 +++++++++++++++++++ sources | 1 + 5 files changed, 78 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 python3.11-rpmautospec-0.6.5-no-pytest-cov.patch create mode 100644 python3.11-rpmautospec.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f6cd7a3 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/rpmautospec-*.tar.gz diff --git a/README.md b/README.md new file mode 100644 index 0000000..68f3859 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# python3.11-rpmautospec + +The python3.11-rpmautospec package diff --git a/python3.11-rpmautospec-0.6.5-no-pytest-cov.patch b/python3.11-rpmautospec-0.6.5-no-pytest-cov.patch new file mode 100644 index 0000000..d4a5e0c --- /dev/null +++ b/python3.11-rpmautospec-0.6.5-no-pytest-cov.patch @@ -0,0 +1,9 @@ +diff -up rpmautospec-0.6.5/pyproject.toml.no-pytest-cov rpmautospec-0.6.5/pyproject.toml +--- rpmautospec-0.6.5/pyproject.toml.no-pytest-cov 2024-06-18 14:25:58.620784500 +0200 ++++ rpmautospec-0.6.5/pyproject.toml 2024-06-26 18:05:30.891827296 +0200 +@@ -76,5 +76,4 @@ select = ["E", "F", "W", "I"] + allowed-confusables = ["’"] + + [tool.pytest.ini_options] +-addopts = "--cov --cov-config .coveragerc --cov-report term --cov-report xml --cov-report html" + tmp_path_retention_policy = "failed" diff --git a/python3.11-rpmautospec.spec b/python3.11-rpmautospec.spec new file mode 100644 index 0000000..434f986 --- /dev/null +++ b/python3.11-rpmautospec.spec @@ -0,0 +1,64 @@ +%global python3_pkgversion 3.11 + +%global srcname rpmautospec + +Name: python%{python3_pkgversion}-%{srcname} +Version: 0.6.5 +Release: %autorelease +Summary: Package and CLI tool to generate release fields and changelogs +License: MIT +URL: https://github.com/fedora-infra/%{srcname} +Source0: https://github.com/fedora-infra/%{srcname}/releases/download/%{version}/%{srcname}-%{version}.tar.gz +Patch0: python3.11-rpmautospec-0.6.5-no-pytest-cov.patch + +BuildArch: noarch +BuildRequires: git +# the langpacks are needed for tests +BuildRequires: glibc-langpack-de +BuildRequires: glibc-langpack-en +BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: python%{python3_pkgversion}dist(babel) +BuildRequires: python%{python3_pkgversion}dist(pygit2) +BuildRequires: python%{python3_pkgversion}dist(pytest) +BuildRequires: python%{python3_pkgversion}dist(pyyaml) +BuildRequires: python%{python3_pkgversion}dist(rpm) +BuildRequires: python%{python3_pkgversion}dist(rpmautospec-core) +BuildRequires: python%{python3_pkgversion}dist(setuptools) +%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}} + +%description +A package and CLI tool to generate RPM release fields and changelogs. + +%package -n %{srcname} +Summary: CLI tool for generating RPM releases and changelogs +Requires: python%{python3_pkgversion}-%{srcname} = %{version}-%{release} + +%description -n %{srcname} +CLI tool for generating RPM releases and changelogs + +%prep +%autosetup -n %{srcname}-%{version} -p1 + +%build +%py3_build + +%install +%py3_install + +# The macro file is contained in epel-rpm-macros +# mkdir -p %%{buildroot}%%{rpmmacrodir} +# install -m 644 rpm/macros.d/macros.rpmautospec %%{buildroot}%%{rpmmacrodir}/ + +%check +%pytest -v + +%files +%doc README.rst +%{python3_sitelib}/%{srcname}/ +%{python3_sitelib}/*.egg-info/ + +%files -n %{srcname} +%{_bindir}/rpmautospec + +%changelog +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..0e803b5 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +4740a471d25896314cbb37ab7a34d24fa7d3b6512ea4d5d7444528e0669bca79cb23a180b8a591378a40e832df4a6673ac20930f38672d268d9c70fb49748771 rpmautospec-0.6.5.tar.gz