public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Ales Nezbeda <anezbeda@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/distgen] epel10.3: Update to 2.0
Date: Mon, 14 Sep 2026 12:38:28 GMT [thread overview]
Message-ID: <178938950850.1.1782155638044210091.rpms-distgen-6ac952323e2f@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/distgen
Branch : epel10.3
Commit : 6ac952323e2fbba101f90000de1dc0b931fa615b
Author : Ales Nezbeda <anezbeda@redhat.com>
Date : 2024-10-02T11:50:05+02:00
Stats : +20/-44 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/distgen/c/6ac952323e2fbba101f90000de1dc0b931fa615b?branch=epel10.3
Log:
Update to 2.0
Refresh of build system
Change spec file so it follows fedora guidelines
---
diff --git a/distgen.spec b/distgen.spec
index e0cd0fd..6023827 100644
--- a/distgen.spec
+++ b/distgen.spec
@@ -1,43 +1,16 @@
-%global pybin %{?fedora:%{__python3}}%{!?fedora:%{__python2}}
-%global pylib %{?fedora:%{python3_sitelib}}%{!?fedora:%{python2_sitelib}}
-%global pypkg %{?fedora:python3}%{!?fedora:python}
-%global meh_pypkg %{?fedora:%{pypkg}-}
-
-%if 0%{?rhel} >= 8
-%global pybin %__python3
-%global pylib %python3_sitelib
-%global pypkg python3
-%global meh_pypkg python3-
-%endif
-
-
Name: distgen
Summary: Templating system/generator for distributions
-Version: 1.18
+Version: 2.0
Release: 1%{?dist}
License: GPL-2.0-or-later AND Apache-2.0
URL: https://github.com/devexp-db/distgen
BuildArch: noarch
-Requires: %{pypkg}-jinja2
-Requires: %{pypkg}-distro
-Requires: %{meh_pypkg}PyYAML
-Requires: %{pypkg}-six
-
-BuildRequires: make
-BuildRequires: %{pypkg}-devel
-BuildRequires: %{pypkg}-distro
-BuildRequires: %{pypkg}-jinja2
-BuildRequires: %{meh_pypkg}pytest
-%if 0%{?rhel} && 0%{?rhel} < 8
-BuildRequires: %{pypkg}-mock
-BuildRequires: %{pypkg}-pytest-catchlog
-%endif
-BuildRequires: %{meh_pypkg}PyYAML
-BuildRequires: %{pypkg}-setuptools
-BuildRequires: %{pypkg}-six
-
-Source0: https://pypi.org/packages/source/d/%name/%name-%version.tar.gz
+BuildRequires: python3-devel
+BuildRequires: pyproject-rpm-macros
+BuildRequires: python3-pytest
+
+Source0: https://github.com/devexp-db/%name/releases/download/v%version/%name-%version.tar.gz
%description
Based on given template specification (configuration for template), template
@@ -47,33 +20,36 @@ file and preexisting distribution metadata generate output file.
%prep
%autosetup -p1
+%generate_buildrequires
+%pyproject_buildrequires -x pytest,pytest-catchlog,pytest-cov,coverage,flake8
%build
-%{pybin} setup.py build
+%pyproject_wheel
%install
-%{pybin} setup.py install --root=%{buildroot}
-mkdir -p %{buildroot}%{_datadir}/distgen
-mv %{buildroot}%{pylib}/distgen/{distconf,templates} %{buildroot}%{_datadir}/distgen
+%pyproject_install
+%pyproject_save_files distgen
%check
-make PYTHON=%{pybin} check
+%pytest tests/unittests/
-%files
+%files -f %{pyproject_files}
%license LICENSE
-%doc AUTHORS NEWS
+%doc NEWS
%doc docs/
%{_bindir}/dg
-%{pylib}/distgen
-%{pylib}/%{name}-*.egg-info
-%{_datadir}/%{name}
%{_mandir}/man1/*
%changelog
+* Wed Oct 2 2024 Ales Nezbeda <anezbeda@redhat.com> - 2.0-1
+- Update to 2.0
+- Refresh of build system
+- Change spec file so it follows fedora guidelines
+
* Mon Sep 09 2024 Lumír Balhar <lbalhar@redhat.com> - 1.18-1
- Update to 1.18
diff --git a/sources b/sources
index 31cfbee..3ec7bb4 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (distgen-1.18.tar.gz) = ddc1c5b95e3c905eef851b550aa981a86d58e64d17f383807a000c83fc0fccd77d6095607d128d938708decbae3947d43eaf95dcff9b6bb4f4827318add55b58
+SHA512 (distgen-2.0.tar.gz) = 21784a2b8b10926286c4739cf17995fb2200be724299edac9d727bdf616814ad53fa078c85a1ca4a3ba45bd6f5849c055f846a84b024ffdd8b2417d8564402f3
reply other threads:[~2026-09-14 12:38 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178938950850.1.1782155638044210091.rpms-distgen-6ac952323e2f@fedoraproject.org \
--to=anezbeda@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox