Michael Scherer 08401c7
%define Uname MgaRepo
Michael Scherer 08401c7
Michael Scherer 08401c7
Name: mgarepo
Michael Scherer 08401c7
Version: 1.10.2
9430e62
Release: 5%{?dist}
Michael Scherer 08401c7
Summary: Tools for Mageia repository access and management
Michael Scherer 08401c7
Group:   Applications/System
Michael Scherer 08401c7
Source:  http://distrib-coffee.ipsl.jussieu.fr/pub/linux/Mageia/software/%{name}/%{version}/%{name}-%{version}.tar.bz2
Michael Scherer 08401c7
License: GPLv2+
Michael Scherer 08401c7
URL: http://svn.mageia.org/soft/build_system/mgarepo/
Michael Scherer 08401c7
BuildRequires: python2-devel
Michael Scherer 08401c7
Requires: python-cheetah
Michael Scherer 08401c7
Requires: subversion
Michael Scherer 08401c7
Requires: openssh-clients
Michael Scherer 08401c7
Requires: rpm-python
Michael Scherer 08401c7
Requires: python-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
Michael Scherer 08401c7
%prep
Michael Scherer 08401c7
%setup -q
Michael Scherer 08401c7
Michael Scherer 08401c7
%build
Michael Scherer 08401c7
python setup.py build
Michael Scherer 08401c7
Michael Scherer 08401c7
%install
Michael Scherer 08401c7
Michael Scherer 08401c7
python setup.py install --root=%{buildroot}
Michael Scherer 08401c7
Michael Scherer 08401c7
perl -pi -e 's|#!/usr/bin/python.*||' $(find %{buildroot}/%{python_sitelib}/ -name '*.py')
Michael Scherer 08401c7
Michael Scherer 08401c7
mkdir -p %{buildroot}%{_sysconfdir}
Michael Scherer 08401c7
mkdir -p %{buildroot}%{_datadir}/%{name}/
Michael Scherer 08401c7
mkdir -p %{buildroot}%{_bindir}/
Michael Scherer 08401c7
install -m 0755 create-srpm %{buildroot}%{_datadir}/%{name}/create-srpm
Michael Scherer 08401c7
install -m 0755 %{name}-ssh %{buildroot}%{_bindir}/%{name}-ssh
Michael Scherer 08401c7
install -m 0644 %{name}.conf %{buildroot}%{_sysconfdir}
Michael Scherer 08401c7
Michael Scherer 08401c7
%files
Michael Scherer 08401c7
%doc CHANGES %{name}-example.conf
Michael Scherer 08401c7
%attr(0644,root,root) %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}/*/*
Michael Scherer 08401c7
%{python_sitelib}/%{Uname}
Michael Scherer 08401c7
%exclude %{python_sitelib}/%{Uname}/plugins/ldapusers.py*
Michael Scherer 08401c7
%{python_sitelib}/*.egg-info
Michael Scherer 08401c7
Michael Scherer 08401c7
%changelog
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
Michael Scherer 08401c7
* Thu Nov 24 2011 boklm <boklm> 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
Michael Scherer 08401c7
* Tue Jul 12 2011 boklm <boklm> 1.9.11-1.mga2
Michael Scherer 08401c7
+ Revision: 123440
Michael Scherer 08401c7
- Version 1.9.11: add maintdb command
Michael Scherer 08401c7
Michael Scherer 08401c7
  + ahmad <ahmad>
Michael Scherer 08401c7
    - Fix the URL tag
Michael Scherer 08401c7
Michael Scherer 08401c7
* Wed May 25 2011 boklm <boklm> 1.9.10-1.mga1
Michael Scherer 08401c7
+ Revision: 100367
Michael Scherer 08401c7
- version 1.9.10
Michael Scherer 08401c7
Michael Scherer 08401c7
  + misc <misc>
Michael Scherer 08401c7
    - add source url
Michael Scherer 08401c7
    - remove requires on python-devel ( should not be needed )
Michael Scherer 08401c7
    - do not add version requires on mgarepo ( as all version should be ok )
Michael Scherer 08401c7
    - fix missing defattr on ldap plugin ( rpmlint )
Michael Scherer 08401c7
Michael Scherer 08401c7
* Thu Mar 10 2011 misc <misc> 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
Michael Scherer 08401c7
* Sat Feb 26 2011 boklm <boklm> 1.9.9-1.mga1
Michael Scherer 08401c7
+ Revision: 60148
Michael Scherer 08401c7
- version 1.9.9
Michael Scherer 08401c7
Michael Scherer 08401c7
* Fri Jan 28 2011 boklm <boklm> 1.9.8-1.mga1
Michael Scherer 08401c7
+ Revision: 42505
Michael Scherer 08401c7
- version 1.9.8
Michael Scherer 08401c7
Michael Scherer 08401c7
* Thu Jan 27 2011 boklm <boklm> 1.9.7-1.mga1
Michael Scherer 08401c7
+ Revision: 42188
Michael Scherer 08401c7
- version 1.9.7
Michael Scherer 08401c7
Michael Scherer 08401c7
* Mon Jan 17 2011 blino <blino> 1.9.6-2.mga1
Michael Scherer 08401c7
+ Revision: 20916
Michael Scherer 08401c7
- rebuild with new python
Michael Scherer 08401c7
Michael Scherer 08401c7
* Thu Jan 13 2011 boklm <boklm> 1.9.6-1.mga1
Michael Scherer 08401c7
+ Revision: 7984
Michael Scherer 08401c7
- version 1.9.6
Michael Scherer 08401c7
Michael Scherer 08401c7
* Wed Jan 12 2011 blino <blino> 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
Michael Scherer 08401c7
  + boklm <boklm>
Michael Scherer 08401c7
    - mgarepo version 1.9.4
Michael Scherer 08401c7
    - add conflict with repsys
Michael Scherer 08401c7
    - cleaning
Michael Scherer 08401c7
    - repsys package renamed to mgarepo
Michael Scherer 08401c7
    - version 1.9.2
Michael Scherer 08401c7
Michael Scherer 08401c7
  + misc <misc>
Michael Scherer 08401c7
    - remove rest of Mandriva reference
Michael Scherer 08401c7
Michael Scherer 08401c7
* Tue Jan 04 2011 boklm <boklm> 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
Michael Scherer 08401c7