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