Overview

Request 3032 (accepted)

python3-icalendar

Submit package Kolab:16:Testing / python3-icalendar to package Kolab:16 / python3-icalendar

python-icalendar.spec Added
x
 
1
@@ -0,0 +1,250 @@
2
+%if 0%{?fedora} || 0%{?epel} || 0%{?rhel} > 7
3
+%global with_python3 1
4
+%global python3_pkgversion 3
5
+%endif
6
+%if 0%{?rhel} < 8
7
+%global with_python2 1
8
+%endif
9
+
10
+Name:           python-icalendar
11
+Version:        4.0.3
12
+Release:        2%{?dist}
13
+Summary:        Parser/generator of iCalendar files following the RFC 2445
14
+
15
+License:        BSD
16
+URL:            http://pypi.python.org/pypi/icalendar
17
+Source0:        https://github.com/collective/icalendar/archive/%{version}.tar.gz
18
+
19
+BuildArch:      noarch
20
+
21
+%if 0%{?with_python2}
22
+BuildRequires:  python2-devel
23
+BuildRequires:  python-setuptools
24
+BuildRequires:  python2-pytz
25
+BuildRequires:  python2-dateutil
26
+BuildRequires:  python2-hypothesis
27
+BuildRequires:  python2-pytest
28
+%endif # if with_python3
29
+%if 0%{?with_python3}
30
+BuildRequires:  python%{python3_pkgversion}-devel
31
+BuildRequires:  python%{python3_pkgversion}-setuptools
32
+BuildRequires:  python%{python3_pkgversion}-pytz
33
+BuildRequires:  python%{python3_pkgversion}-dateutil
34
+BuildRequires:  python%{python3_pkgversion}-hypothesis
35
+BuildRequires:  python%{python3_pkgversion}-pytest
36
+%endif # if with_python3
37
+
38
+%global _description\
39
+iCalendar specification (RFC 2445) defines calendaring format used\
40
+by many applications (Zimbra, Thunderbird and others). This\
41
+module is a parser/generator of iCalendar files for use with\
42
+Python. It follows the RFC 2445 (iCalendar) specification.\
43
+The aim is to make a package that is fully compliant with RFC 2445,\
44
+well designed, simple to use and well documented.\
45
+
46
+
47
+%description %_description
48
+
49
+%if 0%{?with_python2}
50
+%package -n python2-icalendar
51
+Summary: %summary
52
+Requires:       python2-pytz
53
+Requires:       python2-dateutil
54
+%{?python_provide:%python_provide python2-icalendar}
55
+
56
+%description -n python2-icalendar %_description
57
+%endif # with_python2
58
+
59
+%if 0%{?with_python3}
60
+%package -n python3-icalendar
61
+Summary:        Parser/generator of iCalendar files following the RFC 2445 for Python 3
62
+Requires:       python3-pytz
63
+Requires:       python3-dateutil
64
+
65
+%description -n python3-icalendar
66
+Setuptools is a collection of enhancements to the Python 3 distutils that allow
67
+you to more easily build and distribute Python 3 packages, especially ones that
68
+have dependencies on other packages.
69
+
70
+This package contains the runtime components of setuptools, necessary to
71
+execute the software that requires pkg_resources.py.
72
+%endif # with_python3
73
+
74
+%prep
75
+%setup -q -n icalendar-%{version}%{?veradd}
76
+
77
+# we have only 2.7 and 3.3
78
+sed -i 's/py26,//' tox.ini
79
+
80
+%if 0%{?with_python3}
81
+rm -rf %{py3dir}
82
+cp -a . %{py3dir}
83
+%{__sed} -i -e '/@unittest.expectedFailure/d' %{py3dir}/src/icalendar/tests/test_timezoned.py
84
+%endif # with_python3
85
+
86
+%build
87
+%if 0%{?with_python2}
88
+%{__python2} setup.py build
89
+%endif # with_python2
90
+
91
+%if 0%{?with_python3}
92
+pushd %{py3dir}
93
+%{__python3} setup.py build
94
+popd
95
+%endif # with_python3
96
+
97
+%install
98
+%if 0%{?with_python2}
99
+%{__python2} setup.py install --skip-build --root $RPM_BUILD_ROOT
100
+%endif # with_python2
101
+
102
+%if 0%{?with_python3}
103
+pushd %{py3dir}
104
+%{__python3} setup.py install --skip-build --root $RPM_BUILD_ROOT
105
+popd
106
+%endif # with_python3
107
+
108
+
109
+%check
110
+%if 0%{?with_python2}
111
+%{__python2} -m pytest src/icalendar/tests
112
+%endif # with_python2
113
+
114
+%if 0%{?with_python3}
115
+pushd %{py3dir}
116
+%{__python3} -m pytest src/icalendar/tests
117
+popd
118
+%endif
119
+
120
+%if 0%{?with_python2}
121
+%files -n python2-icalendar
122
+%doc README.rst CHANGES.rst LICENSE.rst
123
+%{python2_sitelib}/icalendar
124
+%{python2_sitelib}/*.egg-info
125
+%if ! 0%{?with_python3}
126
+%{_bindir}/icalendar
127
+%endif
128
+%endif # with_python2
129
+
130
+%if 0%{?with_python3}
131
+%files -n python3-icalendar
132
+%doc README.rst CHANGES.rst LICENSE.rst
133
+%{python3_sitelib}/icalendar
134
+%{python3_sitelib}/*.egg-info
135
+%{_bindir}/icalendar
136
+%endif # with_python3
137
+
138
+%changelog
139
+* Wed Mar 06 2019 Yatin Karel <ykarel@redhat.com> - 4.0.3-2
140
+- Drop unnecessary BR on python-pip
141
+- Enable python3 build on RHEL > 7
142
+- Include icalendar binary in py2 package when py3 disabled
143
+
144
+* Thu Jan 31 2019 Gwyn Ciesla <limburgher@gmail.com> 4.0.3-1
145
+- 4.0.3
146
+
147
+* Wed Jul 25 2018 Gwyn Ciesla <limburgher@gmail.com> - 3.11.5-9
148
+- Fix FTBFS.
149
+
150
+* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.11.5-8
151
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
152
+
153
+* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 3.11.5-7
154
+- Rebuilt for Python 3.7
155
+
156
+* Mon May 07 2018 Miro Hrončok <mhroncok@redhat.com> - 3.11.5-6
157
+- Drop tox dependency, use pytest directly
158
+- Use python2 instead of python
159
+
160
+* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.11.5-5
161
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
162
+
163
+* Thu Jan 25 2018 Iryna Shcherbina <ishcherb@redhat.com> - 3.11.5-4
164
+- Update Python 2 dependency declarations to new packaging standards
165
+  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
166
+
167
+* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 3.11.5-3
168
+- Python 2 binary package renamed to python2-icalendar
169
+  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
170
+
171
+* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.11.5-2
172
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
173
+
174
+* Mon Jul 17 2017 Haïkel Guémar <hguemar@fedoraproject.org> - 3.11.5-1
175
+- Upstream 3.11.5 (multiple bugfixes)
176
+
177
+* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.11-3
178
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
179
+
180
+* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 3.11-2
181
+- Rebuild for Python 3.6
182
+
183
+* Fri Dec 09 2016 Jon Ciesla <limburgher@gmail.com> - 3.11-1
184
+- 3.11
185
+
186
+* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.9.0-5
187
+- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
188
+
189
+* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.9.0-4
190
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
191
+
192
+* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.9.0-3
193
+- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
194
+
195
+* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.9.0-2
196
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
197
+
198
+* Sat Mar 28 2015 Jon Ciesla <limburgher@gmail.com> - 3.9.0-1
199
+- Latest upstream, BZ 1206758.
200
+
201
+* Tue Jan 20 2015 Jon Ciesla <limburgher@gmail.com> - 3.8.4-1
202
+- Latest upstream.
203
+
204
+* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.6.2-3
205
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
206
+
207
+* Wed May 14 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 3.6.2-2
208
+- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
209
+
210
+* Thu Apr 24 2014 Jon Ciesla <limburgher@gmail.com> - 3.6.2-1
211
+- Latest upstream.
212
+
213
+* Tue Jan 07 2014 Stanislav Ochotnicky <sochotnicky@rdhat.com> - 3.6.1-1
214
+- Update to latest upstream
215
+- Add python3 subpackage
216
+
217
+* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4-3
218
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
219
+
220
+* Thu May 30 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.4-2
221
+- Install LICENSE file as well
222
+
223
+* Thu May 30 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.4-1
224
+- Update to latest upstream version (#824323)
225
+
226
+* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.1-0.3.b2
227
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
228
+
229
+* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.1-0.2.b2
230
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
231
+
232
+* Wed May 30 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.0.1-0.1.b2
233
+- Update to 3.0b2
234
+- Change license to BSD (see https://github.com/collective/icalendar/issues/2)
235
+
236
+* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1-5
237
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
238
+
239
+* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1-4
240
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
241
+
242
+* Thu Aug  5 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.1-3
243
+- Install examples
244
+- Fix tests for Python 2.7 and run them
245
+- Add GPLv2 for parser.py to licenses
246
+
247
+* Wed Aug  4 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.1-2
248
+- State correct licenses
249
+
250
+* Tue Aug  3 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.1-1
251
+- Initial package version
252
4.0.3.tar.gz Added
Refresh
Refresh
Request History
mollekopf's avatar

mollekopf created request over 2 years ago

python3-icalendar


mollekopf's avatar

mollekopf accepted request over 2 years ago