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
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
|
%global _empty_manifest_terminate_build 0
Name: python-zephyrus-sc2-parser
Version: 0.3.8
Release: 1
Summary: Parser for SC2 replay files
License: MIT License Copyright (c) 2019 Luke Holroyd Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
URL: https://pypi.org/project/zephyrus-sc2-parser/
Source0: https://mirrors.aliyun.com/pypi/web/packages/fc/bb/428de9b232a1578ad547fea4df60807c3a13d7c0df1582d1af330322d900/zephyrus-sc2-parser-0.3.8.tar.gz
BuildArch: noarch
Requires: python3-requests
Requires: python3-mpyq
Requires: python3-pytz
%description
# Zephyrus Replay Parser
A robust and detailed parser for .SC2Replay files. Only 1v1 games are currently supported.
Used by [zephyrus.gg](https://zephyrus.gg) for in-depth replay analysis.
## Core Features
- **Easy to use**
No need to configure anything, just install the package and call `parse_replay`
- **Battle Tested**
The parser is used on [zephyrus.gg](https://zephyrus.gg) and has been used to process over 70k replays with very few failing. For common failure modes there are also custom exceptions to make it clear why parsing failed.
- **Stateful and Object Orientated**
Core game elements are recreated with objects (Game, GameObj, Player, PlayerState) allowing for an easy understanding of where information is located and how it is interlinked.
Events and information are re-calculated on every relevant event, so you always have the correct gamestate.
Gamestate is recorded at regular intervals (5sec) to allow easy analysis on parsed information.
Raw data is available through all main objects (Game.events, GameObj.birth_time, Player.objects, etc).
- **Extremely Detailed Information**
The parser utilizes both the tracker and game events from replay files to re-create gamestate, allowing much more complex information to be gathered.
Ex:
- Unit Modes: Warp Prism Flying vs Phasing
- Creep: Active Tumors, Dead Tumors, Total Creep Tiles
- Ability Attribution/Energy Tracking (Command Structures only)
- Selection/Control Group Tracking
## Installation and Usage
The parser is hosted on PyPI. You can install it through pip
`pip install zephyrus_sc2_parser`
You can import `parse_replay` as a top level import
`from zephyrus_sc2_parser import parse_replay`
### Required Arguments
The only required argument is the path of the replay you want to parse
### Optional Keyword Arguments
You can optionally use the `local` flag to indicate you want to parse a replay without MMR, otherwise the parser will abort the replay. `local` is set to False by default.
By default the generated timeline will be in 5sec intervals (22.4 gameloops = 1 second, 22.4 * 5 = 112). You can specify a custom interval in gameloops using the `tick` keyword argument.
The `network` flag can be used to disable network requests, since maps that aren't cached in `zephyrus_sc2_parser/gamedata/map_info.py` require one to get the map size (Used for Creep calculations). `network` is set to True by default.
### Return Values
The parser returns a [named tuple](https://docs.python.org/3/library/collections.html#collections.namedtuple) which can either be handled like a single object, or spread into distinct values.
The data returned is:
- Dictionary containing both player objects
- List of recorded game states
- List of recorded engagements
- Dictionary of summary stats containing general information about both players
- Dictionary of metadata about the game
Currently engagements is empty, but it will contain engagement data in the future.
### Examples
```
# data can be accessed with dot notation
# replay.players, replay.timeline, replay.engagements, replay.summary, replay.metadata
replay = parse_replay(filepath, local=False, tick=112, network=True)
OR
# you can name these however you like
players, timeline, engagements, summary, metadata = parse_replay(filepath, local=False, tick=112, network=True)
```
Example of `players`:
{
1: <Player object>, # see zephyrus_sc2_parser/game/player.py for details
2: <Player object>,
}
Example of `timeline`:
# one gamestate, not actual data
# see zephyrus_sc2_parser/game/player_state.py for details
[{
1: {
'gameloop': 3000,
'resource_collection_rate': { 'minerals': 1200, 'gas': 800 },
'unspent_resources': { 'minerals': 300, 'gas': 400 },
'resource_collection_rate_all': 2000,
'unit': {
'Probe': {
'type': ['unit', 'worker'],
'live': 50,
'died': 15,
'in_progress': 0,
'mineral_cost': 50,
'gas_cost': 0,
},
'Stalker': {
'type': ['unit'],
'live': 12,
'died': 0,
'in_progress': 0,
'mineral_cost': 125,
'gas_cost': 50,
},
},
'building': {
'CyberneticsCore': {
'type': ['building'],
'live': 1,
'died': 0,
'in_progress': 0,
'mineral_cost': 150,
'gas_cost': 0,
},
'ShieldBattery': {
'type': ['building'],
'live': 2,
'died': 0,
'in_progress': 0,
'mineral_cost': 100,
'gas_cost': 0,
}
},
'upgrade': [],
'current_selection': { 'Stalker': 2 },
'workers_active': 50,
'workers_produced': 38,
'workers_lost': 0,
'supply': 74,
'supply_cap': 100,
'supply_block': 0,
'spm': 0,
'army_value': { 'minerals': 1500, 'gas': 600 },
'resources_lost': { 'minerals': 750, 'gas': 0 },
'resources_collected': { 'minerals': 10500, 'gas': 2500 },
'total_army_value': 2100,
'total_resources_lost': 0,
'total_resources_collected': 13000,
'race': {},
},
2: {
...
},
}]
Example of `summary`:
# not actual data
{
'mmr': { 1: 3958, 2: 3893 },
'avg_resource_collection_rate': {
'minerals': { 1: 1150.9, 2: 1238.6 },
'gas': { 1: 321.7, 2: 316.8 }
},
'max_collection_rate': { 1: 2400, 2: 2200 },
'avg_unspent_resources': {
'minerals': { 1: 330.7, 2: 247.3 },
'gas': { 1: 205.2, 2: 174.5 }
},
'apm': { 1: 123.0, 2: 187.0 },
'spm': { 1: 7, 2: 10.4 },
'resources_lost': {
'minerals': { 1: 2375, 2: 800 },
'gas': { 1: 1000, 2: 425 }
},
'resources_collected': {
'minerals': { 1: 22000, 2: 23000 },
'gas': { 1: 5400, 2: 7500 }
},
'workers_produced': { 1: 63, 2: 48 },
'workers_killed': { 1: 12, 2: 41 },
'workers_lost': { 1: 41, 2: 12 },
'supply_block': { 1: 20, 2: 5 },
'sq': { 1: 91, 2: 104 },
'avg_pac_per_min': { 1: 28.15, 2: 36.29 },
'avg_pac_action_latency': { 1: 0.46, 2: 0.32 },
'avg_pac_actions': { 1: 3.79, 2: 4.65 },
'avg_pac_gap': { 1: 0.37, 2: 0.25 },
'race': { 1: {}, 2: {} },
}
Example of `metadata`:
# not actual data
{
'map': 'Acropolis LE',
# UTC timezone
'played_at': <datetime.datetime object>,
# player ID
'winner': 1,
# seconds
'game_length': 750,
}
%package -n python3-zephyrus-sc2-parser
Summary: Parser for SC2 replay files
Provides: python-zephyrus-sc2-parser
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pip
%description -n python3-zephyrus-sc2-parser
# Zephyrus Replay Parser
A robust and detailed parser for .SC2Replay files. Only 1v1 games are currently supported.
Used by [zephyrus.gg](https://zephyrus.gg) for in-depth replay analysis.
## Core Features
- **Easy to use**
No need to configure anything, just install the package and call `parse_replay`
- **Battle Tested**
The parser is used on [zephyrus.gg](https://zephyrus.gg) and has been used to process over 70k replays with very few failing. For common failure modes there are also custom exceptions to make it clear why parsing failed.
- **Stateful and Object Orientated**
Core game elements are recreated with objects (Game, GameObj, Player, PlayerState) allowing for an easy understanding of where information is located and how it is interlinked.
Events and information are re-calculated on every relevant event, so you always have the correct gamestate.
Gamestate is recorded at regular intervals (5sec) to allow easy analysis on parsed information.
Raw data is available through all main objects (Game.events, GameObj.birth_time, Player.objects, etc).
- **Extremely Detailed Information**
The parser utilizes both the tracker and game events from replay files to re-create gamestate, allowing much more complex information to be gathered.
Ex:
- Unit Modes: Warp Prism Flying vs Phasing
- Creep: Active Tumors, Dead Tumors, Total Creep Tiles
- Ability Attribution/Energy Tracking (Command Structures only)
- Selection/Control Group Tracking
## Installation and Usage
The parser is hosted on PyPI. You can install it through pip
`pip install zephyrus_sc2_parser`
You can import `parse_replay` as a top level import
`from zephyrus_sc2_parser import parse_replay`
### Required Arguments
The only required argument is the path of the replay you want to parse
### Optional Keyword Arguments
You can optionally use the `local` flag to indicate you want to parse a replay without MMR, otherwise the parser will abort the replay. `local` is set to False by default.
By default the generated timeline will be in 5sec intervals (22.4 gameloops = 1 second, 22.4 * 5 = 112). You can specify a custom interval in gameloops using the `tick` keyword argument.
The `network` flag can be used to disable network requests, since maps that aren't cached in `zephyrus_sc2_parser/gamedata/map_info.py` require one to get the map size (Used for Creep calculations). `network` is set to True by default.
### Return Values
The parser returns a [named tuple](https://docs.python.org/3/library/collections.html#collections.namedtuple) which can either be handled like a single object, or spread into distinct values.
The data returned is:
- Dictionary containing both player objects
- List of recorded game states
- List of recorded engagements
- Dictionary of summary stats containing general information about both players
- Dictionary of metadata about the game
Currently engagements is empty, but it will contain engagement data in the future.
### Examples
```
# data can be accessed with dot notation
# replay.players, replay.timeline, replay.engagements, replay.summary, replay.metadata
replay = parse_replay(filepath, local=False, tick=112, network=True)
OR
# you can name these however you like
players, timeline, engagements, summary, metadata = parse_replay(filepath, local=False, tick=112, network=True)
```
Example of `players`:
{
1: <Player object>, # see zephyrus_sc2_parser/game/player.py for details
2: <Player object>,
}
Example of `timeline`:
# one gamestate, not actual data
# see zephyrus_sc2_parser/game/player_state.py for details
[{
1: {
'gameloop': 3000,
'resource_collection_rate': { 'minerals': 1200, 'gas': 800 },
'unspent_resources': { 'minerals': 300, 'gas': 400 },
'resource_collection_rate_all': 2000,
'unit': {
'Probe': {
'type': ['unit', 'worker'],
'live': 50,
'died': 15,
'in_progress': 0,
'mineral_cost': 50,
'gas_cost': 0,
},
'Stalker': {
'type': ['unit'],
'live': 12,
'died': 0,
'in_progress': 0,
'mineral_cost': 125,
'gas_cost': 50,
},
},
'building': {
'CyberneticsCore': {
'type': ['building'],
'live': 1,
'died': 0,
'in_progress': 0,
'mineral_cost': 150,
'gas_cost': 0,
},
'ShieldBattery': {
'type': ['building'],
'live': 2,
'died': 0,
'in_progress': 0,
'mineral_cost': 100,
'gas_cost': 0,
}
},
'upgrade': [],
'current_selection': { 'Stalker': 2 },
'workers_active': 50,
'workers_produced': 38,
'workers_lost': 0,
'supply': 74,
'supply_cap': 100,
'supply_block': 0,
'spm': 0,
'army_value': { 'minerals': 1500, 'gas': 600 },
'resources_lost': { 'minerals': 750, 'gas': 0 },
'resources_collected': { 'minerals': 10500, 'gas': 2500 },
'total_army_value': 2100,
'total_resources_lost': 0,
'total_resources_collected': 13000,
'race': {},
},
2: {
...
},
}]
Example of `summary`:
# not actual data
{
'mmr': { 1: 3958, 2: 3893 },
'avg_resource_collection_rate': {
'minerals': { 1: 1150.9, 2: 1238.6 },
'gas': { 1: 321.7, 2: 316.8 }
},
'max_collection_rate': { 1: 2400, 2: 2200 },
'avg_unspent_resources': {
'minerals': { 1: 330.7, 2: 247.3 },
'gas': { 1: 205.2, 2: 174.5 }
},
'apm': { 1: 123.0, 2: 187.0 },
'spm': { 1: 7, 2: 10.4 },
'resources_lost': {
'minerals': { 1: 2375, 2: 800 },
'gas': { 1: 1000, 2: 425 }
},
'resources_collected': {
'minerals': { 1: 22000, 2: 23000 },
'gas': { 1: 5400, 2: 7500 }
},
'workers_produced': { 1: 63, 2: 48 },
'workers_killed': { 1: 12, 2: 41 },
'workers_lost': { 1: 41, 2: 12 },
'supply_block': { 1: 20, 2: 5 },
'sq': { 1: 91, 2: 104 },
'avg_pac_per_min': { 1: 28.15, 2: 36.29 },
'avg_pac_action_latency': { 1: 0.46, 2: 0.32 },
'avg_pac_actions': { 1: 3.79, 2: 4.65 },
'avg_pac_gap': { 1: 0.37, 2: 0.25 },
'race': { 1: {}, 2: {} },
}
Example of `metadata`:
# not actual data
{
'map': 'Acropolis LE',
# UTC timezone
'played_at': <datetime.datetime object>,
# player ID
'winner': 1,
# seconds
'game_length': 750,
}
%package help
Summary: Development documents and examples for zephyrus-sc2-parser
Provides: python3-zephyrus-sc2-parser-doc
%description help
# Zephyrus Replay Parser
A robust and detailed parser for .SC2Replay files. Only 1v1 games are currently supported.
Used by [zephyrus.gg](https://zephyrus.gg) for in-depth replay analysis.
## Core Features
- **Easy to use**
No need to configure anything, just install the package and call `parse_replay`
- **Battle Tested**
The parser is used on [zephyrus.gg](https://zephyrus.gg) and has been used to process over 70k replays with very few failing. For common failure modes there are also custom exceptions to make it clear why parsing failed.
- **Stateful and Object Orientated**
Core game elements are recreated with objects (Game, GameObj, Player, PlayerState) allowing for an easy understanding of where information is located and how it is interlinked.
Events and information are re-calculated on every relevant event, so you always have the correct gamestate.
Gamestate is recorded at regular intervals (5sec) to allow easy analysis on parsed information.
Raw data is available through all main objects (Game.events, GameObj.birth_time, Player.objects, etc).
- **Extremely Detailed Information**
The parser utilizes both the tracker and game events from replay files to re-create gamestate, allowing much more complex information to be gathered.
Ex:
- Unit Modes: Warp Prism Flying vs Phasing
- Creep: Active Tumors, Dead Tumors, Total Creep Tiles
- Ability Attribution/Energy Tracking (Command Structures only)
- Selection/Control Group Tracking
## Installation and Usage
The parser is hosted on PyPI. You can install it through pip
`pip install zephyrus_sc2_parser`
You can import `parse_replay` as a top level import
`from zephyrus_sc2_parser import parse_replay`
### Required Arguments
The only required argument is the path of the replay you want to parse
### Optional Keyword Arguments
You can optionally use the `local` flag to indicate you want to parse a replay without MMR, otherwise the parser will abort the replay. `local` is set to False by default.
By default the generated timeline will be in 5sec intervals (22.4 gameloops = 1 second, 22.4 * 5 = 112). You can specify a custom interval in gameloops using the `tick` keyword argument.
The `network` flag can be used to disable network requests, since maps that aren't cached in `zephyrus_sc2_parser/gamedata/map_info.py` require one to get the map size (Used for Creep calculations). `network` is set to True by default.
### Return Values
The parser returns a [named tuple](https://docs.python.org/3/library/collections.html#collections.namedtuple) which can either be handled like a single object, or spread into distinct values.
The data returned is:
- Dictionary containing both player objects
- List of recorded game states
- List of recorded engagements
- Dictionary of summary stats containing general information about both players
- Dictionary of metadata about the game
Currently engagements is empty, but it will contain engagement data in the future.
### Examples
```
# data can be accessed with dot notation
# replay.players, replay.timeline, replay.engagements, replay.summary, replay.metadata
replay = parse_replay(filepath, local=False, tick=112, network=True)
OR
# you can name these however you like
players, timeline, engagements, summary, metadata = parse_replay(filepath, local=False, tick=112, network=True)
```
Example of `players`:
{
1: <Player object>, # see zephyrus_sc2_parser/game/player.py for details
2: <Player object>,
}
Example of `timeline`:
# one gamestate, not actual data
# see zephyrus_sc2_parser/game/player_state.py for details
[{
1: {
'gameloop': 3000,
'resource_collection_rate': { 'minerals': 1200, 'gas': 800 },
'unspent_resources': { 'minerals': 300, 'gas': 400 },
'resource_collection_rate_all': 2000,
'unit': {
'Probe': {
'type': ['unit', 'worker'],
'live': 50,
'died': 15,
'in_progress': 0,
'mineral_cost': 50,
'gas_cost': 0,
},
'Stalker': {
'type': ['unit'],
'live': 12,
'died': 0,
'in_progress': 0,
'mineral_cost': 125,
'gas_cost': 50,
},
},
'building': {
'CyberneticsCore': {
'type': ['building'],
'live': 1,
'died': 0,
'in_progress': 0,
'mineral_cost': 150,
'gas_cost': 0,
},
'ShieldBattery': {
'type': ['building'],
'live': 2,
'died': 0,
'in_progress': 0,
'mineral_cost': 100,
'gas_cost': 0,
}
},
'upgrade': [],
'current_selection': { 'Stalker': 2 },
'workers_active': 50,
'workers_produced': 38,
'workers_lost': 0,
'supply': 74,
'supply_cap': 100,
'supply_block': 0,
'spm': 0,
'army_value': { 'minerals': 1500, 'gas': 600 },
'resources_lost': { 'minerals': 750, 'gas': 0 },
'resources_collected': { 'minerals': 10500, 'gas': 2500 },
'total_army_value': 2100,
'total_resources_lost': 0,
'total_resources_collected': 13000,
'race': {},
},
2: {
...
},
}]
Example of `summary`:
# not actual data
{
'mmr': { 1: 3958, 2: 3893 },
'avg_resource_collection_rate': {
'minerals': { 1: 1150.9, 2: 1238.6 },
'gas': { 1: 321.7, 2: 316.8 }
},
'max_collection_rate': { 1: 2400, 2: 2200 },
'avg_unspent_resources': {
'minerals': { 1: 330.7, 2: 247.3 },
'gas': { 1: 205.2, 2: 174.5 }
},
'apm': { 1: 123.0, 2: 187.0 },
'spm': { 1: 7, 2: 10.4 },
'resources_lost': {
'minerals': { 1: 2375, 2: 800 },
'gas': { 1: 1000, 2: 425 }
},
'resources_collected': {
'minerals': { 1: 22000, 2: 23000 },
'gas': { 1: 5400, 2: 7500 }
},
'workers_produced': { 1: 63, 2: 48 },
'workers_killed': { 1: 12, 2: 41 },
'workers_lost': { 1: 41, 2: 12 },
'supply_block': { 1: 20, 2: 5 },
'sq': { 1: 91, 2: 104 },
'avg_pac_per_min': { 1: 28.15, 2: 36.29 },
'avg_pac_action_latency': { 1: 0.46, 2: 0.32 },
'avg_pac_actions': { 1: 3.79, 2: 4.65 },
'avg_pac_gap': { 1: 0.37, 2: 0.25 },
'race': { 1: {}, 2: {} },
}
Example of `metadata`:
# not actual data
{
'map': 'Acropolis LE',
# UTC timezone
'played_at': <datetime.datetime object>,
# player ID
'winner': 1,
# seconds
'game_length': 750,
}
%prep
%autosetup -n zephyrus-sc2-parser-0.3.8
%build
%py3_build
%install
%py3_install
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
pushd %{buildroot}
if [ -d usr/lib ]; then
find usr/lib -type f -printf "\"/%h/%f\"\n" >> filelist.lst
fi
if [ -d usr/lib64 ]; then
find usr/lib64 -type f -printf "\"/%h/%f\"\n" >> filelist.lst
fi
if [ -d usr/bin ]; then
find usr/bin -type f -printf "\"/%h/%f\"\n" >> filelist.lst
fi
if [ -d usr/sbin ]; then
find usr/sbin -type f -printf "\"/%h/%f\"\n" >> filelist.lst
fi
touch doclist.lst
if [ -d usr/share/man ]; then
find usr/share/man -type f -printf "\"/%h/%f.gz\"\n" >> doclist.lst
fi
popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
%files -n python3-zephyrus-sc2-parser -f filelist.lst
%dir %{python3_sitelib}/*
%files help -f doclist.lst
%{_docdir}/*
%changelog
* Thu Jun 08 2023 Python_Bot <Python_Bot@openeuler.org> - 0.3.8-1
- Package Spec generated
|