Michael Scherer 08401c7
%define Uname MgaRepo
Michael Scherer 08401c7
Michael Scherer 08401c7
Name: mgarepo
460fd1e
Version: 1.13.2
1f9ed62
Release: 18%{?dist}
Michael Scherer 08401c7
Summary: Tools for Mageia repository access and management
3569dcd
# tarball needs to be created manually, since tags don't generate releases
3569dcd
# git clone git://git.mageia.org/software/build-system/mgarepo; cd mgarepo; git reset --hard %{version} && make dist
3569dcd
Source:  %{name}-%{version}.tar.xz
d0f9dca
1f9ed62
# Local fixes to upstream
1f9ed62
Patch0500: 0001-Fix-iterating-on-log-entries-with-Python-3.9.patch
1f9ed62
d0f9dca
# Fedora-specific patches
d0f9dca
# Mageia's urpmi is not available in Fedora, so we force DNF for buildrpm command
d0f9dca
Patch1000: 0001-buildrpm-Always-use-DNF.patch
d0f9dca
Michael Scherer 08401c7
License: GPLv2+
3569dcd
URL: http://gitweb.mageia.org/software/build-system/mgarepo/
3569dcd
BuildRequires: python3-devel
ef01f40
BuildRequires: python3-setuptools
Michael Scherer 08401c7
Requires: subversion
Michael Scherer 08401c7
Requires: openssh-clients
aba5ccf
Requires: python3-rpm
1ff1eb5
Requires: python3-PyGithub >= 1.27.1
3569dcd
Requires: python3-httplib2
Michael Scherer 08401c7
Requires: wget
Michael Scherer 08401c7
BuildArch: noarch
Michael Scherer 08401c7
Michael Scherer 08401c7
%description
Michael Scherer 08401c7
Tools for Mageia repository access and management.
Michael Scherer 08401c7
Michael Scherer 08401c7
It is a fork of repsys :
Michael Scherer 08401c7
<http://wiki.mandriva.com/en/Development/Packaging/Tools/repsys>
Michael Scherer 08401c7
2ee80c8
%package ldap
2ee80c8
Summary: Plugin for retrieving maintainer information from LDAP for mgarepo
8aa830f
Requires: %{name} = %{version}-%{release}
2ee80c8
Requires: python3-ldap3
2ee80c8
2ee80c8
%description ldap
2ee80c8
A mgarepo plugin that allows retrieving maintainer information shown in
2ee80c8
changelogs from a LDAP server.
2ee80c8
2ee80c8
See mgarepo --help-plugin ldapusers for more information.
2ee80c8
2ee80c8
Michael Scherer 08401c7
%prep
d0f9dca
%autosetup -p1
Michael Scherer 08401c7
aba5ccf
# Fix requires for RPM Python bindings
aba5ccf
sed -e "s/rpm-python/rpm/" -i setup.py
aba5ccf
Michael Scherer 08401c7
%build
3569dcd
%py3_build
Michael Scherer 08401c7
Michael Scherer 08401c7
%install
3569dcd
%py3_install
Michael Scherer 08401c7
Michael Scherer 08401c7
%files
8aa830f
%doc README.BINREPO CHANGES %{name}-example.conf
2ee80c8
%attr(0644,-,-) %config(noreplace) %{_sysconfdir}/%{name}.conf
Michael Scherer 08401c7
%{_bindir}/%{name}
Michael Scherer 08401c7
%{_bindir}/%{name}-ssh
Michael Scherer 08401c7
%{_datadir}/%{name}
Michael Scherer 08401c7
%{_mandir}/*/*
3569dcd
%{python3_sitelib}/%{Uname}
3569dcd
%exclude %{python3_sitelib}/%{Uname}/plugins/ldapusers.py*
3569dcd
%exclude %{python3_sitelib}/%{Uname}/plugins/__pycache__/__init__*
3569dcd
%exclude %{python3_sitelib}/%{Uname}/plugins/__pycache__/ldapusers*
3569dcd
%{python3_sitelib}/*.egg-info
3569dcd
%{_datadir}/bash-completion/completions/%{name}
3569dcd
2ee80c8
%files ldap
2ee80c8
%doc README.LDAP
2ee80c8
%{python3_sitelib}/%{Uname}/plugins/ldapusers.py*
2ee80c8
%{python3_sitelib}/%{Uname}/plugins/__pycache__/__init__*
2ee80c8
%{python3_sitelib}/%{Uname}/plugins/__pycache__/ldapusers*
2ee80c8
Michael Scherer 08401c7
Michael Scherer 08401c7
%changelog
1f9ed62
* Sun Mar 14 2021 Neal Gompa <ngompa13@gmail.com> - 1.13.2-18
1f9ed62
- Add patch to fix iterating on log entries with Python 3.9+
1f9ed62
6633619
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.13.2-17
6633619
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
6633619
ef01f40
* Mon Oct 05 2020 Neal Gompa <ngompa13@gmail.com> - 1.13.2-16
ef01f40
- Add BR python3-setuptools
ef01f40
0e611f1
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.13.2-15
0e611f1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
0e611f1
43e34f5
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.13.2-14
43e34f5
- Rebuilt for Python 3.9
43e34f5
b2f6472
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.13.2-13
b2f6472
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
b2f6472
4cb5171
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.13.2-12
4cb5171
- Rebuilt for Python 3.8.0rc1 (#1748018)
4cb5171
e951364
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.13.2-11
e951364
- Rebuilt for Python 3.8
e951364
e59313d
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.13.2-10
e59313d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
e59313d
aba5ccf
* Fri Apr 26 2019 Neal Gompa <ngompa13@gmail.com> - 1.13.2-9
aba5ccf
- Fix requires on RPM Python bindings
aba5ccf
- Fix older changelog entries to use full author names
aba5ccf
1e0d05c
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.13.2-8
1e0d05c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
1e0d05c
871a3c4
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.13.2-7
871a3c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
871a3c4
9323081
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.13.2-6
9323081
- Rebuilt for Python 3.7
9323081
42b3c80
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.13.2-5
42b3c80
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
42b3c80
6e8d6c0
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.13.2-4
6e8d6c0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
6e8d6c0
3c26c75
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.13.2-3
3c26c75
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
3c26c75
bf48116
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.13.2-2
bf48116
- Rebuild for Python 3.6
bf48116
460fd1e
* Mon Oct 10 2016 Neal Gompa <ngompa13@gmail.com> - 1.13.2-1
460fd1e
- Update to 1.13.2
460fd1e
d0f9dca
* Sat Oct 08 2016 Neal Gompa <ngompa13@gmail.com> - 1.13.1-2
d0f9dca
- Add patch to remove buildrpm's call to urpmi, as we only have DNF
d0f9dca
1ff1eb5
* Sat Oct 08 2016 Neal Gompa <ngompa13@gmail.com> - 1.13.1-1
1ff1eb5
- Update to 1.13.1
1ff1eb5
161c8e1
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.3-2
161c8e1
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
161c8e1
8aa830f
* Tue Jun 14 2016 Neal Gompa <ngompa13@gmail.com> - 1.12.3-1
8aa830f
- Update to 1.12.3
8aa830f
aba5ccf
* Sat Feb 20 2016 Neal Gompa <ngompa13@gmail.com> - 1.11.9-1
2ee80c8
- Update to 1.11.9
2ee80c8
- Remove redundant actions in install section
2ee80c8
- Add mgarepo-ldap subpackage since plugin has been ported
2ee80c8
8db2d19
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.6-2
8db2d19
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
8db2d19
aba5ccf
* Fri Jan 08 2016 Neal Gompa <ngompa13@gmail.com> - 1.11.6-1
3569dcd
- Update to 1.11.6 (switches to Python 3)
3569dcd
2f0279d
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.2-6
2f0279d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
2f0279d
9430e62
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.2-5
9430e62
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
9430e62
98cfef5
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.2-4
98cfef5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
98cfef5
8b81388
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.2-3
8b81388
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
8b81388
935b138
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.2-2
935b138
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
935b138
Michael Scherer 08401c7
* Sat Nov 26 2011 Michael Scherer <misc@fedoraproject.org> 1.10.2-1
Michael Scherer 08401c7
* Adapt to Fedora
Michael Scherer 08401c7
aba5ccf
* Thu Nov 24 2011 Nicolas Vigier <boklm@mageia.org> 1.10.2-1.mga2
Michael Scherer 08401c7
+ Revision: 171653
Michael Scherer 08401c7
- version 1.10.2
Michael Scherer 08401c7
- add require on wget
Michael Scherer 08401c7
- version 1.10.1
Michael Scherer 08401c7
- fix require on python-httplib
Michael Scherer 08401c7
- add require on httplib2
Michael Scherer 08401c7
- add python-devel as build require
Michael Scherer 08401c7
- version 1.10.0
Michael Scherer 08401c7
aba5ccf
* Tue Jul 12 2011 Nicolas Vigier <boklm@mageia.org> 1.9.11-1.mga2
Michael Scherer 08401c7
+ Revision: 123440
Michael Scherer 08401c7
- Version 1.9.11: add maintdb command
Michael Scherer 08401c7
aba5ccf
  + Ahmad Samir <ahmad@mageia.org>
aba5ccf
  - Fix the URL tag
Michael Scherer 08401c7
aba5ccf
* Wed May 25 2011 Nicolas Vigier <boklm@mageia.org> 1.9.10-1.mga1
Michael Scherer 08401c7
+ Revision: 100367
Michael Scherer 08401c7
- version 1.9.10
Michael Scherer 08401c7
aba5ccf
  + Michael Scherer <misc@mageia.org>
aba5ccf
  - add source url
aba5ccf
  - remove requires on python-devel ( should not be needed )
aba5ccf
  - do not add version requires on mgarepo ( as all version should be ok )
aba5ccf
  - fix missing defattr on ldap plugin ( rpmlint )
Michael Scherer 08401c7
aba5ccf
* Thu Mar 10 2011 Michael Scherer <misc@mageia.org> 1.9.9-2.mga1
Michael Scherer 08401c7
+ Revision: 67691
Michael Scherer 08401c7
- fix License
Michael Scherer 08401c7
- use newer and upstream python macros
Michael Scherer 08401c7
- clean the spec by removing mention of old mandriva hack
Michael Scherer 08401c7
- remove old python macros
Michael Scherer 08401c7
aba5ccf
* Sat Feb 26 2011 Nicolas Vigier <boklm@mageia.org> 1.9.9-1.mga1
Michael Scherer 08401c7
+ Revision: 60148
Michael Scherer 08401c7
- version 1.9.9
Michael Scherer 08401c7
aba5ccf
* Fri Jan 28 2011 Nicolas Vigier <boklm@mageia.org> 1.9.8-1.mga1
Michael Scherer 08401c7
+ Revision: 42505
Michael Scherer 08401c7
- version 1.9.8
Michael Scherer 08401c7
aba5ccf
* Thu Jan 27 2011 Nicolas Vigier <boklm@mageia.org> 1.9.7-1.mga1
Michael Scherer 08401c7
+ Revision: 42188
Michael Scherer 08401c7
- version 1.9.7
Michael Scherer 08401c7
aba5ccf
* Mon Jan 17 2011 Olivier Blin <blino@mageia.org> 1.9.6-2.mga1
Michael Scherer 08401c7
+ Revision: 20916
Michael Scherer 08401c7
- rebuild with new python
Michael Scherer 08401c7
aba5ccf
* Thu Jan 13 2011 Nicolas Vigier <boklm@mageia.org> 1.9.6-1.mga1
Michael Scherer 08401c7
+ Revision: 7984
Michael Scherer 08401c7
- version 1.9.6
Michael Scherer 08401c7
aba5ccf
* Wed Jan 12 2011 Olivier Blin <blino@mageia.org> 1.9.5-1.mga1
Michael Scherer 08401c7
+ Revision: 6829
Michael Scherer 08401c7
- install as mgarepo, not repsys
Michael Scherer 08401c7
- do not conflict with repsys anymore
Michael Scherer 08401c7
- 1.9.5
Michael Scherer 08401c7
aba5ccf
  + Nicolas Vigier <boklm@mageia.org>
aba5ccf
  - mgarepo version 1.9.4
aba5ccf
  - add conflict with repsys
aba5ccf
  - cleaning
aba5ccf
  - repsys package renamed to mgarepo
aba5ccf
  - version 1.9.2
Michael Scherer 08401c7
aba5ccf
  + Michael Scherer <misc@mageia.org>
aba5ccf
  - remove rest of Mandriva reference
Michael Scherer 08401c7
aba5ccf
* Tue Jan 04 2011 Nicolas Vigier <boklm@mageia.org> 1:1.9.1-1mdv2010.0
Michael Scherer 08401c7
+ Revision: 120
Michael Scherer 08401c7
- version 1.9.1
Michael Scherer 08401c7
- version 1.9
Michael Scherer 08401c7
- add patch from blino to enable binrepo in create-srpm
Michael Scherer 08401c7
- imported package repsys