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