9397b9a
%{?python_enable_dependency_generator}
9397b9a
d372061
# Default to Python 3
9397b9a
%global __python %{__python3}
9397b9a
%global python_pkgversion %{python3_pkgversion}
8cd309d
8cd309d
Name:               pagure-dist-git
Lenka Segura 5358dc5
Version:            1.13
1df062b
Release:            4%{?dist}
9f695c2
Summary:            Pagure Git auth backend for Dist-Git setups
8cd309d
8cd309d
License:            GPLv2+
9397b9a
URL:                https://pagure.io/pagure-dist-git
9397b9a
Source0:            https://releases.pagure.org/%{name}/%{name}-%{version}.tar.gz
8cd309d
BuildArch:          noarch
8cd309d
9397b9a
BuildRequires:      python%{python_pkgversion}-devel
9397b9a
BuildRequires:      python%{python_pkgversion}-setuptools
8cd309d
9f695c2
Requires:           pagure >= 5.2
5bf98e8
Requires:           python%{python_pkgversion}-requests
8cd309d
9397b9a
# This is actually an extension to Pagure itself and can't be built this way
9397b9a
# So we're changing it all up..
9397b9a
Obsoletes:          python-%{name} < 0.12
9397b9a
Obsoletes:          python2-%{name} < 0.12
9397b9a
Obsoletes:          python3-%{name} < 0.12
9397b9a
# However, we'll preserve some backwards compatibility here
9397b9a
Provides:           python%{python_pkgversion}-%{name} = %{version}-%{release}
8cd309d
9397b9a
%description
8cd309d
This project hosts the logic to generate gitolite's configuration file for
9f695c2
Dist-Git, which has a different access model than regular Pagure Git systems.
8cd309d
8cd309d
9397b9a
%prep
9f695c2
%autosetup
9f695c2
8cd309d
9397b9a
%build
9397b9a
%py_build
8cd309d
9f695c2
9397b9a
%install
9397b9a
%py_install
8cd309d
8cd309d
9397b9a
# Install the different cron job scripts
9397b9a
mkdir -p $RPM_BUILD_ROOT/%{_libexecdir}/pagure-dist-git/
9397b9a
install -p -m 644 scripts/*.py $RPM_BUILD_ROOT/%{_libexecdir}/pagure-dist-git/
8cd309d
5abd8cb
%if 0%{?fedora} || 0%{?rhel} >= 8
5abd8cb
# Byte compile everything not in sitelib
5abd8cb
%py_byte_compile %{__python} %{buildroot}%{_libexecdir}/pagure-dist-git/
5abd8cb
%endif
8cd309d
9397b9a
%files
8cd309d
%doc README.rst
8cd309d
%license LICENSE
5abd8cb
%{python_sitelib}/pagure_distgit/
9397b9a
%{python_sitelib}/dist_git_auth.py*
9397b9a
%{python_sitelib}/pagure_dist_git-%{version}*
9397b9a
%if 0%{?python_pkgversion} != 2
e887496
%{python3_sitelib}/__pycache__/dist_git_auth*.pyc
8cd309d
%endif
9397b9a
%{_libexecdir}/pagure-dist-git/
8cd309d
8cd309d
%changelog
1df062b
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.13-4
1df062b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
1df062b
d4e5d44
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 1.13-3
d4e5d44
- Rebuilt for Python 3.12
d4e5d44
4ddb1e9
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.13-2
4ddb1e9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
4ddb1e9
Lenka Segura 5358dc5
* Wed Nov 30 2022 Lenka Segura <lsegura@redhat.com> - 1.13-1
Lenka Segura 5358dc5
- Update to 1.13
Lenka Segura 5358dc5
- Include the sync_fas_group and load_from_disk utility scripts (Pierre-Yves Chibon)
Lenka Segura 5358dc5
- Script to sync all the ACLs from pkgdb to pagure
Lenka Segura 5358dc5
- Add utility script to migrate a single project from pkgdb to pagure_poc
Lenka Segura 5358dc5
- Include pkgdb2pagure_acls.py in the releases
Lenka Segura 5358dc5
- Multiple fixes in the pkgdb2pagure_acls.py scripts
Lenka Segura 5358dc5
- Updated the load_from_disk and other scripts to python3 (Adam Saleh)
Lenka Segura 5358dc5
- search exact build NVRs in Koji (Ken Dreyer)
Lenka Segura 5358dc5
- Add new monitoring options for release-monitoring (Michal Konecny)
Lenka Segura 5358dc5
- Consistent order of users in pagure_owner_alias.json (Anatoli Babenia)
Lenka Segura 5358dc5
- Explain relation to src.fedoraproject.org (Anatoli Babenia)
Lenka Segura 5358dc5
- Add a hint for rejecting a push to disabled branch (Lenka Segura)
Lenka Segura 5358dc5
- Add give_orphan endpoint (Mattia Verga)
Lenka Segura 5358dc5
a53ba4a
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.12-5
a53ba4a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
a53ba4a
e93b4e7
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 1.12-4
e93b4e7
- Rebuilt for Python 3.11
e93b4e7
ffbc2ae
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.12-3
ffbc2ae
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
ffbc2ae
4ea7cdb
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.12-2
4ea7cdb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
4ea7cdb
a3f62e3
* Sat Jun 19 2021 Kevin Fenzi <kevin@scrye.com> - 1.12-1
a3f62e3
- Update to 1.12. Fixes rhbz#1945101
a3f62e3
def0768
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.10.1-3
def0768
- Rebuilt for Python 3.10
def0768
7b67ccf
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.1-2
7b67ccf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
7b67ccf
d372061
* Thu Jan 07 2021 Neal Gompa <ngompa13@gmail.com> - 1.10.1-1
d372061
- Update to 1.10.1
d372061
5bf98e8
* Tue Aug 04 2020 Neal Gompa <ngompa13@gmail.com> - 1.9.0-1
5bf98e8
- Update to 1.9.0
5bf98e8
04c27be
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.0-3
04c27be
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
04c27be
e49f852
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.7.0-2
e49f852
- Rebuilt for Python 3.9
e49f852
b904b35
* Thu May 14 2020 Neal Gompa <ngompa13@gmail.com> - 1.7.0-1
b904b35
- Update to 1.7.0
b904b35
3b27ab9
* Mon Mar 30 2020 Neal Gompa <ngompa13@gmail.com> - 1.6.1-1
3b27ab9
- Update to 1.6.1
3b27ab9
2945da3
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-2
2945da3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
2945da3
5abd8cb
* Sat Nov 16 2019 Neal Gompa <ngompa13@gmail.com> - 1.5.0-1
5abd8cb
- Rebase to 1.5.0
5abd8cb
53aa21e
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.2.1-5
53aa21e
- Rebuilt for Python 3.8.0rc1 (#1748018)
53aa21e
b3fb584
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.2.1-4
b3fb584
- Rebuilt for Python 3.8
b3fb584
f30ce96
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-3
f30ce96
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
f30ce96
328aa3f
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-2
328aa3f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
328aa3f
9f695c2
* Mon Jan 07 2019 Neal Gompa <ngompa13@gmail.com> - 1.2.1-1
9f695c2
- Rebase to 1.2.1
9f695c2
9397b9a
* Tue Sep 18 2018 Neal Gompa <ngompa13@gmail.com> - 0.12-1
9397b9a
- Rework and simplify packaging to mimic pagure's package setup
9397b9a
- Rebase to the latest version of the extension
9397b9a
- Drop Python 2 build for F29+ (#1627133)
9397b9a
e887496
* Mon Sep 10 2018 Ralph Bean <rbean@redhat.com> - 0.1-4
e887496
- Enable python 3.
e887496
1eeafeb
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1-3
1eeafeb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
1eeafeb
7894cd9
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1-2
7894cd9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
7894cd9
8cd309d
* Fri Jun 30 2017 Ralph Bean <rbean@redhat.com> - 0.1-1
8cd309d
- Initial packaging for Fedora