[python-dopy] Initial import (#1019824)

Ralph Bean ralph at fedoraproject.org
Sun Oct 20 12:42:05 UTC 2013


commit f8dd7b88ef4665b1b6914222d78380f923f52b05
Author: Ralph Bean <rbean at redhat.com>
Date:   Sun Oct 20 08:41:53 2013 -0400

    Initial import (#1019824)

 .gitignore       |    1 +
 python-dopy.spec |   58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources          |    1 +
 3 files changed, 60 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..36c468a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/dopy-0.2.2.tar.gz
diff --git a/python-dopy.spec b/python-dopy.spec
new file mode 100644
index 0000000..b00da82
--- /dev/null
+++ b/python-dopy.spec
@@ -0,0 +1,58 @@
+%global modname dopy
+
+Name:               python-dopy
+Version:            0.2.2
+Release:            3%{?dist}
+Summary:            Python client for the Digital Ocean API
+
+Group:              Development/Libraries
+License:            MIT
+URL:                http://pypi.python.org/pypi/dopy
+Source0:            https://pypi.python.org/packages/source/d/%{modname}/%{modname}-%{version}.tar.gz
+
+BuildArch:          noarch
+
+BuildRequires:      python2-devel
+BuildRequires:      python-setuptools
+BuildRequires:      python-requests
+
+Requires:           python-requests
+
+%description
+Digital Ocean API Python Wrapper
+
+%prep
+%setup -q -n %{modname}-%{version}
+
+# Remove any shebangs
+for lib in %{modname}/*.py; do
+ sed '1{/^#!.*/d}' $lib > $lib.new && \
+ touch -r $lib $lib.new &&            \
+ mv $lib.new $lib
+done
+
+# Remove bundled egg-info in case it exists
+rm -rf %{modname}.egg-info
+
+%build
+%{__python} setup.py build
+
+%install
+%{__python} setup.py install -O1 --skip-build --root=%{buildroot}
+
+%files
+%doc README.rst LICENSE CHANGES
+%{python_sitelib}/%{modname}/
+%{python_sitelib}/%{modname}-%{version}*
+
+%changelog
+* Fri Oct 18 2013 Ralph Bean <rbean at redhat.com> - 0.2.2-3
+- Correctly remove shebangs this time.
+- Include docs.
+
+* Thu Oct 17 2013 Ralph Bean <rbean at redhat.com> - 0.2.2-2
+- Add buildreq on python-setuptools.
+- Remove shebangs from lib files.
+
+* Wed Oct 16 2013 Ralph Bean <rbean at redhat.com> - 0.2.2-1
+- initial package for Fedora
diff --git a/sources b/sources
index e69de29..586e55d 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+69572c0bf5b1a0edecf8cf5c4b4b71c4  dopy-0.2.2.tar.gz


More information about the scm-commits mailing list