blob: 3c01afb1a08a8af48554b8c7cba559d30c30360f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
|
%bcond_with bootstrap
Name: babel
Version: 2.17.0
Release: 1
Summary: Tools for internationalizing and localizing Python applications
License: BSD-3-Clause
URL: https://babel.pocoo.org/
Source0: https://files.pythonhosted.org/packages/source/b/babel/babel-%{version}.tar.gz
BuildArch: noarch
BuildRequires: gcc make glibc-langpack-en
BuildRequires: python3-devel python3-setuptools
%if !%{with bootstrap}
BuildRequires: python3-pytz python3-pytest python3-freezegun python3-sphinx
%endif
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 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.
%if !%{with bootstrap}
%package help
Summary: Documentation for Babel
Provides: python-babel-doc = %{version}-%{release}
Provides: python3-babel-doc = %{version}-%{release}
Provides: babel-doc
Obsoletes: babel-doc < %{version}-%{release}
%description help
Documentation for Babel
%endif
%prep
%autosetup -n babel-%{version} -p1
%build
%py3_build
BUILDDIR="$PWD/built-docs"
rm -rf "$BUILDDIR"
%if !%{with bootstrap}
pushd docs
make \
SPHINXBUILD=sphinx-build-3 \
BUILDDIR="$BUILDDIR" \
html
popd
rm -f "$BUILDDIR/html/.buildinfo"
%endif
%install
%py3_install
%check
export TZ=UTC
%if !%{with bootstrap}
%pytest \
--ignore tests/test_dates.py --ignore tests/messages/test_frontend.py --ignore tests/messages/test_plurals.py
%endif
%files
%doc CHANGES.rst AUTHORS
%license LICENSE
%{_bindir}/pybabel
%files -n python3-babel
%{python3_sitelib}/babel-%{version}-py*.egg-info
%{python3_sitelib}/babel
%if !%{with bootstrap}
%files help
%doc built-docs/html/*
%endif
%changelog
* Tue Feb 04 2025 Funda Wang <fundawang@yeah.net> - 2.17.0-1
- update to 2.17.0
* Thu Oct 31 2024 Funda Wang <fundawang@yeah.net> - 2.16.0-1
- update to 2.16.0
* Thu Jul 11 2024 dillon chen <dillon.chen@gmail.com> - 2.15.0-1
- update to 2.15.0
* Mon Aug 7 2023 zhoupengcheng <zhoupengcheng11@huawei.com> - 2.12.1-1
- update to 2.12.1
- backport two patches from upstream to fix testcase failure after upgrade 2.12.1
backport-Freeze-format_time-tests-to-a-specific-date-to-fix-t.patch
backport-Use-aware-UTC-datetimes-internally.patch
* Thu Jan 19 2023 zhangnan <zhangnan134@huawei.com> - 2.11.0-1
- update to 2.11.0
* Sat Oct 22 2022 yanglongkang <yanglongkang@h-partners.com> - 2.10.3-2
- fix rpmbuild warning
* Mon Jul 4 2022 panxiaohe <panxh.life@foxmail.com> - 2.10.3-1
- update to 2.10.3
* Tue Feb 15 2022 yangzhuangzhuang <yangzhuangzhuang1@h-partners.com> - 2.9.1-4
- enable make check
* Fri Dec 3 2021 panxiaohe <panxiaohe@huawei.com> - 2.9.1-3
- add Bootstrap for Python 3.10
* Fri Jul 30 2021 chenyanpanHW <chenyanpan@huawei.com> - 2.9.1-2
- DESC: delete -Sgit from %autosetup, and delete BuildRequires git
* Fri Jul 30 2021 panxiaohe <panxiaohe@huawei.com> - 2.9.1-1
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:update to 2.9.1
* Tue May 11 2021 yangzhuangzhuang <yangzhuangzhuang1@huawei.com> - 2.9.0-2
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:Fix CVE-2021-20095
* Sat Jan 23 2021 zoulin <zoulin13@huawei.com> - 2.9.0-1
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:update to 2.9.0
* Thu Oct 29 2020 yangzhuangzhuang <yangzhuangzhuang1@huawei.com> - 2.8.0-2
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:remove python2
* Mon Jun 29 2020 Liquor <lirui130@huawei.com> - 2.8.0-1
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:update to 2.8.0
* Wed Jun 24 2020 chenditang<chenditang1@huawei.com> - 2.7.0-2
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:fix tests when using Python 3.9a6
* Fri Oct 11 2019 hanzhijun<hanzhijun1@huawei.com> - 2.7.0-1
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:update to 2.7.0
* Fri Sep 27 2019 chengquan<chengquan3@huawei.com> - 2.6.0-7
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:add help package
* Tue Aug 13 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.6.0-6
- Package init
|