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
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
|
%global _empty_manifest_terminate_build 0
Name: python-qtsass
Version: 0.3.2
Release: 1
Summary: Compile SCSS files to valid Qt stylesheets.
License: MIT
URL: https://github.com/spyder-ide/qtsass
Source0: https://mirrors.nju.edu.cn/pypi/web/packages/20/65/9191a3d6ebaadd65fc2510964e9bf9bb3e83ea47e2ae0951125db2b796a8/qtsass-0.3.2.tar.gz
BuildArch: noarch
Requires: python3-libsass
%description
# QtSASS: Compile SCSS files to Qt stylesheets
[](./LICENSE.txt)
[](#backers)
[](https://gitter.im/spyder-ide/public)<br>
[](https://github.com/spyder-ide/qtsass/actions)
[](https://codecov.io/gh/spyder-ide/qtsass)
[](https://scrutinizer-ci.com/g/spyder-ide/qtsass/?branch=master)
*Copyright © 2015 Yann Lanthony*
*Copyright © 2017–2018 Spyder Project Contributors*
## Overview
[SASS](http://sass-lang.com/) brings countless amazing features to CSS.
Besides being used in web development, CSS is also the way to stylize Qt-based desktop applications.
However, Qt's CSS has a few variations that prevent the direct use of SASS compiler.
The purpose of this tool is to fill the gap between SASS and Qt-CSS by handling those variations.
## Qt's CSS specificities
The goal of QtSASS is to be able to generate a Qt-CSS stylesheet based on a 100% valid SASS file.
This is how it deals with Qt's specifics and how you should modify your CSS stylesheet to use QtSASS.
#### "!" in selectors
Qt allows to define the style of a widget according to its states, like this:
```css
QLineEdit:enabled {
...
}
```
However, a "not" state is problematic because it introduces an exclamation mark in the selector's name, which is not valid SASS/CSS:
```css
QLineEdit:!editable {
...
}
```
QtSASS allows "!" in selectors' names; the SASS file is preprocessed and any occurence of `:!` is replaced by `:_qnot_` (for "Qt not").
However, using this feature prevents from having a 100% valid SASS file, so this support of `!` might change in the future.
This can be replaced by the direct use of the `_qnot_` keyword in your SASS file:
```css
QLineEdit:_qnot_editable { /* will generate QLineEdit:!editable { */
...
}
```
#### qlineargradient
The qlineargradient function also has a non-valid CSS syntax.
```css
qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0.1 blue, stop: 0.8 green)
```
To support qlineargradient QtSASS provides a preprocessor and a SASS implementation of the qlineargradient function. The above QSS syntax will be replaced with the following:
```css
qlineargradient(0, 0, 0, 1, (0.1 blue, 0.8 green))
```
You may also use this syntax directly in your QtSASS.
```
qlineargradient(0, 0, 0, 1, (0.1 blue, 0.8 green))
# the stops parameter is a list, so you can also use variables:
$stops = 0.1 blue, 0.8 green
qlineargradient(0, 0, 0, 0, $stops)
```
#### qrgba
Qt's rgba:
```css
rgba(255, 128, 128, 50%)
```
is replaced by CSS rgba:
```css
rgba(255, 128, 128, 0.5)
```
## Executable usage
To compile your SASS stylesheet to a Qt compliant CSS file:
```bash
# If -o is omitted, output will be printed to console
qtsass style.scss -o style.css
```
To use the watch mode and get your stylesheet auto recompiled on each file save:
```bash
# If -o is omitted, output will be print to console
qtsass style.scss -o style.css -w
```
To compile a directory containing SASS stylesheets to Qt compliant CSS files:
```bash
qtsass ./static/scss -o ./static/css
```
You can also use watch mode to watch the entire directory for changes.
```bash
qtsass ./static/scss -o ./static/css -w
```
Set the Environment Variable QTSASS_DEBUG to 1 or pass the --debug flag to enable logging.
```bash
qtsass ./static/scss -o ./static/css --debug
```
## API methods
### `compile(string, **kwargs)`
Conform and Compile QtSASS source code to CSS.
This function conforms QtSASS to valid SCSS before passing it to
sass.compile. Any keyword arguments you provide will be combined with
qtsass's default keyword arguments and passed to sass.compile.
Examples:
```bash
>>> import qtsass
>>> qtsass.compile("QWidget {background: rgb(0, 0, 0);}")
QWidget {background:black;}
```
Arguments:
- string: QtSASS source code to conform and compile.
- kwargs: Keyword arguments to pass to sass.compile
Returns:
- Qt compliant CSS string
### `compile_filename(input_file, dest_file, **kwargs)`:
Compile and save QtSASS file as Qt compliant CSS.
Examples:
```bash
>>> import qtsass
>>> qtsass.compile_filename('dummy.scss', 'dummy.css')
```
Arguments:
- input_file: Path to QtSass file.
- dest_file: Path to destination Qt compliant CSS file.
- kwargs: Keyword arguments to pass to sass.compile
### `compile_filename(input_file, output_file, **kwargs)`:
Compile and save QtSASS file as Qt compliant CSS.
Examples:
```bash
>>> import qtsass
>>> qtsass.compile_filename('dummy.scss', 'dummy.css')
```
Arguments:
- input_file: Path to QtSass file.
- output_file: Path to write Qt compliant CSS.
- kwargs: Keyword arguments to pass to sass.compile
### `compile_dirname(input_dir, output_dir, **kwargs)`:
Compiles QtSASS files in a directory including subdirectories.
```bash
>>> import qtsass
>>> qtsass.compile_dirname("./scss", "./css")
```
Arguments:
- input_dir: Path to directory containing QtSass files.
- output_dir: Directory to write compiled Qt compliant CSS files to.
- kwargs: Keyword arguments to pass to sass.compile
### `enable_logging(level=None, handler=None)`:
Enable logging for qtsass.
Sets the qtsass logger's level to:
1. the provided logging level
2. logging.DEBUG if the QTSASS_DEBUG envvar is a True value
3. logging.WARNING
```bash
>>> import logging
>>> import qtsass
>>> handler = logging.StreamHandler()
>>> formatter = logging.Formatter('%(level)-8s: %(name)s> %(message)s')
>>> handler.setFormatter(formatter)
>>> qtsass.enable_logging(level=logging.DEBUG, handler=handler)
```
Arguments:
- level: Optional logging level
- handler: Optional handler to add
### `watch(source, destination, compiler=None, Watcher=None)`:
Watches a source file or directory, compiling QtSass files when modified.
The compiler function defaults to compile_filename when source is a file
and compile_dirname when source is a directory.
Arguments:
- source: Path to source QtSass file or directory.
- destination: Path to output css file or directory.
- compiler: Compile function (optional)
- Watcher: Defaults to qtsass.watchers.Watcher (optional)
Returns:
- qtsass.watchers.Watcher instance
## Contributing
Everyone is welcome to contribute!
## Sponsors
Spyder and its subprojects are funded thanks to the generous support of
[](https://www.quansight.com/)[](https://numfocus.org/)
and the donations we have received from our users around the world through [Open Collective](https://opencollective.com/spyder/):
[](https://opencollective.com/spyder#support)
Please consider becoming a sponsor!
%package -n python3-qtsass
Summary: Compile SCSS files to valid Qt stylesheets.
Provides: python-qtsass
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pip
%description -n python3-qtsass
# QtSASS: Compile SCSS files to Qt stylesheets
[](./LICENSE.txt)
[](#backers)
[](https://gitter.im/spyder-ide/public)<br>
[](https://github.com/spyder-ide/qtsass/actions)
[](https://codecov.io/gh/spyder-ide/qtsass)
[](https://scrutinizer-ci.com/g/spyder-ide/qtsass/?branch=master)
*Copyright © 2015 Yann Lanthony*
*Copyright © 2017–2018 Spyder Project Contributors*
## Overview
[SASS](http://sass-lang.com/) brings countless amazing features to CSS.
Besides being used in web development, CSS is also the way to stylize Qt-based desktop applications.
However, Qt's CSS has a few variations that prevent the direct use of SASS compiler.
The purpose of this tool is to fill the gap between SASS and Qt-CSS by handling those variations.
## Qt's CSS specificities
The goal of QtSASS is to be able to generate a Qt-CSS stylesheet based on a 100% valid SASS file.
This is how it deals with Qt's specifics and how you should modify your CSS stylesheet to use QtSASS.
#### "!" in selectors
Qt allows to define the style of a widget according to its states, like this:
```css
QLineEdit:enabled {
...
}
```
However, a "not" state is problematic because it introduces an exclamation mark in the selector's name, which is not valid SASS/CSS:
```css
QLineEdit:!editable {
...
}
```
QtSASS allows "!" in selectors' names; the SASS file is preprocessed and any occurence of `:!` is replaced by `:_qnot_` (for "Qt not").
However, using this feature prevents from having a 100% valid SASS file, so this support of `!` might change in the future.
This can be replaced by the direct use of the `_qnot_` keyword in your SASS file:
```css
QLineEdit:_qnot_editable { /* will generate QLineEdit:!editable { */
...
}
```
#### qlineargradient
The qlineargradient function also has a non-valid CSS syntax.
```css
qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0.1 blue, stop: 0.8 green)
```
To support qlineargradient QtSASS provides a preprocessor and a SASS implementation of the qlineargradient function. The above QSS syntax will be replaced with the following:
```css
qlineargradient(0, 0, 0, 1, (0.1 blue, 0.8 green))
```
You may also use this syntax directly in your QtSASS.
```
qlineargradient(0, 0, 0, 1, (0.1 blue, 0.8 green))
# the stops parameter is a list, so you can also use variables:
$stops = 0.1 blue, 0.8 green
qlineargradient(0, 0, 0, 0, $stops)
```
#### qrgba
Qt's rgba:
```css
rgba(255, 128, 128, 50%)
```
is replaced by CSS rgba:
```css
rgba(255, 128, 128, 0.5)
```
## Executable usage
To compile your SASS stylesheet to a Qt compliant CSS file:
```bash
# If -o is omitted, output will be printed to console
qtsass style.scss -o style.css
```
To use the watch mode and get your stylesheet auto recompiled on each file save:
```bash
# If -o is omitted, output will be print to console
qtsass style.scss -o style.css -w
```
To compile a directory containing SASS stylesheets to Qt compliant CSS files:
```bash
qtsass ./static/scss -o ./static/css
```
You can also use watch mode to watch the entire directory for changes.
```bash
qtsass ./static/scss -o ./static/css -w
```
Set the Environment Variable QTSASS_DEBUG to 1 or pass the --debug flag to enable logging.
```bash
qtsass ./static/scss -o ./static/css --debug
```
## API methods
### `compile(string, **kwargs)`
Conform and Compile QtSASS source code to CSS.
This function conforms QtSASS to valid SCSS before passing it to
sass.compile. Any keyword arguments you provide will be combined with
qtsass's default keyword arguments and passed to sass.compile.
Examples:
```bash
>>> import qtsass
>>> qtsass.compile("QWidget {background: rgb(0, 0, 0);}")
QWidget {background:black;}
```
Arguments:
- string: QtSASS source code to conform and compile.
- kwargs: Keyword arguments to pass to sass.compile
Returns:
- Qt compliant CSS string
### `compile_filename(input_file, dest_file, **kwargs)`:
Compile and save QtSASS file as Qt compliant CSS.
Examples:
```bash
>>> import qtsass
>>> qtsass.compile_filename('dummy.scss', 'dummy.css')
```
Arguments:
- input_file: Path to QtSass file.
- dest_file: Path to destination Qt compliant CSS file.
- kwargs: Keyword arguments to pass to sass.compile
### `compile_filename(input_file, output_file, **kwargs)`:
Compile and save QtSASS file as Qt compliant CSS.
Examples:
```bash
>>> import qtsass
>>> qtsass.compile_filename('dummy.scss', 'dummy.css')
```
Arguments:
- input_file: Path to QtSass file.
- output_file: Path to write Qt compliant CSS.
- kwargs: Keyword arguments to pass to sass.compile
### `compile_dirname(input_dir, output_dir, **kwargs)`:
Compiles QtSASS files in a directory including subdirectories.
```bash
>>> import qtsass
>>> qtsass.compile_dirname("./scss", "./css")
```
Arguments:
- input_dir: Path to directory containing QtSass files.
- output_dir: Directory to write compiled Qt compliant CSS files to.
- kwargs: Keyword arguments to pass to sass.compile
### `enable_logging(level=None, handler=None)`:
Enable logging for qtsass.
Sets the qtsass logger's level to:
1. the provided logging level
2. logging.DEBUG if the QTSASS_DEBUG envvar is a True value
3. logging.WARNING
```bash
>>> import logging
>>> import qtsass
>>> handler = logging.StreamHandler()
>>> formatter = logging.Formatter('%(level)-8s: %(name)s> %(message)s')
>>> handler.setFormatter(formatter)
>>> qtsass.enable_logging(level=logging.DEBUG, handler=handler)
```
Arguments:
- level: Optional logging level
- handler: Optional handler to add
### `watch(source, destination, compiler=None, Watcher=None)`:
Watches a source file or directory, compiling QtSass files when modified.
The compiler function defaults to compile_filename when source is a file
and compile_dirname when source is a directory.
Arguments:
- source: Path to source QtSass file or directory.
- destination: Path to output css file or directory.
- compiler: Compile function (optional)
- Watcher: Defaults to qtsass.watchers.Watcher (optional)
Returns:
- qtsass.watchers.Watcher instance
## Contributing
Everyone is welcome to contribute!
## Sponsors
Spyder and its subprojects are funded thanks to the generous support of
[](https://www.quansight.com/)[](https://numfocus.org/)
and the donations we have received from our users around the world through [Open Collective](https://opencollective.com/spyder/):
[](https://opencollective.com/spyder#support)
Please consider becoming a sponsor!
%package help
Summary: Development documents and examples for qtsass
Provides: python3-qtsass-doc
%description help
# QtSASS: Compile SCSS files to Qt stylesheets
[](./LICENSE.txt)
[](#backers)
[](https://gitter.im/spyder-ide/public)<br>
[](https://github.com/spyder-ide/qtsass/actions)
[](https://codecov.io/gh/spyder-ide/qtsass)
[](https://scrutinizer-ci.com/g/spyder-ide/qtsass/?branch=master)
*Copyright © 2015 Yann Lanthony*
*Copyright © 2017–2018 Spyder Project Contributors*
## Overview
[SASS](http://sass-lang.com/) brings countless amazing features to CSS.
Besides being used in web development, CSS is also the way to stylize Qt-based desktop applications.
However, Qt's CSS has a few variations that prevent the direct use of SASS compiler.
The purpose of this tool is to fill the gap between SASS and Qt-CSS by handling those variations.
## Qt's CSS specificities
The goal of QtSASS is to be able to generate a Qt-CSS stylesheet based on a 100% valid SASS file.
This is how it deals with Qt's specifics and how you should modify your CSS stylesheet to use QtSASS.
#### "!" in selectors
Qt allows to define the style of a widget according to its states, like this:
```css
QLineEdit:enabled {
...
}
```
However, a "not" state is problematic because it introduces an exclamation mark in the selector's name, which is not valid SASS/CSS:
```css
QLineEdit:!editable {
...
}
```
QtSASS allows "!" in selectors' names; the SASS file is preprocessed and any occurence of `:!` is replaced by `:_qnot_` (for "Qt not").
However, using this feature prevents from having a 100% valid SASS file, so this support of `!` might change in the future.
This can be replaced by the direct use of the `_qnot_` keyword in your SASS file:
```css
QLineEdit:_qnot_editable { /* will generate QLineEdit:!editable { */
...
}
```
#### qlineargradient
The qlineargradient function also has a non-valid CSS syntax.
```css
qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0.1 blue, stop: 0.8 green)
```
To support qlineargradient QtSASS provides a preprocessor and a SASS implementation of the qlineargradient function. The above QSS syntax will be replaced with the following:
```css
qlineargradient(0, 0, 0, 1, (0.1 blue, 0.8 green))
```
You may also use this syntax directly in your QtSASS.
```
qlineargradient(0, 0, 0, 1, (0.1 blue, 0.8 green))
# the stops parameter is a list, so you can also use variables:
$stops = 0.1 blue, 0.8 green
qlineargradient(0, 0, 0, 0, $stops)
```
#### qrgba
Qt's rgba:
```css
rgba(255, 128, 128, 50%)
```
is replaced by CSS rgba:
```css
rgba(255, 128, 128, 0.5)
```
## Executable usage
To compile your SASS stylesheet to a Qt compliant CSS file:
```bash
# If -o is omitted, output will be printed to console
qtsass style.scss -o style.css
```
To use the watch mode and get your stylesheet auto recompiled on each file save:
```bash
# If -o is omitted, output will be print to console
qtsass style.scss -o style.css -w
```
To compile a directory containing SASS stylesheets to Qt compliant CSS files:
```bash
qtsass ./static/scss -o ./static/css
```
You can also use watch mode to watch the entire directory for changes.
```bash
qtsass ./static/scss -o ./static/css -w
```
Set the Environment Variable QTSASS_DEBUG to 1 or pass the --debug flag to enable logging.
```bash
qtsass ./static/scss -o ./static/css --debug
```
## API methods
### `compile(string, **kwargs)`
Conform and Compile QtSASS source code to CSS.
This function conforms QtSASS to valid SCSS before passing it to
sass.compile. Any keyword arguments you provide will be combined with
qtsass's default keyword arguments and passed to sass.compile.
Examples:
```bash
>>> import qtsass
>>> qtsass.compile("QWidget {background: rgb(0, 0, 0);}")
QWidget {background:black;}
```
Arguments:
- string: QtSASS source code to conform and compile.
- kwargs: Keyword arguments to pass to sass.compile
Returns:
- Qt compliant CSS string
### `compile_filename(input_file, dest_file, **kwargs)`:
Compile and save QtSASS file as Qt compliant CSS.
Examples:
```bash
>>> import qtsass
>>> qtsass.compile_filename('dummy.scss', 'dummy.css')
```
Arguments:
- input_file: Path to QtSass file.
- dest_file: Path to destination Qt compliant CSS file.
- kwargs: Keyword arguments to pass to sass.compile
### `compile_filename(input_file, output_file, **kwargs)`:
Compile and save QtSASS file as Qt compliant CSS.
Examples:
```bash
>>> import qtsass
>>> qtsass.compile_filename('dummy.scss', 'dummy.css')
```
Arguments:
- input_file: Path to QtSass file.
- output_file: Path to write Qt compliant CSS.
- kwargs: Keyword arguments to pass to sass.compile
### `compile_dirname(input_dir, output_dir, **kwargs)`:
Compiles QtSASS files in a directory including subdirectories.
```bash
>>> import qtsass
>>> qtsass.compile_dirname("./scss", "./css")
```
Arguments:
- input_dir: Path to directory containing QtSass files.
- output_dir: Directory to write compiled Qt compliant CSS files to.
- kwargs: Keyword arguments to pass to sass.compile
### `enable_logging(level=None, handler=None)`:
Enable logging for qtsass.
Sets the qtsass logger's level to:
1. the provided logging level
2. logging.DEBUG if the QTSASS_DEBUG envvar is a True value
3. logging.WARNING
```bash
>>> import logging
>>> import qtsass
>>> handler = logging.StreamHandler()
>>> formatter = logging.Formatter('%(level)-8s: %(name)s> %(message)s')
>>> handler.setFormatter(formatter)
>>> qtsass.enable_logging(level=logging.DEBUG, handler=handler)
```
Arguments:
- level: Optional logging level
- handler: Optional handler to add
### `watch(source, destination, compiler=None, Watcher=None)`:
Watches a source file or directory, compiling QtSass files when modified.
The compiler function defaults to compile_filename when source is a file
and compile_dirname when source is a directory.
Arguments:
- source: Path to source QtSass file or directory.
- destination: Path to output css file or directory.
- compiler: Compile function (optional)
- Watcher: Defaults to qtsass.watchers.Watcher (optional)
Returns:
- qtsass.watchers.Watcher instance
## Contributing
Everyone is welcome to contribute!
## Sponsors
Spyder and its subprojects are funded thanks to the generous support of
[](https://www.quansight.com/)[](https://numfocus.org/)
and the donations we have received from our users around the world through [Open Collective](https://opencollective.com/spyder/):
[](https://opencollective.com/spyder#support)
Please consider becoming a sponsor!
%prep
%autosetup -n qtsass-0.3.2
%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-qtsass -f filelist.lst
%dir %{python3_sitelib}/*
%files help -f doclist.lst
%{_docdir}/*
%changelog
* Thu Mar 09 2023 Python_Bot <Python_Bot@openeuler.org> - 0.3.2-1
- Package Spec generated
|