[python-fedimg] third try to get this first build going

David Gay oddshocks at fedoraproject.org
Wed Sep 17 21:07:43 UTC 2014


commit 97be1d5b427ac5346b6558ea92bc48f34ecbe9e6
Author: David Gay <oddshocks at riseup.net>
Date:   Wed Sep 17 14:07:08 2014 -0700

    third try to get this first build going

 .gitignore         |    1 +
 python-fedimg.spec |   69 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources            |    1 +
 3 files changed, 71 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..42bd979 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/fedimg-0.2.6.tar.gz
diff --git a/python-fedimg.spec b/python-fedimg.spec
new file mode 100644
index 0000000..242ad00
--- /dev/null
+++ b/python-fedimg.spec
@@ -0,0 +1,69 @@
+%global modname fedimg
+
+Name:               python-fedimg
+Version:            0.2.6
+Release:            1%{?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:      fedmsg
+BuildRequires:      python-libcloud
+BuildRequires:      python-paramiko
+
+Requires:           fedmsg
+Requires:           python-libcloud
+Requires:           python-paramiko
+
+
+%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
+* Wed Sep 17 2014 David Gay <dgay at 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 at redhat.com> - 0.2.5-1
+- initial package for Fedora
diff --git a/sources b/sources
index e69de29..850a68e 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+0605db9bfe03f401395368e7da08960d  fedimg-0.2.6.tar.gz


More information about the scm-commits mailing list