Compare commits

..

15 commits

Author SHA1 Message Date
Artur Frenszek-Iwicki
744e85714e Update to v2.4 2026-08-26 22:20:37 +02:00
Fedora Release Engineering
8cedd71298 Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild 2026-07-15 21:50:07 +00:00
Python Maint
529d6a87e3 Rebuilt for Python 3.15 2026-06-03 21:32:08 +02:00
Tomáš Hrnčiar
7640b2bfac Fix invalid extras in %pyproject_buildrequires -x
The extras requested via -x do not match the project's
upstream metadata, causing a build failure with the new
extras validation in pyproject-rpm-macros.

See: https://src.fedoraproject.org/rpms/pyproject-rpm-macros/pull-request/534
2026-02-23 15:23:29 +01:00
Fedora Release Engineering
d78b963e05 Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild 2026-01-16 10:02:22 +00:00
Fedora Release Engineering
9f5c4c12ec Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild 2026-01-16 06:01:30 +00:00
Pavel Raiskup
bd81276423 Drop script that only /me was using 2025-12-29 11:32:56 +01:00
Pavel Raiskup
088708b5d6 New release - F43 configs added 2025-12-29 11:26:48 +01:00
Python Maint
fa7aca256a Rebuilt for Python 3.14.0rc3 bytecode 2025-09-19 12:13:50 +02:00
Python Maint
1ef884e78a Rebuilt for Python 3.14.0rc2 bytecode 2025-08-15 12:44:29 +02:00
Fedora Release Engineering
921164c558 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-23 19:20:05 +00:00
Python Maint
e51954b4da Rebuilt for Python 3.14 2025-06-02 23:38:05 +02:00
Fedora Release Engineering
4219fa71ef Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-16 15:51:49 +00:00
Ales Nezbeda
90ecb55d9e Update to 2.1
Support for RHEL 10
2025-01-14 17:33:26 +01:00
Ales Nezbeda
6ac952323e Update to 2.0
Refresh of build system
Change spec file so it follows fedora guidelines
2024-10-02 11:50:05 +02:00
3 changed files with 56 additions and 75 deletions

View file

@ -1,33 +0,0 @@
#! /bin/sh
# Prepare rawhide branch, review the list of branches below and then execute this
# script.
branches='rawhide epel9 epel8 epel7 f34 f35'
exit_handler ()
{
git checkout rawhide
}
trap exit_handler EXIT
set -e
set -x
koji hello
tasks=
for branch in $branches; do
if test $branch != rawhide; then
git checkout "$branch"
git merge rawhide
fi
git push
tasks="${tasks}`fedpkg build --nowait | grep 'Created task' | cut -d: -f2`"
done
koji watch-task $tasks
git checkout rawhide
fedpkg update

View file

@ -1,41 +1,14 @@
%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.4
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
BuildRequires: python3-devel
BuildRequires: pyproject-rpm-macros
BuildRequires: python3-pytest
Source0: https://pypi.org/packages/source/d/%name/%name-%version.tar.gz
@ -47,33 +20,74 @@ file and preexisting distribution metadata generate output file.
%prep
%autosetup -p1
%generate_buildrequires
%pyproject_buildrequires
%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 Aug 26 2026 Artur Frenszek-Iwicki <fedora@svgames.pl> - 2.4-1
- Update to v2.4
* Wed Jul 15 2026 Fedora Release Engineering <releng@fedoraproject.org> - 2.2-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
* Wed Jun 03 2026 Python Maint <python-maint@redhat.com> - 2.2-4
- Rebuilt for Python 3.15
* Fri Jan 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 2.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
* Fri Jan 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 2.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
* Mon Dec 29 2025 Pavel Raiskup <praiskup@redhat.com> - 2.2-1
- new upstream release with F43 config
* Fri Sep 19 2025 Python Maint <python-maint@redhat.com> - 2.1-6
- Rebuilt for Python 3.14.0rc3 bytecode
* Fri Aug 15 2025 Python Maint <python-maint@redhat.com> - 2.1-5
- Rebuilt for Python 3.14.0rc2 bytecode
* Wed Jul 23 2025 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
* Mon Jun 02 2025 Python Maint <python-maint@redhat.com> - 2.1-3
- Rebuilt for Python 3.14
* Thu Jan 16 2025 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
* Tue Jan 14 2025 Ales Nezbeda <anezbeda@redhat.com> - 2.1-1
- Update to 2.1
- Support for RHEL 10
* 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

View file

@ -1 +1 @@
SHA512 (distgen-1.18.tar.gz) = ddc1c5b95e3c905eef851b550aa981a86d58e64d17f383807a000c83fc0fccd77d6095607d128d938708decbae3947d43eaf95dcff9b6bb4f4827318add55b58
SHA512 (distgen-2.4.tar.gz) = 18108e71463ea76844a79bd2478b4d1892e7b9779542ac1795e57d4ea3f9fbc33f5a5582493d0b33f16dfc2bb4ff0ab2f73e955a3052521af09472e6889f266b