commit b66238ff6973b3cf73d6fdb375911d77f663a18e Author: overweight <5324761+overweight@user.noreply.gitee.com> Date: Mon Sep 30 10:32:06 2019 -0400 Package init diff --git a/Babel-2.6.0.tar.gz b/Babel-2.6.0.tar.gz new file mode 100644 index 0000000..2735874 Binary files /dev/null and b/Babel-2.6.0.tar.gz differ diff --git a/babel-2.3.4-remove-pytz-version.patch b/babel-2.3.4-remove-pytz-version.patch new file mode 100644 index 0000000..9025179 --- /dev/null +++ b/babel-2.3.4-remove-pytz-version.patch @@ -0,0 +1,15 @@ +diff -up Babel-2.3.4/setup.py.orig Babel-2.3.4/setup.py +--- Babel-2.3.4/setup.py.orig 2016-04-11 11:58:25.000000000 +0200 ++++ Babel-2.3.4/setup.py 2016-04-25 13:35:54.458765892 +0200 +@@ -59,7 +59,10 @@ setup( + # This version identifier is currently necessary as + # pytz otherwise does not install on pip 1.4 or + # higher. +- 'pytz>=0a', ++ ### But the version confuses setuptools 8 and higher so remove it in the ++ ### system package ++ #'pytz>=0a', ++ 'pytz', + ], + + cmdclass={'import_cldr': import_cldr}, diff --git a/babel.spec b/babel.spec new file mode 100644 index 0000000..a7bb14d --- /dev/null +++ b/babel.spec @@ -0,0 +1,109 @@ +Name: babel +Version: 2.6.0 +Release: 7 +Summary: Tools for internationalizing and localizing Python applications +License: BSD +URL: http://babel.pocoo.org/ +Source0: https://files.pythonhosted.org/packages/source/B/Babel/Babel-%{version}.tar.gz +Patch0: babel-2.3.4-remove-pytz-version.patch + +BuildArch: noarch + +BuildRequires: gcc git make +BuildRequires: python2-devel python2-setuptools python2-pytz python2-pytest python2-freezegun +BuildRequires: python3-devel python3-setuptools python3-pytz python3-pytest python3-freezegun python3-sphinx + +Requires: python3-babel python3-setuptools + +%description +Babel is an integrated collection of utilities that assist in internationalizing and +localizing Python applications, with an emphasis on web-based applications. + +%package -n python2-babel +Summary: Library for internationalizing Python applications +Requires: python2-setuptools +Requires: python2-pytz + +%description -n python2-babel +Babel is an integrated collection of utilities that assist in internationalizing and +localizing Python applications, with an emphasis on web-based applications. + +%package -n python3-babel +Summary: Library for internationalizing Python applications +Requires: python3-setuptools +Requires: python3-pytz + +%description -n python3-babel +Babel is an integrated collection of utilities that assist in internationalizing and +localizing Python applications, with an emphasis on web-based applications. + +%package help +Summary: Documentation for Babel +Provides: python-babel-doc = %{version}-%{release} +Provides: python2-babel-doc = %{version}-%{release} +Provides: python3-babel-doc = %{version}-%{release} +Provides: babel-doc +Obsoletes: babel-doc + +%description help +Documentation for Babel + +%prep +%autosetup -n Babel-%{version} -p1 -Sgit + +%build +%py2_build +%py3_build + +BUILDDIR="$PWD/built-docs" +rm -rf "$BUILDDIR" +pushd docs +make \ + SPHINXBUILD=sphinx-build-3 \ + BUILDDIR="$BUILDDIR" \ + html +popd +rm -f "$BUILDDIR/html/.buildinfo" + +%install +%py2_install +%py3_install + +%check +%{__python2} -m pytest +%{__python3} -m pytest + +%pre + +%preun + +%post + +%postun + +%files +%doc CHANGES AUTHORS +%license LICENSE +%{_bindir}/pybabel + +%files -n python2-babel +%{python2_sitelib}/Babel-%{version}-py*.egg-info +%{python2_sitelib}/babel + +%files -n python3-babel +%{python3_sitelib}/Babel-%{version}-py*.egg-info +%{python3_sitelib}/babel + +%files help +%doc built-docs/html/* + +%changelog +* Fri Sep 27 2019 chengquan - 2.6.0-7 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:add help package + +* Tue Aug 13 2019 openEuler Buildteam - 2.6.0-6 +- Package init +