[python-hcs_utils] Initial import

helloworld1 helloworld1 at fedoraproject.org
Mon Aug 23 21:44:02 UTC 2010


commit 9402d09320411faf893dd3c95d6194e14d178c20
Author: Liberty <mrlhwliberty at gmail.com>
Date:   Mon Aug 23 17:43:55 2010 -0400

    Initial import

 .gitignore            |    1 +
 python-hcs_utils.spec |   65 +++++++++++++++++++++++++++++++++++++++++++++++++
 sources               |    1 +
 3 files changed, 67 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..c37fe7f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/hcs_utils-1.1.1.tar.gz
diff --git a/python-hcs_utils.spec b/python-hcs_utils.spec
new file mode 100644
index 0000000..a7c6f7c
--- /dev/null
+++ b/python-hcs_utils.spec
@@ -0,0 +1,65 @@
+%global srcname hcs_utils
+
+Name:		python-hcs_utils
+Version:	1.1.1
+Release:	3%{?dist}
+Summary:	A collection of useful python snippets for hcs's projects
+
+Group:		Development/Libraries
+License:	ISC
+URL:		http://pypi.python.org/pypi/hcs_utils
+Source0:	http://pypi.python.org/packages/source/h/%{srcname}/%{srcname}-%{version}.tar.gz
+
+BuildArch:	noarch
+
+BuildRequires:	python2-devel
+BuildRequires:	python-setuptools
+
+
+%description
+This collection of python snippets includes:
+* memoize decorator (caching)
+* a storage class wrapping a dict.
+* unittest assert functions.
+* Functions for handling large JSON documents.
+* list_dir(path) –> (dirnames, filenames)
+* PID file locking
+* A synchronization decorator
+
+
+%prep
+%setup -q -n %{srcname}-%{version}
+
+
+%build
+%{__python} setup.py build
+
+%install
+%{__python} setup.py install --skip-build --root %{buildroot}
+
+# Remove shebang
+for lib in `find %{buildroot}%{python_sitelib}/hcs_utils/ -name '*.py'`; do
+	sed '/\/usr\/bin\/env/d' $lib > $lib.new &&
+	touch -r $lib $lib.new &&
+	mv $lib.new $lib
+done
+
+%files
+%defattr(-,root,root,-)
+%doc README.txt IDEAS.txt HACKING.txt NEWS.txt
+%{python_sitelib}/hcs_utils*
+
+
+
+%changelog
+* Fri Aug 6 2010 Howard Ning <mrlhwliberty at gmail.com> - 1.1.1-3
+- BuildRequires python-setuptools 
+
+* Wed Aug 4 2010 Howard Ning <mrlhwliberty at gmail.com> - 1.1.1-2
+- Clean up the spec file 
+
+* Sun Jul 25 2010 Howard Ning <mrlhwliberty at gmail.com> - 1.1.1-1
+- Goobook requires version 1.1.1.
+
+* Tue Jun 22 2010 Howard Ning <mrlhwliberty at gmail.com> - 1.2-0.1.rc4
+- Initial Release
diff --git a/sources b/sources
index e69de29..3f4eab3 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+1add7548e0cf423b363fdd4e2ccafbd5  hcs_utils-1.1.1.tar.gz


More information about the scm-commits mailing list