%global modname fedimg
Name: python-fedimg
Version: 0.7.5
Release: 2%{?dist}
Summary: Automatically upload Fedora Cloud images to cloud providers
Group: Development/Libraries
License: AGPLv3+
URL: http://pypi.python.org/pypi/fedimg
Source0: http://pypi.python.org/packages/source/f/%{modname}/%{modname}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python2-devel
BuildRequires: python-setuptools
BuildRequires: python-nose
BuildRequires: python-mock
BuildRequires: fedmsg
BuildRequires: python-libcloud
BuildRequires: python-paramiko
BuildRequires: python2-fedfind
Requires: fedmsg
Requires: python-libcloud
Requires: python-paramiko
Requires: python2-fedfind
%description
A service that listens to the Fedmsg bus and automatically uploads built Fedora
cloud images to internal and external cloud providers
%prep
%setup -q -n %{modname}-%{version}
# Remove bundled egg-info in case it exists
rm -rf %{modname}.egg-info
%build
%{__python} setup.py build
%install
%{__mkdir} -p %{buildroot}%{_sysconfdir}/fedmsg.d/
%{__cp} -p fedimg.cfg.example %{buildroot}%{_sysconfdir}/fedimg.cfg
%{__cp} -p fedmsg.d/fedimg.py %{buildroot}%{_sysconfdir}/fedmsg.d/.
%{__python} setup.py install -O1 --skip-build --root=%{buildroot}
%check
%{__python} setup.py test
%files
%doc docs/ README.md LICENSE
%config(noreplace) %{_sysconfdir}/fedimg.cfg
%config(noreplace) %{_sysconfdir}/fedmsg.d/fedimg.py*
%{python_sitelib}/%{modname}/
%{python_sitelib}/%{modname}-%{version}*
%changelog
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.5-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Thu Jul 06 2017 Sayan Chowdhury <sayanchowdhury@fedoraproject.org> - 0.7.5-1
- Updates to 0.7.5
* Mon Jun 26 2017 Sayan Chowdhury <sayanchowdhury@fedoraproject.org> - 0.7.4-1
- Updates to 0.7.4
* Mon Jun 26 2017 Sayan Chowdhury <sayanchowdhury@fedoraproject.org> - 0.7.3-2
- Bump the spec release.
* Sun Jun 25 2017 Sayan Chowdhury <sayanchowdhury@fedoraproject.org> - 0.7.3-1
- Updates to 0.7.3
* Thu Jun 22 2017 Sayan Chowdhury <sayanchowdhury@fedoraproject.org> - 0.7.2-1
- Updates to 0.7.2
* Fri Jun 09 2017 Sayan Chowdhury <sayanchowdhury@fedoraproject.org> - 0.7.1-1
- Updates to 0.7.1
* Thu May 04 2017 Sayan Chowdhury <sayanchowdhury@fedoraproject.org> - 0.7-3
- Change dependency fedfind to python2-fedfind
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Mon Aug 29 2016 Sayan Chowdhury <sayanchowdhury@fedoraproject.org> - 0.7-1
- Migrate to compose-based uploading
- Changes to logging
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.3-3
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Fri Oct 16 2015 Ralph Bean <rbean@redhat.com> - 0.6.3-1
- Re-order start/stop fedmsg messages.
- Fix libcloud ec2 interface to support eu-central-1.
* Thu Aug 06 2015 Ralph Bean <rbean@redhat.com> - 0.6.2-1
- latest release fixes koji url bug.
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Wed May 20 2015 David Gay <dgay@redhat.com> - 0.6.1-1
- new release
* Fri Apr 24 2015 David Gay <dgay@redhat.com> - 0.6.0-1
- new release
* Thu Mar 12 2015 David Gay <dgay@redhat.com> - 0.5.0-1
- new release
* Mon Jan 26 2015 David Gay <dgay@redhat.com> - 0.4.0-1
- new release
* Sun Dec 07 2014 David Gay <dgay@redhat.com> - 0.3.2-1
- new release
* Sat Dec 06 2014 David Gay <dgay@redhat.com> - 0.3.1-1
- new Fedora release
- add python-mock to buildrequires
* Wed Sep 17 2014 David Gay <dgay@redhat.com> - 0.2.6-1
- new version cut after package review
- use proper buildroot macro in spec file
- preserve file timestamps when copying in spec file
- do not make library files executable, and don't give them shebangs
- add license headers to all Python files
* Tue Sep 16 2014 David Gay <dgay@redhat.com> - 0.2.5-1
- initial package for Fedora