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
|
%global _empty_manifest_terminate_build 0
Name: python-rossum
Version: 3.15.0
Release: 1
Summary: Command line interface for controlling the Rossum platform
License: MIT
URL: https://developers.rossum.ai/
Source0: https://mirrors.nju.edu.cn/pypi/web/packages/94/37/cd299572b63339731e83b75bc8dedfe2272e8cdf63175904c56fa2b8c557/rossum-3.15.0.tar.gz
BuildArch: noarch
%description
6 My Queue 1 6 myqueue-ab12ee@elis.rossum.ai 7 27
```
Download schema as a json:
```shell
rossum schema get 7 -O schema.json
```
Open the `schema.json` file in you favourite editor and upload modified version back to Rossum.
```shell
rossum schema update 7 --rewrite schema.json
```
You can also edit schema as an Excel (xlsx) file.
```shell
rossum schema get 7 --format xlsx -O schema.xlsx
rossum schema update 7 --rewrite schema.xlsx
```
From now on, documents will follow new schema. (Warning! If you don't use `--rewrite` option,
the new schema will receive a new id - obtain it by `queue list` again.)
## Schema Transformations
In addition, there is a scripting support for many common schema operations,
that may be easily used for schema management automation. See `rossum schema transform`
and `rossum tools` tools for further reference.
Run something like:
```shell
$ rossum schema transform substitute-options default_schema.json centre <( \
rossum tools xls_to_csv ~/Downloads/ERA_osnova_strediska.xlsx --header 0 --sheet 1 | rossum tools csv_to_options - ) \
| rossum schema transform substitute-options - gl_code <( \
rossum tools xls_to_csv ~/Downloads/ERA_osnova_strediska.xlsx --header 0 | rossum tools csv_to_options - ) \
| rossum schema transform remove - contract \
> era_schema.json
```
## License
MIT
## Contributing
* Use [`pre-commit`](https://pre-commit.com/#install) to avoid linting issues.
* Submit a pull request from forked version of this repo.
* Select any of the maintainers as a reviewer.
* After an approved review, when releasing, a `Collaborator` with `Admin` role shall do the following in `master` branch:
* Update the Changelog in README, describing all the changes included in the newest release
* run:
```bash
bump2version minor
git push
git push --tags
```
* In the end, to build a Windows installer, run:
```bash
pynsist installer.cfg
```
* Go to [releases](#https://github.com/rossumai/rossum/releases) and upload the newest .exe file from the
`.build` folder of your `rossum` repository to the newest release
## Changelog
### 2022-08-04 v3.15.0
* feat(.gitignore): ignore vscode
* feat(api_client): add email param for user creation
* feat(tox) add py39 test env
* ref(README) format file by linter
* build(pre-commit) update versions
### 2022-02-18 v3.14.0
* Ensure compatibility with click<8.1.0
### 2021-11-1 v3.13.1 and v3.13.2
* Update setup of the release process for pypi
### 2021-10-29 v3.13.0
* Add method for getting annotations
* Refactor sideloading functionality to enable sideloading of new objects
* Add sideloading option for get_paginated() method
### 2021-10-29 v3.12.1
* Propagate changelogs to the releases
### 2021-10-24 v3.12.0
* Allow sending new attributes to API when creating hooks
* Response is being propagated to the RossumException
* Added functions to iterate over hook payload easily
* Fix for library versioning due to incorrectly published tags
### 2021-09-06 v3.10.0
* Allow creation of inbox without passing bounce email
* Allow uploading documents by passing file as bytes to the API client
### 2021-04-18 v3.9.1
* Include tenacity library in the Windows build
### 2021-04-15 v3.9.0
* Allow filtering specific queue IDs when listing all user's queues
### 2021-04-06 v3.8.0
* Allow passing token_owner, test and run_after attributes when creating and changing hook objects
### 2021-04-01 v3.7.0
* Applied configurable retry mechanism to all requests done via rossum library
* Enable assigning annotator_limited role to user
### 2021-03-04 v3.6.0
* Allow setting rir_params for queues
### 2021-01-25 v3.5.0
* Allow setting custom timeout for APIClient requests
* Use openpyxl engine for xlsx files reading
* Apply minor code optimalization fixes
### 2020-11-16 v3.4.0
* Create password command
### 2020-11-11 v3.3.0
* Allow passing parameters when listing hooks
* Fix passing metadata when creating a workspace
### 2020-10-20 v3.2.1
* Remove Obsoletes-Dist
### 2020-10-20 v3.2.0
* Enable creating serverless functions
* Add method for creating workspaces
* Allow setting up sideloading on hooks
* Refactor _request_url() to allow custom logging
### 2020-09-29 v3.1.0
* Fix missing library in setup.py
* Remove references to old package names
* Update `setup.py`
### 2020-09-29 v3.0.0
* elisctl was renamed to rossum
### 2020-07-27 v2.10.1
* Fix attribute name for setting max token lifetime
### 2020-07-24 v2.10.0
* Add `schema list` command
* Fix `webhook change` command issue
* Remove `csv get` command
* Add example script for setting up a new organisation
* Enable assigning manager role to user
* Enable setting max token lifetime
* Catch ValueError when parsing schema in XLSX
* Fix Python3.8 support
### 2020-02-18 v2.9.0
* allow editing inbox attributes separately on queue-related commands
* add support for `can_collapse` in xlsx schema
* add sample usage of elisctl library in a Python code
* make queue option required on `user create`
### 2019-10-31 v2.8.0
* Add webhook command
* Allow creating and changing inbox properties on `queue change` command
### 2019-09-30 v2.7.1
* Improve documentation
### 2019-08-13 v2.7.0
* Add command `user_assignment` for bulk assignment of users to queues
* Change command `connector create`: `queue_id` parameter needs to be specified, if there is more than one queue in organization
* Support schema attribute `width` in XLSX schema format
* Fixed: booleans, in XLSX schema format, can be specified as boolean types
* Internal: filename can be specified in `ELISClient.upload_document`
### 2019-07-30 v2.6.0
* Enable passing custom filename with upload
### 2019-07-12 v2.5.0
* Add support for schema specified in XLSX when creating queue
* Remove the necessity to specify schema file type when uploading
* Fix XML and CSV formats of `elisctl document extract`
### 2019-07-09 v2.4.0
* Add support for can_export in xlsx schema format
* Add document command
### 2019-06-21 v2.3.1
* Fix: annotator cannot use `elisctl connector list` command
### 2019-06-13 v2.3.0
* Add connector command
### 2019-06-11 v2.2.1
* Update packages for windows build.
### 2019-06-03 v2.2.0
* Added support for [`--profile`](#configure-profiles) option to all `elisctl` commands
* Fix: remove extra whitespace in xlsx schema export/import
### 2019-04-02 v2.1.0
* Added support for `--output-file` to `elisctl tools` and `elisctl schema transform`
* Fix [Schema Transformations](#schema-transformations) description in README
### 2019-03-14 v2.0.1
* Fixed MS Windows application entry point (running elisctl from the start menu)
* Fixed parsing of boolean values in xlsx schema export/import
### 2019-03-14 v2.0.0
* Disable interpolation in config parsing, so that special characters are allowed in e.g. password
* Experimental support for schema modification using xlsx file format
* Allow to show help in schema transform add (backward incompatible change)
### 2019-03-08 v1.1.1
* Fixed bug with UnicodeDecodeError in `elisctl schema get ID -O file.json` on Windows
### 2019-03-03 v1.1.0
* Added support for python 3.6
* Added `User-Agent` header (`elisctl/{version} ({platform})`) for every request to ROSSUM API
* Improved error when login fails with the provided credentials
%package -n python3-rossum
Summary: Command line interface for controlling the Rossum platform
Provides: python-rossum
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pip
%description -n python3-rossum
6 My Queue 1 6 myqueue-ab12ee@elis.rossum.ai 7 27
```
Download schema as a json:
```shell
rossum schema get 7 -O schema.json
```
Open the `schema.json` file in you favourite editor and upload modified version back to Rossum.
```shell
rossum schema update 7 --rewrite schema.json
```
You can also edit schema as an Excel (xlsx) file.
```shell
rossum schema get 7 --format xlsx -O schema.xlsx
rossum schema update 7 --rewrite schema.xlsx
```
From now on, documents will follow new schema. (Warning! If you don't use `--rewrite` option,
the new schema will receive a new id - obtain it by `queue list` again.)
## Schema Transformations
In addition, there is a scripting support for many common schema operations,
that may be easily used for schema management automation. See `rossum schema transform`
and `rossum tools` tools for further reference.
Run something like:
```shell
$ rossum schema transform substitute-options default_schema.json centre <( \
rossum tools xls_to_csv ~/Downloads/ERA_osnova_strediska.xlsx --header 0 --sheet 1 | rossum tools csv_to_options - ) \
| rossum schema transform substitute-options - gl_code <( \
rossum tools xls_to_csv ~/Downloads/ERA_osnova_strediska.xlsx --header 0 | rossum tools csv_to_options - ) \
| rossum schema transform remove - contract \
> era_schema.json
```
## License
MIT
## Contributing
* Use [`pre-commit`](https://pre-commit.com/#install) to avoid linting issues.
* Submit a pull request from forked version of this repo.
* Select any of the maintainers as a reviewer.
* After an approved review, when releasing, a `Collaborator` with `Admin` role shall do the following in `master` branch:
* Update the Changelog in README, describing all the changes included in the newest release
* run:
```bash
bump2version minor
git push
git push --tags
```
* In the end, to build a Windows installer, run:
```bash
pynsist installer.cfg
```
* Go to [releases](#https://github.com/rossumai/rossum/releases) and upload the newest .exe file from the
`.build` folder of your `rossum` repository to the newest release
## Changelog
### 2022-08-04 v3.15.0
* feat(.gitignore): ignore vscode
* feat(api_client): add email param for user creation
* feat(tox) add py39 test env
* ref(README) format file by linter
* build(pre-commit) update versions
### 2022-02-18 v3.14.0
* Ensure compatibility with click<8.1.0
### 2021-11-1 v3.13.1 and v3.13.2
* Update setup of the release process for pypi
### 2021-10-29 v3.13.0
* Add method for getting annotations
* Refactor sideloading functionality to enable sideloading of new objects
* Add sideloading option for get_paginated() method
### 2021-10-29 v3.12.1
* Propagate changelogs to the releases
### 2021-10-24 v3.12.0
* Allow sending new attributes to API when creating hooks
* Response is being propagated to the RossumException
* Added functions to iterate over hook payload easily
* Fix for library versioning due to incorrectly published tags
### 2021-09-06 v3.10.0
* Allow creation of inbox without passing bounce email
* Allow uploading documents by passing file as bytes to the API client
### 2021-04-18 v3.9.1
* Include tenacity library in the Windows build
### 2021-04-15 v3.9.0
* Allow filtering specific queue IDs when listing all user's queues
### 2021-04-06 v3.8.0
* Allow passing token_owner, test and run_after attributes when creating and changing hook objects
### 2021-04-01 v3.7.0
* Applied configurable retry mechanism to all requests done via rossum library
* Enable assigning annotator_limited role to user
### 2021-03-04 v3.6.0
* Allow setting rir_params for queues
### 2021-01-25 v3.5.0
* Allow setting custom timeout for APIClient requests
* Use openpyxl engine for xlsx files reading
* Apply minor code optimalization fixes
### 2020-11-16 v3.4.0
* Create password command
### 2020-11-11 v3.3.0
* Allow passing parameters when listing hooks
* Fix passing metadata when creating a workspace
### 2020-10-20 v3.2.1
* Remove Obsoletes-Dist
### 2020-10-20 v3.2.0
* Enable creating serverless functions
* Add method for creating workspaces
* Allow setting up sideloading on hooks
* Refactor _request_url() to allow custom logging
### 2020-09-29 v3.1.0
* Fix missing library in setup.py
* Remove references to old package names
* Update `setup.py`
### 2020-09-29 v3.0.0
* elisctl was renamed to rossum
### 2020-07-27 v2.10.1
* Fix attribute name for setting max token lifetime
### 2020-07-24 v2.10.0
* Add `schema list` command
* Fix `webhook change` command issue
* Remove `csv get` command
* Add example script for setting up a new organisation
* Enable assigning manager role to user
* Enable setting max token lifetime
* Catch ValueError when parsing schema in XLSX
* Fix Python3.8 support
### 2020-02-18 v2.9.0
* allow editing inbox attributes separately on queue-related commands
* add support for `can_collapse` in xlsx schema
* add sample usage of elisctl library in a Python code
* make queue option required on `user create`
### 2019-10-31 v2.8.0
* Add webhook command
* Allow creating and changing inbox properties on `queue change` command
### 2019-09-30 v2.7.1
* Improve documentation
### 2019-08-13 v2.7.0
* Add command `user_assignment` for bulk assignment of users to queues
* Change command `connector create`: `queue_id` parameter needs to be specified, if there is more than one queue in organization
* Support schema attribute `width` in XLSX schema format
* Fixed: booleans, in XLSX schema format, can be specified as boolean types
* Internal: filename can be specified in `ELISClient.upload_document`
### 2019-07-30 v2.6.0
* Enable passing custom filename with upload
### 2019-07-12 v2.5.0
* Add support for schema specified in XLSX when creating queue
* Remove the necessity to specify schema file type when uploading
* Fix XML and CSV formats of `elisctl document extract`
### 2019-07-09 v2.4.0
* Add support for can_export in xlsx schema format
* Add document command
### 2019-06-21 v2.3.1
* Fix: annotator cannot use `elisctl connector list` command
### 2019-06-13 v2.3.0
* Add connector command
### 2019-06-11 v2.2.1
* Update packages for windows build.
### 2019-06-03 v2.2.0
* Added support for [`--profile`](#configure-profiles) option to all `elisctl` commands
* Fix: remove extra whitespace in xlsx schema export/import
### 2019-04-02 v2.1.0
* Added support for `--output-file` to `elisctl tools` and `elisctl schema transform`
* Fix [Schema Transformations](#schema-transformations) description in README
### 2019-03-14 v2.0.1
* Fixed MS Windows application entry point (running elisctl from the start menu)
* Fixed parsing of boolean values in xlsx schema export/import
### 2019-03-14 v2.0.0
* Disable interpolation in config parsing, so that special characters are allowed in e.g. password
* Experimental support for schema modification using xlsx file format
* Allow to show help in schema transform add (backward incompatible change)
### 2019-03-08 v1.1.1
* Fixed bug with UnicodeDecodeError in `elisctl schema get ID -O file.json` on Windows
### 2019-03-03 v1.1.0
* Added support for python 3.6
* Added `User-Agent` header (`elisctl/{version} ({platform})`) for every request to ROSSUM API
* Improved error when login fails with the provided credentials
%package help
Summary: Development documents and examples for rossum
Provides: python3-rossum-doc
%description help
6 My Queue 1 6 myqueue-ab12ee@elis.rossum.ai 7 27
```
Download schema as a json:
```shell
rossum schema get 7 -O schema.json
```
Open the `schema.json` file in you favourite editor and upload modified version back to Rossum.
```shell
rossum schema update 7 --rewrite schema.json
```
You can also edit schema as an Excel (xlsx) file.
```shell
rossum schema get 7 --format xlsx -O schema.xlsx
rossum schema update 7 --rewrite schema.xlsx
```
From now on, documents will follow new schema. (Warning! If you don't use `--rewrite` option,
the new schema will receive a new id - obtain it by `queue list` again.)
## Schema Transformations
In addition, there is a scripting support for many common schema operations,
that may be easily used for schema management automation. See `rossum schema transform`
and `rossum tools` tools for further reference.
Run something like:
```shell
$ rossum schema transform substitute-options default_schema.json centre <( \
rossum tools xls_to_csv ~/Downloads/ERA_osnova_strediska.xlsx --header 0 --sheet 1 | rossum tools csv_to_options - ) \
| rossum schema transform substitute-options - gl_code <( \
rossum tools xls_to_csv ~/Downloads/ERA_osnova_strediska.xlsx --header 0 | rossum tools csv_to_options - ) \
| rossum schema transform remove - contract \
> era_schema.json
```
## License
MIT
## Contributing
* Use [`pre-commit`](https://pre-commit.com/#install) to avoid linting issues.
* Submit a pull request from forked version of this repo.
* Select any of the maintainers as a reviewer.
* After an approved review, when releasing, a `Collaborator` with `Admin` role shall do the following in `master` branch:
* Update the Changelog in README, describing all the changes included in the newest release
* run:
```bash
bump2version minor
git push
git push --tags
```
* In the end, to build a Windows installer, run:
```bash
pynsist installer.cfg
```
* Go to [releases](#https://github.com/rossumai/rossum/releases) and upload the newest .exe file from the
`.build` folder of your `rossum` repository to the newest release
## Changelog
### 2022-08-04 v3.15.0
* feat(.gitignore): ignore vscode
* feat(api_client): add email param for user creation
* feat(tox) add py39 test env
* ref(README) format file by linter
* build(pre-commit) update versions
### 2022-02-18 v3.14.0
* Ensure compatibility with click<8.1.0
### 2021-11-1 v3.13.1 and v3.13.2
* Update setup of the release process for pypi
### 2021-10-29 v3.13.0
* Add method for getting annotations
* Refactor sideloading functionality to enable sideloading of new objects
* Add sideloading option for get_paginated() method
### 2021-10-29 v3.12.1
* Propagate changelogs to the releases
### 2021-10-24 v3.12.0
* Allow sending new attributes to API when creating hooks
* Response is being propagated to the RossumException
* Added functions to iterate over hook payload easily
* Fix for library versioning due to incorrectly published tags
### 2021-09-06 v3.10.0
* Allow creation of inbox without passing bounce email
* Allow uploading documents by passing file as bytes to the API client
### 2021-04-18 v3.9.1
* Include tenacity library in the Windows build
### 2021-04-15 v3.9.0
* Allow filtering specific queue IDs when listing all user's queues
### 2021-04-06 v3.8.0
* Allow passing token_owner, test and run_after attributes when creating and changing hook objects
### 2021-04-01 v3.7.0
* Applied configurable retry mechanism to all requests done via rossum library
* Enable assigning annotator_limited role to user
### 2021-03-04 v3.6.0
* Allow setting rir_params for queues
### 2021-01-25 v3.5.0
* Allow setting custom timeout for APIClient requests
* Use openpyxl engine for xlsx files reading
* Apply minor code optimalization fixes
### 2020-11-16 v3.4.0
* Create password command
### 2020-11-11 v3.3.0
* Allow passing parameters when listing hooks
* Fix passing metadata when creating a workspace
### 2020-10-20 v3.2.1
* Remove Obsoletes-Dist
### 2020-10-20 v3.2.0
* Enable creating serverless functions
* Add method for creating workspaces
* Allow setting up sideloading on hooks
* Refactor _request_url() to allow custom logging
### 2020-09-29 v3.1.0
* Fix missing library in setup.py
* Remove references to old package names
* Update `setup.py`
### 2020-09-29 v3.0.0
* elisctl was renamed to rossum
### 2020-07-27 v2.10.1
* Fix attribute name for setting max token lifetime
### 2020-07-24 v2.10.0
* Add `schema list` command
* Fix `webhook change` command issue
* Remove `csv get` command
* Add example script for setting up a new organisation
* Enable assigning manager role to user
* Enable setting max token lifetime
* Catch ValueError when parsing schema in XLSX
* Fix Python3.8 support
### 2020-02-18 v2.9.0
* allow editing inbox attributes separately on queue-related commands
* add support for `can_collapse` in xlsx schema
* add sample usage of elisctl library in a Python code
* make queue option required on `user create`
### 2019-10-31 v2.8.0
* Add webhook command
* Allow creating and changing inbox properties on `queue change` command
### 2019-09-30 v2.7.1
* Improve documentation
### 2019-08-13 v2.7.0
* Add command `user_assignment` for bulk assignment of users to queues
* Change command `connector create`: `queue_id` parameter needs to be specified, if there is more than one queue in organization
* Support schema attribute `width` in XLSX schema format
* Fixed: booleans, in XLSX schema format, can be specified as boolean types
* Internal: filename can be specified in `ELISClient.upload_document`
### 2019-07-30 v2.6.0
* Enable passing custom filename with upload
### 2019-07-12 v2.5.0
* Add support for schema specified in XLSX when creating queue
* Remove the necessity to specify schema file type when uploading
* Fix XML and CSV formats of `elisctl document extract`
### 2019-07-09 v2.4.0
* Add support for can_export in xlsx schema format
* Add document command
### 2019-06-21 v2.3.1
* Fix: annotator cannot use `elisctl connector list` command
### 2019-06-13 v2.3.0
* Add connector command
### 2019-06-11 v2.2.1
* Update packages for windows build.
### 2019-06-03 v2.2.0
* Added support for [`--profile`](#configure-profiles) option to all `elisctl` commands
* Fix: remove extra whitespace in xlsx schema export/import
### 2019-04-02 v2.1.0
* Added support for `--output-file` to `elisctl tools` and `elisctl schema transform`
* Fix [Schema Transformations](#schema-transformations) description in README
### 2019-03-14 v2.0.1
* Fixed MS Windows application entry point (running elisctl from the start menu)
* Fixed parsing of boolean values in xlsx schema export/import
### 2019-03-14 v2.0.0
* Disable interpolation in config parsing, so that special characters are allowed in e.g. password
* Experimental support for schema modification using xlsx file format
* Allow to show help in schema transform add (backward incompatible change)
### 2019-03-08 v1.1.1
* Fixed bug with UnicodeDecodeError in `elisctl schema get ID -O file.json` on Windows
### 2019-03-03 v1.1.0
* Added support for python 3.6
* Added `User-Agent` header (`elisctl/{version} ({platform})`) for every request to ROSSUM API
* Improved error when login fails with the provided credentials
%prep
%autosetup -n rossum-3.15.0
%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-rossum -f filelist.lst
%dir %{python3_sitelib}/*
%files help -f doclist.lst
%{_docdir}/*
%changelog
* Tue May 30 2023 Python_Bot <Python_Bot@openeuler.org> - 3.15.0-1
- Package Spec generated
|