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
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
|
%global _empty_manifest_terminate_build 0
Name: python-confluence-poster
Version: 1.4.4
Release: 1
Summary: Script that updates Confluence articles from files written locally
License: MIT
URL: https://github.com/VTimofeenko/confluence_poster
Source0: https://mirrors.aliyun.com/pypi/web/packages/f1/d4/8f2f673e86e1229827a8c77c08ecaf9e547ce65376c007cb235040bbbddf/confluence_poster-1.4.4.tar.gz
BuildArch: noarch
Requires: python3-atlassian-python-api
Requires: python3-typer
Requires: python3-toml
Requires: python3-requests
Requires: python3-pyxdg
Requires: python3-tomlkit
Requires: python3-click
Requires: python3-markdown
Requires: python3-jinja2
Requires: python3-typer-cli
%description
# Description
Supplementary script for writing Confluence articles in
local editor. Uses information from the config to post the article content to Confluence.
May be used either on its own:
$ confluence_poster post-page
Or as a filter:
$ cat file.md | confluence_poster --file-format markdown post-page
# Getting started
## Installation
1. Install the project from PyPI:
```console
$ pip install confluence-poster
```
2. Create the config manually
([sample available in repo](https://github.com/VTimofeenko/confluence_poster/blob/master/config.toml)) or run `confluence_poster create-config` to run a configuration wizard
Alternatively, install `app-text/confluence_poster` from [nitratesky overlay](https://github.com/VTimofeenko/nitratesky).
## Sample usage
User edits the page text and keeps it in file `page1.md`.
Two files `attachment1.docx` and `attachment2.docx` need to be attached to the page.
Given the following files in the current directory:
```
├── attachment1.docx
├── attachment2.png
├── poster_config.toml
└── page1.md
```
`poster_config.toml` contains:
```toml
[pages]
[pages.page1]
page_title = "Some page"
page_file = "page1.md"
page_space = "SPACE"
```
config inside `${HOME}/.config/confluence_poster/` contains the authentication information and the Confluence URL.
Running
```console
$ confluence_poster --config poster_config.toml post-page --upload-files attachment1.docx attachment2.png
```
will attempt to locate the page on Confluence, update its content with the text in `page1.md` and attach the files to it.
If the script cannot locate the page by title, it will prompt the user to create it, optionally under a parent page.
# Details
**Usage**:
```console
$ confluence_poster [OPTIONS] COMMAND [ARGS]...
```
**General Options**:
* `--version`: Show version and exit.
* `--config PATH`: The file containing configuration. If not specified - config.toml from the same directory is used [default: config.toml]
* `--page-title TEXT`: Override page title from config. Applicable if there is only one page.
* `--parent-page-title TEXT`: Provide a parent title to search for. Applicable if there is only one page.
* `--page-file PATH`: Provide the path to the file containing page text. Allows passing '-' to read from stdin.
* `--password TEXT`: Supply the password in command line. [env var: CONFLUENCE_PASSWORD]
* `--force`: Force overwrite the pages. Skips all checks for different author of the updated page. To set for individual pages you can specify field 'force_overwrite' in config.
* `--force-create`: Disable prompts to create pages. Script could still prompt for a parent page.
* `--minor-edit`: Do not notify watchers of pages updates. Not enabled by default.
* `--report`: Print report at the end of the run. Not enabled by default.
* `--debug`: Enable debug logging. Not enabled by default.
* `--quiet`: Suppresses certain output.
* `--install-completion`: Install completion for the current shell.
* `--show-completion`: Show completion for the current shell, to copy it or customize the installation.
* `--help`: Show this message and exit.
These options can be specified for any `COMMAND` except for `create-config` which ignores these options.
**Commands**:
* `convert-markdown`: Converts single page text to html.
* `create-config`: Runs configuration wizard.
* `post-page`: Posts the content of the pages.
* `validate`: Validates the provided settings.
# Commands
## `confluence_poster post-page`
Posts the content of the pages.
**Usage**:
```console
$ confluence_poster post-page [OPTIONS] [FILES]...
```
**Options**:
* `--upload-files`: Upload list of files.
* `--version-comment TEXT`: Provider version comment.
* `--create-in-space-root`: Create the page in space root.
* `--file-format [confluencewiki|markdown|html|None]`: File format of the file with the page content. If provided at runtime - can only be applied to a single page. If set to 'None'(default) - script will try to guess it during the run.
* `--help`: Show this message and exit.
## `confluence_poster validate`
Validates the provided settings. If 'online' flag is passed - tries to fetch the space from the config using the
supplied credentials.
**Usage**:
```console
$ confluence_poster validate [OPTIONS]
```
**Options**:
* `--online`: Test the provided authentication settings on the actual instance of Confluence.
* `--help`: Show this message and exit.
## `confluence_poster create-config`
Runs configuration wizard. The wizard guides through setting up values for configuration file.
**Options**:
* `--local-only`: Create config only in the local folder.
* `--home-only`: Create config only in the $XDG_CONFIG_HOME.
* `--help`: Show this message and exit.
# Configuration file format
By default the confluence_poster tries to look for configuration file `config.toml` in the directory where it is invoked and in
$XDG_CONFIG_HOME. The format is as follows:
```toml
# If the page was not updated by the username specified here, throw an error.
# If this setting is omitted - username from auth section is used for checks.
author = "author_username"
[pages]
[pages.default]
# Space key. E.g. for space "local-dev" the space key is "LOC"
# Space defined here will be used if a page section below does not specify it
page_space = "DEFAULT_SPACE_KEY"
[pages.page1]
# The title of the page
page_title = "Some page title"
# The filename with page content
page_file = "some_file.confluencewiki"
# If specified - overrides the default page_space
page_space = "some_space_key"
# If specified as "true" - username check is always skipped for this page
force_overwrite = false
# If specified - the page will be created without looking for a parent under specified parent
page_parent_title = "Parent page title"
# If specified - script will convert the text in the file before posting it. If not specified - script will try to guess it based on file extension.
page_file_format = "confluencewiki"
[pages.page2]
page_title = "Some other page title"
page_file = "some_other_file.confluencewiki"
[auth]
# URL of Confluence instance
confluence_url = "https://confluence.local"
# Username for authentication
username = "confluence_username"
# Password may also be supplied through --password option or from an environment variable CONFLUENCE_PASSWORD
password = "confluence_password"
# Whether the Confluence instance is a "cloud" one
is_cloud = false
```
**Note on password and Cloud instances**: if Confluence instance is hosted by Atlassian, the password is the API token.
Follow instructions at [this link](https://confluence.atlassian.com/cloud/api-tokens-938839638.html).
# File formats
confluence_poster supports the following formats for posting pages:
* [Confluencewiki](https://confluence.atlassian.com/doc/confluence-wiki-markup-251003035.html)
* Markdown
* Html
The format may be specified explicitly in the configuration file, passed during the runtime, or the script will try to guess it by the file extension.
# Contrib directory
There are shell completions for bash and zsh (generated through [typer](typer.tiangolo.com/)) as well as a sample of
[git post-commit hook](https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks).
# See also
* [Vim confluencewiki syntax](https://www.vim.org/scripts/script.php?script_id=1994)
* [Paste confluence image in vim](https://github.com/VTimofeenko/confluencewiki-img-paste.vim)
* [Atlassian python API](https://atlassian-python-api.readthedocs.io/en/latest/) (On [Github](https://github.com/atlassian-api/atlassian-python-api))
%package -n python3-confluence-poster
Summary: Script that updates Confluence articles from files written locally
Provides: python-confluence-poster
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pip
%description -n python3-confluence-poster
# Description
Supplementary script for writing Confluence articles in
local editor. Uses information from the config to post the article content to Confluence.
May be used either on its own:
$ confluence_poster post-page
Or as a filter:
$ cat file.md | confluence_poster --file-format markdown post-page
# Getting started
## Installation
1. Install the project from PyPI:
```console
$ pip install confluence-poster
```
2. Create the config manually
([sample available in repo](https://github.com/VTimofeenko/confluence_poster/blob/master/config.toml)) or run `confluence_poster create-config` to run a configuration wizard
Alternatively, install `app-text/confluence_poster` from [nitratesky overlay](https://github.com/VTimofeenko/nitratesky).
## Sample usage
User edits the page text and keeps it in file `page1.md`.
Two files `attachment1.docx` and `attachment2.docx` need to be attached to the page.
Given the following files in the current directory:
```
├── attachment1.docx
├── attachment2.png
├── poster_config.toml
└── page1.md
```
`poster_config.toml` contains:
```toml
[pages]
[pages.page1]
page_title = "Some page"
page_file = "page1.md"
page_space = "SPACE"
```
config inside `${HOME}/.config/confluence_poster/` contains the authentication information and the Confluence URL.
Running
```console
$ confluence_poster --config poster_config.toml post-page --upload-files attachment1.docx attachment2.png
```
will attempt to locate the page on Confluence, update its content with the text in `page1.md` and attach the files to it.
If the script cannot locate the page by title, it will prompt the user to create it, optionally under a parent page.
# Details
**Usage**:
```console
$ confluence_poster [OPTIONS] COMMAND [ARGS]...
```
**General Options**:
* `--version`: Show version and exit.
* `--config PATH`: The file containing configuration. If not specified - config.toml from the same directory is used [default: config.toml]
* `--page-title TEXT`: Override page title from config. Applicable if there is only one page.
* `--parent-page-title TEXT`: Provide a parent title to search for. Applicable if there is only one page.
* `--page-file PATH`: Provide the path to the file containing page text. Allows passing '-' to read from stdin.
* `--password TEXT`: Supply the password in command line. [env var: CONFLUENCE_PASSWORD]
* `--force`: Force overwrite the pages. Skips all checks for different author of the updated page. To set for individual pages you can specify field 'force_overwrite' in config.
* `--force-create`: Disable prompts to create pages. Script could still prompt for a parent page.
* `--minor-edit`: Do not notify watchers of pages updates. Not enabled by default.
* `--report`: Print report at the end of the run. Not enabled by default.
* `--debug`: Enable debug logging. Not enabled by default.
* `--quiet`: Suppresses certain output.
* `--install-completion`: Install completion for the current shell.
* `--show-completion`: Show completion for the current shell, to copy it or customize the installation.
* `--help`: Show this message and exit.
These options can be specified for any `COMMAND` except for `create-config` which ignores these options.
**Commands**:
* `convert-markdown`: Converts single page text to html.
* `create-config`: Runs configuration wizard.
* `post-page`: Posts the content of the pages.
* `validate`: Validates the provided settings.
# Commands
## `confluence_poster post-page`
Posts the content of the pages.
**Usage**:
```console
$ confluence_poster post-page [OPTIONS] [FILES]...
```
**Options**:
* `--upload-files`: Upload list of files.
* `--version-comment TEXT`: Provider version comment.
* `--create-in-space-root`: Create the page in space root.
* `--file-format [confluencewiki|markdown|html|None]`: File format of the file with the page content. If provided at runtime - can only be applied to a single page. If set to 'None'(default) - script will try to guess it during the run.
* `--help`: Show this message and exit.
## `confluence_poster validate`
Validates the provided settings. If 'online' flag is passed - tries to fetch the space from the config using the
supplied credentials.
**Usage**:
```console
$ confluence_poster validate [OPTIONS]
```
**Options**:
* `--online`: Test the provided authentication settings on the actual instance of Confluence.
* `--help`: Show this message and exit.
## `confluence_poster create-config`
Runs configuration wizard. The wizard guides through setting up values for configuration file.
**Options**:
* `--local-only`: Create config only in the local folder.
* `--home-only`: Create config only in the $XDG_CONFIG_HOME.
* `--help`: Show this message and exit.
# Configuration file format
By default the confluence_poster tries to look for configuration file `config.toml` in the directory where it is invoked and in
$XDG_CONFIG_HOME. The format is as follows:
```toml
# If the page was not updated by the username specified here, throw an error.
# If this setting is omitted - username from auth section is used for checks.
author = "author_username"
[pages]
[pages.default]
# Space key. E.g. for space "local-dev" the space key is "LOC"
# Space defined here will be used if a page section below does not specify it
page_space = "DEFAULT_SPACE_KEY"
[pages.page1]
# The title of the page
page_title = "Some page title"
# The filename with page content
page_file = "some_file.confluencewiki"
# If specified - overrides the default page_space
page_space = "some_space_key"
# If specified as "true" - username check is always skipped for this page
force_overwrite = false
# If specified - the page will be created without looking for a parent under specified parent
page_parent_title = "Parent page title"
# If specified - script will convert the text in the file before posting it. If not specified - script will try to guess it based on file extension.
page_file_format = "confluencewiki"
[pages.page2]
page_title = "Some other page title"
page_file = "some_other_file.confluencewiki"
[auth]
# URL of Confluence instance
confluence_url = "https://confluence.local"
# Username for authentication
username = "confluence_username"
# Password may also be supplied through --password option or from an environment variable CONFLUENCE_PASSWORD
password = "confluence_password"
# Whether the Confluence instance is a "cloud" one
is_cloud = false
```
**Note on password and Cloud instances**: if Confluence instance is hosted by Atlassian, the password is the API token.
Follow instructions at [this link](https://confluence.atlassian.com/cloud/api-tokens-938839638.html).
# File formats
confluence_poster supports the following formats for posting pages:
* [Confluencewiki](https://confluence.atlassian.com/doc/confluence-wiki-markup-251003035.html)
* Markdown
* Html
The format may be specified explicitly in the configuration file, passed during the runtime, or the script will try to guess it by the file extension.
# Contrib directory
There are shell completions for bash and zsh (generated through [typer](typer.tiangolo.com/)) as well as a sample of
[git post-commit hook](https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks).
# See also
* [Vim confluencewiki syntax](https://www.vim.org/scripts/script.php?script_id=1994)
* [Paste confluence image in vim](https://github.com/VTimofeenko/confluencewiki-img-paste.vim)
* [Atlassian python API](https://atlassian-python-api.readthedocs.io/en/latest/) (On [Github](https://github.com/atlassian-api/atlassian-python-api))
%package help
Summary: Development documents and examples for confluence-poster
Provides: python3-confluence-poster-doc
%description help
# Description
Supplementary script for writing Confluence articles in
local editor. Uses information from the config to post the article content to Confluence.
May be used either on its own:
$ confluence_poster post-page
Or as a filter:
$ cat file.md | confluence_poster --file-format markdown post-page
# Getting started
## Installation
1. Install the project from PyPI:
```console
$ pip install confluence-poster
```
2. Create the config manually
([sample available in repo](https://github.com/VTimofeenko/confluence_poster/blob/master/config.toml)) or run `confluence_poster create-config` to run a configuration wizard
Alternatively, install `app-text/confluence_poster` from [nitratesky overlay](https://github.com/VTimofeenko/nitratesky).
## Sample usage
User edits the page text and keeps it in file `page1.md`.
Two files `attachment1.docx` and `attachment2.docx` need to be attached to the page.
Given the following files in the current directory:
```
├── attachment1.docx
├── attachment2.png
├── poster_config.toml
└── page1.md
```
`poster_config.toml` contains:
```toml
[pages]
[pages.page1]
page_title = "Some page"
page_file = "page1.md"
page_space = "SPACE"
```
config inside `${HOME}/.config/confluence_poster/` contains the authentication information and the Confluence URL.
Running
```console
$ confluence_poster --config poster_config.toml post-page --upload-files attachment1.docx attachment2.png
```
will attempt to locate the page on Confluence, update its content with the text in `page1.md` and attach the files to it.
If the script cannot locate the page by title, it will prompt the user to create it, optionally under a parent page.
# Details
**Usage**:
```console
$ confluence_poster [OPTIONS] COMMAND [ARGS]...
```
**General Options**:
* `--version`: Show version and exit.
* `--config PATH`: The file containing configuration. If not specified - config.toml from the same directory is used [default: config.toml]
* `--page-title TEXT`: Override page title from config. Applicable if there is only one page.
* `--parent-page-title TEXT`: Provide a parent title to search for. Applicable if there is only one page.
* `--page-file PATH`: Provide the path to the file containing page text. Allows passing '-' to read from stdin.
* `--password TEXT`: Supply the password in command line. [env var: CONFLUENCE_PASSWORD]
* `--force`: Force overwrite the pages. Skips all checks for different author of the updated page. To set for individual pages you can specify field 'force_overwrite' in config.
* `--force-create`: Disable prompts to create pages. Script could still prompt for a parent page.
* `--minor-edit`: Do not notify watchers of pages updates. Not enabled by default.
* `--report`: Print report at the end of the run. Not enabled by default.
* `--debug`: Enable debug logging. Not enabled by default.
* `--quiet`: Suppresses certain output.
* `--install-completion`: Install completion for the current shell.
* `--show-completion`: Show completion for the current shell, to copy it or customize the installation.
* `--help`: Show this message and exit.
These options can be specified for any `COMMAND` except for `create-config` which ignores these options.
**Commands**:
* `convert-markdown`: Converts single page text to html.
* `create-config`: Runs configuration wizard.
* `post-page`: Posts the content of the pages.
* `validate`: Validates the provided settings.
# Commands
## `confluence_poster post-page`
Posts the content of the pages.
**Usage**:
```console
$ confluence_poster post-page [OPTIONS] [FILES]...
```
**Options**:
* `--upload-files`: Upload list of files.
* `--version-comment TEXT`: Provider version comment.
* `--create-in-space-root`: Create the page in space root.
* `--file-format [confluencewiki|markdown|html|None]`: File format of the file with the page content. If provided at runtime - can only be applied to a single page. If set to 'None'(default) - script will try to guess it during the run.
* `--help`: Show this message and exit.
## `confluence_poster validate`
Validates the provided settings. If 'online' flag is passed - tries to fetch the space from the config using the
supplied credentials.
**Usage**:
```console
$ confluence_poster validate [OPTIONS]
```
**Options**:
* `--online`: Test the provided authentication settings on the actual instance of Confluence.
* `--help`: Show this message and exit.
## `confluence_poster create-config`
Runs configuration wizard. The wizard guides through setting up values for configuration file.
**Options**:
* `--local-only`: Create config only in the local folder.
* `--home-only`: Create config only in the $XDG_CONFIG_HOME.
* `--help`: Show this message and exit.
# Configuration file format
By default the confluence_poster tries to look for configuration file `config.toml` in the directory where it is invoked and in
$XDG_CONFIG_HOME. The format is as follows:
```toml
# If the page was not updated by the username specified here, throw an error.
# If this setting is omitted - username from auth section is used for checks.
author = "author_username"
[pages]
[pages.default]
# Space key. E.g. for space "local-dev" the space key is "LOC"
# Space defined here will be used if a page section below does not specify it
page_space = "DEFAULT_SPACE_KEY"
[pages.page1]
# The title of the page
page_title = "Some page title"
# The filename with page content
page_file = "some_file.confluencewiki"
# If specified - overrides the default page_space
page_space = "some_space_key"
# If specified as "true" - username check is always skipped for this page
force_overwrite = false
# If specified - the page will be created without looking for a parent under specified parent
page_parent_title = "Parent page title"
# If specified - script will convert the text in the file before posting it. If not specified - script will try to guess it based on file extension.
page_file_format = "confluencewiki"
[pages.page2]
page_title = "Some other page title"
page_file = "some_other_file.confluencewiki"
[auth]
# URL of Confluence instance
confluence_url = "https://confluence.local"
# Username for authentication
username = "confluence_username"
# Password may also be supplied through --password option or from an environment variable CONFLUENCE_PASSWORD
password = "confluence_password"
# Whether the Confluence instance is a "cloud" one
is_cloud = false
```
**Note on password and Cloud instances**: if Confluence instance is hosted by Atlassian, the password is the API token.
Follow instructions at [this link](https://confluence.atlassian.com/cloud/api-tokens-938839638.html).
# File formats
confluence_poster supports the following formats for posting pages:
* [Confluencewiki](https://confluence.atlassian.com/doc/confluence-wiki-markup-251003035.html)
* Markdown
* Html
The format may be specified explicitly in the configuration file, passed during the runtime, or the script will try to guess it by the file extension.
# Contrib directory
There are shell completions for bash and zsh (generated through [typer](typer.tiangolo.com/)) as well as a sample of
[git post-commit hook](https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks).
# See also
* [Vim confluencewiki syntax](https://www.vim.org/scripts/script.php?script_id=1994)
* [Paste confluence image in vim](https://github.com/VTimofeenko/confluencewiki-img-paste.vim)
* [Atlassian python API](https://atlassian-python-api.readthedocs.io/en/latest/) (On [Github](https://github.com/atlassian-api/atlassian-python-api))
%prep
%autosetup -n confluence_poster-1.4.4
%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-confluence-poster -f filelist.lst
%dir %{python3_sitelib}/*
%files help -f doclist.lst
%{_docdir}/*
%changelog
* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 1.4.4-1
- Package Spec generated
|