%global modname fedimg
Name: python-fedimg
Version: 1.0.1
Release: 3%{?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: python2-setuptools
BuildRequires: python2-nose
BuildRequires: python2-mock
BuildRequires: fedmsg
BuildRequires: python2-libcloud
BuildRequires: python2-paramiko
BuildRequires: python2-fedfind
%global _description\
A service that listens to the Fedmsg bus and automatically uploads built Fedora\
cloud images to internal and external cloud providers
%description %_description
%package -n python2-fedimg
Summary: %summary
Requires: fedmsg
Requires: python2-libcloud
Requires: python2-paramiko
Requires: python2-fedfind
Requires: python2-toml
%{?python_provide:%python_provide python2-fedimg}
%description -n python2-fedimg %_description
%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/
%{__mkdir} -p %{buildroot}%{_sysconfdir}/%{modname}/
%{__cp} -p fedimg-conf.toml.example %{buildroot}%{_sysconfdir}/%{modname}/fedimg-conf.toml
%{__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 -n python2-fedimg
%doc docs/ README.md LICENSE
%config(noreplace) %{_sysconfdir}/%{modname}/fedimg-conf.toml
%config(noreplace) %{_sysconfdir}/fedmsg.d/fedimg.py*
%{python_sitelib}/%{modname}/
%{python_sitelib}/%{modname}-%{version}*
%changelog
* Tue Feb 20 2018 Sayan Chowdhury <sayanchowdhury@fedoraproject.org> 1.0.1-3
- Fix the bogus date warning
* Tue Feb 20 2018 Sayan Chowdhury <sayanchowdhury@fedoraproject.org> 1.0.1-2
- Add the missing python2-toml dependency
* Mon Feb 12 2018 Sayan Chowdhury <sayanchowdhury@fedoraproject.org> 1.0.1-1
- Release 1.0.1
* Mon Feb 12 2018 Sayan Chowdhury <sayanchowdhury@fedoraproject.org> - 1.0.0-1
- Release 1.0.0
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.5-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.7.5-3
- Python 2 binary package renamed to python2-fedimg
See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
* 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