-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathdatagrepper.spec
271 lines (199 loc) · 9.23 KB
/
datagrepper.spec
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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
# https://bugzilla.redhat.com/show_bug.cgi?id=955781
%global pypi_name datagrepper
%global pypi_version 1.0.1
Name: %{pypi_name}
Version: %{pypi_version}
Release: 1%{?dist}
Summary: A webapp to query fedmsg history
License: GPLv2+
URL: https://github.com/fedora-infra/datagrepper
Source0: %{pypi_source}
BuildArch: noarch
BuildRequires: make
BuildRequires: python3-devel
BuildRequires: python3-fedmsg-core
BuildRequires: python3-fedmsg-meta-fedora-infrastructure
BuildRequires: python3-flask-sqlalchemy
BuildRequires: python3-freezegun
BuildRequires: python3-mock
BuildRequires: python3-nose
BuildRequires: python3-pygal
BuildRequires: python3-pytest-cov
BuildRequires: python3-setuptools
BuildRequires: python3-sphinx
%description
A webapp to retrieve historical information about messages on the fedmsg
bus. It is a JSON api for the datanommer message store.
%prep
%autosetup
# makes build_sphinx find it
# cannot move, we need to keep sources there, as they are used on runtime
cp -a %{pypi_name}/docs .
%generate_buildrequires
%pyproject_buildrequires
%build
%pyproject_wheel
make %{?_smp_mflags} -C %{pypi_name}/docs html
%install
%pyproject_install
%pyproject_save_files %{pypi_name}
mkdir -p %{buildroot}%{_libexecdir}/%{pypi_name}
install -m 644 apache/%{pypi_name}.wsgi %{buildroot}%{_libexecdir}/%{pypi_name}/%{pypi_name}.wsgi
mkdir -p %{buildroot}%{_sysconfdir}/%{pypi_name}/
install -m 644 apache/%{pypi_name}.cfg %{buildroot}%{_sysconfdir}/%{pypi_name}/%{pypi_name}.cfg
%check
%pyproject_check_import
%{pytest} -v
%files -n %{pypi_name} -f %{pyproject_files}
%doc README.md %{pypi_name}/docs/_build/html/ apache/%{pypi_name}.conf
%license COPYING
%config(noreplace) %{_sysconfdir}/%{pypi_name}/
%{_libexecdir}/%{pypi_name}/%{pypi_name}.wsgi
%changelog
- new version
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
- Rebuilt for Python 3.10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
- new version
- Latest upstream
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
- Rebuilt for Python 3.9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
- Add patch to fix tests.
- Rebuilt for Python 3.8
- Fix start with delta parameter
- backport of upstream fix https://github.com/fedora-infra/datagrepper/issues/218
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
- Switch to Python 3 (#1677977)
- Build the docs
- Use automatic dependencies
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
- new version
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
- new version
- new version
- Conditionals for dependencies.
- new version
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
- new version
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
- new version
- new version
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
- new version
- Removed lots of no-longer-needed deps.
- Hide charts from users. They are too slow on the full dataset.
- Latest upstream.
- New dep on python-pygal.
- Latest bugfix release with css and javascript fixes.
- Remove patch.
- Fix rhel6 conditionals?
- Bump release.
- Fix rhel conditionals for rhel7.
- Patch out flask-sqlalchemy for rhel7.
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
- Websockets and autoscrolling.
- Remove pygments patch.
- Start running the test suite.
- Patch some pygments stuff to support el6.
- Fix widget css
- Added an extra-large size for message cards
- Default order is descending now.
- New /raw api option to query for an arbitrary string
- New /raw api option to query for negative filters.
- New /widget.js self-expanding javascript widget.
- Cosmetic fixes.
- Frontend and docs improvements by charulagrl.
- Message counter on the frontpage.
- Introduction of the HTML cards work by charulagrl.
- Update to upstream 0.2.1
- Update to upstream 0.2.0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
- Backport patch from commit 2f8c98b in upstream repo
- Apply temporary sed statement to fix datagrepper.wsgi.
- Latest upstream.
- Ability to request an order for your results.
- Ability to request metadata to be sent along with your results.
- Ability to request the last N items regardless of time.
- Apply a patch to fix a spelling typo in the main file.
- Fix to configurable base url.
- Support old docutils and code-block directive.
- Support a callback querystring argument to allow JSONP responses.
- Added configurable base_url for docs.
- Fix timedelta.total_seconds for python2.6.
- Replace pyver macro definition with python_version
- Update to upstream 0.1.1 (adds license text)
- Fix python2-devel BR
- Mark config file as noreplace
- Remove useradd commands in post
- Install sample httpd configuration file
- Add version to requires on datanommer.models
- Remove python_sitelib macro definition
- Fix file permissions for config files
- Bump version number to 0.1 (0.0.1 never happened)
- Remove system executable macros
- Fix install location of apache/datagrepper.cfg
- Initial packaging.