diff --git a/constantly-15.1.0.tar.gz b/constantly-15.1.0.tar.gz new file mode 100644 index 0000000..e5d759e Binary files /dev/null and b/constantly-15.1.0.tar.gz differ diff --git a/python-constantly.spec b/python-constantly.spec new file mode 100644 index 0000000..d39dcd5 --- /dev/null +++ b/python-constantly.spec @@ -0,0 +1,60 @@ +Name: python-constantly +Version: 15.1.0 +Release: 4 +Summary: Symbolic constants in Python +License: MIT +URL: https://github.com/twisted/constantly +Source0: https://files.pythonhosted.org/packages/source/c/constantly/constantly-15.1.0.tar.gz +BuildArch: noarch +BuildRequires: python2-devel python2dist(setuptools) python3-devel python3dist(setuptools) + +%{?python_enable_dependency_generator} + +%description +A library that provides symbolic constant support. It includes +collections and constants with text, numeric, and bit flag values. +Originally twisted.python.constants from the Twisted project. + +%package -n python2-constantly +Summary: Symbolic constants in Python +%{?python_provide:%python_provide python2-constantly} + +%description -n python2-constantly +A library that provides symbolic constant support. It includes +collections and constants with text, numeric, and bit flag values. +Originally twisted.python.constants from the Twisted project. + +%package -n python3-constantly +Summary: Symbolic constants in Python +%{?python_provide:%python_provide python3-constantly} + +%description -n python3-constantly +A library that provides symbolic constant support. It includes +collections and constants with text, numeric, and bit flag values. +Originally twisted.python.constants from the Twisted project. + +%prep +%autosetup -n constantly-15.1.0 +rm -rf constantly.egg-info + +%build +%py2_build +%py3_build + +%install +%py2_install +%py3_install + +%files -n python2-constantly +%doc README.rst LICENSE +%{python2_sitelib}/constantly +%{python2_sitelib}/constantly-15.1.0-py?.?.egg-info + +%files -n python3-constantly +%doc README.rst LICENSE +%{python3_sitelib}/constantly +%{python3_sitelib}/constantly-15.1.0-py?.?.egg-info + +%changelog +* Fri Feb 21 2020 liangdong - 15.1.0-4 +- Package init