[python-bitmath] Initial import (#1076192)

Timothy Bielawa tbielawa at fedoraproject.org
Fri Mar 21 15:13:54 UTC 2014


commit 373b0c442ab20fa79cbffc1db1b1a6cd3eb1ad49
Author: Tim Bielawa <tbielawa at redhat.com>
Date:   Fri Mar 21 11:13:43 2014 -0400

    Initial import (#1076192)

 .gitignore          |    1 +
 python-bitmath.spec |   71 +++++++++++++++++++++++++++++++++++++++++++++++++++
 sources             |    1 +
 3 files changed, 73 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..e8415ad 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/1.0.4-1.tar.gz
diff --git a/python-bitmath.spec b/python-bitmath.spec
new file mode 100644
index 0000000..6c1aef1
--- /dev/null
+++ b/python-bitmath.spec
@@ -0,0 +1,71 @@
+%if 0%{?rhel} && 0%{?rhel} <= 6
+%{!?__python2: %global __python2 /usr/bin/python2}
+%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
+%{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
+%endif
+
+%global _short_name bitmath
+%global _short_release 1
+
+Name: python-bitmath
+Summary: Aids representing and manipulating sizes in various prefix notations
+Version: 1.0.4
+Release: %{_short_release}%{?dist}
+
+Group: Development/Libraries
+License: BSD
+Source0: https://github.com/tbielawa/bitmath/archive/%{version}-%{_short_release}.tar.gz
+Url: https://github.com/tbielawa/bitmath
+
+BuildArch: noarch
+BuildRequires: python2-devel
+
+%description
+bitmath simplifies many facets of interacting with file sizes in
+various units. Examples include: converting between SI and NIST prefix
+units (GiB to kB), converting between units of the same type (SI to
+SI, or NIST to NIST), basic arithmetic operations (subtracting 42KiB
+from 50GiB), and rich comparison operations (1024 Bytes == 1KiB).
+
+In addition to the conversion and math operations, bitmath provides
+human readable representations of values which are suitable for use in
+interactive shells as well as larger scripts and applications.
+
+
+%check
+%{__python2} -m unittest discover
+
+%prep
+%setup -n bitmath-%{version}-%{_short_release} -q
+
+%build
+%{__python2} setup.py build
+
+%install
+%{__python2} setup.py install -O1 --root=$RPM_BUILD_ROOT --record=python-bitmath-files.txt
+
+%files -f python-bitmath-files.txt
+%dir %{python2_sitelib}/%{_short_name}
+%doc README.md LICENSE
+
+%changelog
+* Thu Mar 20 2014 Tim Bielawa <tbielawa at redhat.com> - 1.0.4-1
+- Plenty of documentation updates
+- Fix some issues with mix-type math operations.
+- More unit tests!
+
+* Mon Mar 17 2014 Tim Bielawa <tbielawa at redhat.com> - 1.0.3-1
+- Big issue converting NIST to SI
+- Also, retroactively remove unexpanded macros from changelog
+
+* Thu Mar 13 2014 Tim Bielawa <tbielawa at redhat.com> - 1.0.2-3
+- Bump release for new archive format
+
+* Thu Mar 13 2014 Tim Bielawa <tbielawa at redhat.com> - 1.0.2-2
+- Bump spec for proper Source0 versioning
+
+* Thu Mar 13 2014 Tim Bielawa <tbielawa at redhat.com> - 1.0.2-1
+- First real solid release with full functionality and documentation
+
+* Tue Mar 11 2014 Tim Bielawa <tbielawa at redhat.com> - 1.0.0-1
+- First release
diff --git a/sources b/sources
index e69de29..6d0bb9f 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+d25cc0a8ca322bcf72af0fc6d80b527e  1.0.4-1.tar.gz


More information about the scm-commits mailing list