21694e3
%global pybin %{?fedora:%{__python3}}%{!?fedora:%{__python2}}
1c5ed04
%global pylib %{?fedora:%{python3_sitelib}}%{!?fedora:%{python2_sitelib}}
9f2df2b
%global pypkg %{?fedora:python3}%{!?fedora:python}
9c7c2e6
%global meh_pypkg %{?fedora:%{pypkg}-}
9c7c2e6
f44c710
%if 0%{?rhel} >= 8
9c7c2e6
%global pybin %__python3
9c7c2e6
%global pylib %python3_sitelib
9c7c2e6
%global pypkg python3
9c7c2e6
%global meh_pypkg python3-
9c7c2e6
%endif
9c7c2e6
9f2df2b
9f2df2b
Name:       distgen
9f2df2b
Summary:    Templating system/generator for distributions
0630112
Version:    1.14
0630112
Release:    1%{?dist}
9f2df2b
License:    GPLv2+
9f2df2b
URL:        https://github.com/devexp-db/distgen
9f2df2b
BuildArch:  noarch
9f2df2b
8a77972
Requires: %{pypkg}-jinja2
8a77972
Requires: %{pypkg}-distro
ffce0f2
Requires: %{meh_pypkg}PyYAML
8a77972
Requires: %{pypkg}-six
8a77972
2f71b38
BuildRequires: make
8a77972
BuildRequires: %{pypkg}-devel
8a77972
BuildRequires: %{pypkg}-distro
8a77972
BuildRequires: %{pypkg}-jinja2
9c7c2e6
BuildRequires: %{meh_pypkg}pytest
21ee495
%if 0%{?rhel} && 0%{?rhel} < 8
f44c710
BuildRequires: %{pypkg}-mock
8a77972
BuildRequires: %{pypkg}-pytest-catchlog
21ee495
%endif
9c7c2e6
BuildRequires: %{meh_pypkg}PyYAML
8a77972
BuildRequires: %{pypkg}-setuptools
8a77972
BuildRequires: %{pypkg}-six
9f2df2b
cacc731
Source0: https://pypi.org/packages/source/d/%name/%name-%version.tar.gz
9f2df2b
9f2df2b
%description
9f2df2b
Based on given template specification (configuration for template), template
9f2df2b
file and preexisting distribution metadata generate output file.
9f2df2b
9f2df2b
9f2df2b
%prep
8a77972
%autosetup -p1
9f2df2b
9f2df2b
9f2df2b
%build
9f2df2b
%{pybin} setup.py build
9f2df2b
9f2df2b
9f2df2b
%install
9f2df2b
%{pybin} setup.py install --root=%{buildroot}
9883fa5
mkdir -p %{buildroot}%{_datadir}/distgen
9883fa5
mv %{buildroot}%{pylib}/distgen/{distconf,templates} %{buildroot}%{_datadir}/distgen
9f2df2b
9f2df2b
9f2df2b
%check
9f2df2b
make PYTHON=%{pybin} check
9f2df2b
9f2df2b
9f2df2b
%files
9f2df2b
%license LICENSE
2f96516
%doc AUTHORS NEWS
9f2df2b
%doc docs/
9f2df2b
%{_bindir}/dg
9f2df2b
%{pylib}/distgen
9f2df2b
%{pylib}/%{name}-*.egg-info
9f2df2b
%{_datadir}/%{name}
2f96516
%{_mandir}/man1/*
9f2df2b
9f2df2b
9f2df2b
%changelog
0630112
* Tue Sep 06 2022 Zuzana Miklankova <zmiklank@redhat.com> - 1.14-1
0630112
- new upstream release, https://github.com/devexp-db/distgen/releases/tag/v1.14
0630112
df3039e
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.13-3
df3039e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
df3039e
e6e8b7f
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 1.13-2
e6e8b7f
- Rebuilt for Python 3.11
e6e8b7f
4f96e62
* Thu Jun 09 2022 Zuzana Miklankova <zmiklank@redhat.com> - 1.13-1
4f96e62
- new upstream release, https://github.com/devexp-db/distgen/releases/tag/v1.13
4f96e62
bceac54
* Thu Apr 14 2022 Zuzana Miklankova <zmiklank@redhat.com> - 1.12-1
bceac54
- new upstream release, https://github.com/devexp-db/distgen/releases/tag/v1.12
bceac54
2c64566
* Thu Mar 24 2022 Zuzana Miklankova <zmiklank@redhat.com> - 1.11-1
2c64566
- new upstream release, https://github.com/devexp-db/distgen/releases/tag/v1.11
2c64566
f44c710
* Thu Jan 27 2022 Pavel Raiskup <praiskup@redhat.com> - 1.10-1
f44c710
- fix FTBFS on EPEL9, new release, https://github.com/devexp-db/distgen/releases/tag/v1.10
f44c710
d01faab
* Wed Jan 26 2022 Pavel Raiskup <praiskup@redhat.com> - 1.9-1
d01faab
- new upstream release, https://github.com/devexp-db/distgen/releases/tag/v1.9
d01faab
b90952e
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.8-3
b90952e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
b90952e
86ccf74
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.8-2
86ccf74
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
86ccf74
21ee495
* Tue Jun 08 2021 Pavel Raiskup <praiskup@redhat.com> - 1.8-1
21ee495
- fix ftbfs in Fedora (rhbz#1968796)
21ee495
17111c2
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.7-2
17111c2
- Rebuilt for Python 3.10
17111c2
2f71b38
* Sat Feb 20 2021 Pavel Raiskup <praiskup@redhat.com> - 1.7-1
2f71b38
- new upstream release
2f71b38
806d3e3
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.6-2
806d3e3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
806d3e3
36462f9
* Mon Aug 24 2020 Honza Horak <hhorak@redhat.com> - 1.6-1
36462f9
- Provide F32 branched configs
36462f9
  Provide CentOS 8 config
36462f9
5dacfea
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-3
5dacfea
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
5dacfea
7dac69e
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.5-2
7dac69e
- Rebuilt for Python 3.9
7dac69e
ffce0f2
* Wed Apr 01 2020 Pavel Raiskup <praiskup@redhat.com> - 1.5-1
ffce0f2
- provide F32 branched configs
ffce0f2
738969c
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-2
738969c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
738969c
16e6b88
* Tue Sep 24 2019 Pavel Raiskup <praiskup@redhat.com> - 1.4-1
16e6b88
- new upstream release (f31 configs)
16e6b88
f3a902f
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.3-4
f3a902f
- Rebuilt for Python 3.8
f3a902f
cfe75b9
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-3
cfe75b9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
cfe75b9
8a77972
* Thu May 02 2019 Pavel Raiskup <praiskup@redhat.com> - 1.3-2
8a77972
- fix ftbfs on rawhide (rhbz#1705262)
8a77972
dfef517
* Thu Mar 21 2019 Pavel Raiskup <praiskup@redhat.com> - 1.3-1
dfef517
- new upstream release, per release notes:
dfef517
  https://github.com/devexp-db/distgen/releases/tag/v1.3
dfef517
f274591
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-2
f274591
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
f274591
7e36ad4
* Fri Sep 14 2018 Pavel Raiskup <praiskup@redhat.com> - 1.2-1
7e36ad4
- latest upstream release
7e36ad4
302b330
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-3
302b330
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
302b330
89f04c1
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.1-2
89f04c1
- Rebuilt for Python 3.7
89f04c1
2f96516
* Thu Apr 19 2018 Pavel Raiskup <praiskup@redhat.com> - 1.1-1
2f96516
- sync with upstream spec file
2f96516
9883fa5
* Wed Apr 18 2018 Slavek Kabrda <bkabrda@redhat.com> - 1.1-1
9883fa5
- update to 1.1
9883fa5
- update source url to conform with new PyPI urls format
9883fa5
0d3681f
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.20-2
0d3681f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
0d3681f
0ebc250
* Mon Nov 27 2017 Slavek Kabrda <bkabrda@redhat.com> - 0.20-1
0ebc250
- update to 0.20
0ebc250
7aa00ad
* Thu Nov 02 2017 Slavek Kabrda <bkabrda@redhat.com> - 0.19-1
7aa00ad
- update to 0.19
7aa00ad
a49ca3c
* Mon Oct 30 2017 Slavek Kabrda <bkabrda@redhat.com> - 0.18-1
a49ca3c
- update to 0.18
a49ca3c
75a7e16
* Tue Oct 17 2017 Slavek Kabrda <bkabrda@redhat.com> - 0.17-1
75a7e16
- update to 0.17
75a7e16
a98636e
* Mon Sep 18 2017 Slavek Kabrda <bkabrda@redhat.com> - 0.16-1
a98636e
- update to 0.16
a98636e
32b281b
* Wed Sep 13 2017 Slavek Kabrda <bkabrda@redhat.com> - 0.15-1
32b281b
- update to 0.15
32b281b
9f2df2b
* Wed Sep 06 2017 Slavek Kabrda <bkabrda@redhat.com> - 0.14-1
9f2df2b
- update to 0.14
9f2df2b
9f2df2b
* Fri Aug 18 2017 Pavel Raiskup <praiskup@redhat.com> - 0.13.dev1-1
9f2df2b
- fix build on RHEL7
9f2df2b
9f2df2b
* Fri Aug 18 2017 Slavek Kabrda <bkabrda@redhat.com> - 0.12.dev1-1
9f2df2b
- new release scheme
9f2df2b
9f2df2b
* Tue Aug 15 2017 Pavel Raiskup <praiskup@redhat.com> - 0.11~dev-1
9f2df2b
- multiple --spec options
9f2df2b
9f2df2b
* Mon Aug 14 2017 Pavel Raiskup <praiskup@redhat.com> - 0.10~dev-1
9f2df2b
- rebase
9f2df2b
9f2df2b
* Thu May 19 2016 Pavel Raiskup <praiskup@redhat.com> - 0.9~dev-1
9f2df2b
- rebase
9f2df2b
9f2df2b
* Sat Feb 06 2016 Pavel Raiskup <praiskup@redhat.com> - 0.8~dev-1
9f2df2b
- rebase
9f2df2b
9f2df2b
* Wed Jan 27 2016 Pavel Raiskup <praiskup@redhat.com> - 0.7~dev-1
9f2df2b
- rebase
9f2df2b
9f2df2b
* Fri Nov 20 2015 Pavel Raiskup <praiskup@redhat.com> - 0.6~dev-1
9f2df2b
- rebase
9f2df2b
9f2df2b
* Mon Oct 26 2015 Pavel Raiskup <praiskup@redhat.com> - 0.5~dev-1
9f2df2b
- rebase
9f2df2b
9f2df2b
* Thu Sep 10 2015 Pavel Raiskup <praiskup@redhat.com> - 0.4~dev-1.git33125
9f2df2b
- rebase
9f2df2b
9f2df2b
* Tue Sep 01 2015 Pavel Raiskup <praiskup@redhat.com> - 0.3~dev-1.git76d41
9f2df2b
- rebase
9f2df2b
9f2df2b
* Wed May 20 2015 Pavel Raiskup <praiskup@redhat.com> - 0.2~dev-1.git32635
9f2df2b
- new release, enable testsuite
9f2df2b
9f2df2b
* Mon May 11 2015 Pavel Raiskup <praiskup@redhat.com> - 0.1~dev-4.gitf6fc9
9f2df2b
- fixes to allow build of PostgreSQL Docker image correctly
9f2df2b
9f2df2b
* Mon May 11 2015 Pavel Raiskup <praiskup@redhat.com> - 0.1~dev-3.git97392
9f2df2b
- bump version (better example)
9f2df2b
9f2df2b
* Sun May 10 2015 Pavel Raiskup <praiskup@redhat.com> - 0.1~dev-2.gitdefcd
9f2df2b
- Add 'dg' option parser
9f2df2b
9f2df2b
* Sun May 10 2015 Pavel Raiskup <praiskup@redhat.com> - 0.1~dev-1.git64bbe
9f2df2b
- Initial packaging