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
|
%global _empty_manifest_terminate_build 0
Name: python-aiosenseme
Version: 0.6.1
Release: 1
Summary: SenseME by Big Ass Fans asynchronous Python library
License: GPL3
URL: https://github.com/mikelawrence/aiosenseme
Source0: https://mirrors.aliyun.com/pypi/web/packages/0c/e5/69c44d60f35adbb6dc8af967fbaf146122fb114dbc54aad66b3d0546be26/aiosenseme-0.6.1.tar.gz
BuildArch: noarch
Requires: python3-ifaddr
%description
# aiosenseme library
[](https://badge.fury.io/py/aiosenseme) [](https://pepy.tech/project/aiosenseme)
This asynchronous Python library provides periodic discovery, control and push-based status for SenseME fans and lights by Big Ass Fans. It was developed mainly to provide access to SenseME devices for [Home Assistant](https://www.home-assistant.io/) using asyncio but should work fine in other applications.
This library (based on [TomFaulkner's](https://github.com/TomFaulkner/SenseMe) library) keeps an open socket to each controlled fan so that state changes from any source including local control are pushed more or less immediately. This approach is far more robust and responsive. A discovery task was also added to periodically detect SenseME devices on the network.
Sniffing the packets and documenting the protocol was the work of [Bruce](http://bruce.pennypacker.org/tag/senseme-plugin/). His work in making an [Indigo plugin](https://github.com/bpennypacker/SenseME-Indigo-Plugin) made this library possible.
Thanks to [PenitentTangent2401](https://github.com/PenitentTangent2401) for help in debugging the standalone Haiku Light.
## Model Notes
* Confirmed support of Haiku, Haiku H, and Haiku L fans.
* Confirmed support of discontinued standalone Haiku Light.
* Supports [Wireless Wall Control](https://www.bigassfans.com/support/haiku-wireless-wall-control/) indirectly through fan status reporting.
* Probably supports Haiku C fans.
* The [i6 fan](https://www.bigassfans.com/fans/i6/) is NOT currently supported.
* The [es6 fan](https://www.bigassfans.com/fans/es6/) is most likely NOT supported. This is untested.
## Command line access
The aiosenseme package now installs a command line script along with the package. To discover all devices on the network type the following. Here discovery found two standard Haiku Fans and a Haiku Light. The fans are in ```Studio Fans``` room and the Haiku Light is not part of a room.
```console
$ aiosenseme --discover
Studio Beam Fan
Room Name: Studio Fans, Room Type: Family Room
Model: Haiku Fan with light, FW Version: 2.6.0
IP Addr: 192.168.1.2, MAC Addr: FF:FF:FF:FF:FF:FF
UUID: 73264cb2-1234-1234-1234-012345678912
Studio Vault Fan
Room Name: Studio Fans, Room Type: Family Room
Model: Haiku Fan with light, FW Version: 2.6.0
IP Addr: 192.168.1.3, MAC Addr: FF:FF:FF:FF:FF:FF
UUID: 73264cb2-1234-1234-1234-012345678913
Hallway Light
Model: Haiku Light, FW Version: 2.6.0
IP Addr: 192.168.1.3, MAC Addr: FF:FF:FF:FF:FF:FF
UUID: 73264cb2-1234-1234-1234-012345678913
```
To get information and state of the device type the following. This uses discovery to match the specified device name or room name.
```console
$ aiosenseme -n "Studio Vault Fan"
Studio Vault Fan
Room Name: Studio Fans, Room Type: Family Room
Model: Haiku Fan with light, FW Version: 2.6.0
IP Addr: 192.168.1.3, MAC Addr: FF:FF:FF:FF:FF:FF
UUID: 73264cb2-1234-1234-1234-012345678912
State: Fan is off, Light is off
```
Here both the fan speed is set and the light is turned on. Notice also that Whoosh was turned off when the fan speed was set specific value.
```console
$ aiosenseme --name "Studio Vault Fan" --speed 3 --light on
Studio Beam Fan
Room Name: Studio Fans, Room Type: Family Room
Model: Haiku Fan with light, FW Version: 2.6.0
IP Addr: 192.168.1.2, MAC Addr: FF:FF:FF:FF:FF:FF
UUID: 73264cb2-1234-1234-1234-012345678912
State: Fan is on (speed: 2), Light is off, Whoosh: on
New State: Fan is on (speed: 3), Light is on (brightness: 16)
```
You can also select the fan by IP address. This connects directly to the fan without using discovery.
```console
$ aiosenseme -i 192.168.1.3 --speed 4
Studio Vault Fan
Room Name: Studio Fans, Room Type: Family Room
Model: Haiku Fan with light, FW Version: 2.6.0
IP Addr: 192.168.1.3, MAC Addr: FF:FF:FF:FF:FF:FF
UUID: 73264cb2-1234-1234-1234-012345678912
State: Fan is off, Light is off
New State: Fan is on (speed: 4), Light is off
```
To change the color temperature of a Haiku Light type the following. Changing a Haiku Light color temp will not turn the light on if it is already off.
```console
$ aiosenseme --name "Hallway Light" --light on --colortemp 5000
Hallway Light
Model: Haiku Light, FW Version: 2.6.0
IP Addr: 192.168.1.3, MAC Addr: FF:FF:FF:FF:FF:FF
UUID: 73264cb2-1234-1234-1234-012345678913
State: Light is off
State: Light is on (brightness: 9, color temp: 5000)
```
To get a fan's information and state formatted as json.
```console
$ aiosenseme -i 192.168.1.3 -j
{
"address": "192.168.1.3",
"base_model": "FAN,HAIKU,SENSEME",
"device_beeper": true,
"device_indicators": true,
"fan_autocomfort": "OFF",
"fan_cooltemp": 22.77,
"fan_dir": "FWD",
"fan_on": false,
"fan_smartmode": "OFF",
"fan_speed": 0,
"fan_speed_limits_room": [
1,
7
],
"fan_speed_max": 7,
"fan_speed_min": 1,
"fan_whoosh_mode": false,
"fw_version": "2.6.0",
"has_light": true,
"has_sensor": true,
"is_fan": true,
"is_light": false,
"light_brightness": 0,
"light_brightness_limits_room": [
1,
16
],
"light_brightness_max": 16,
"light_brightness_min": 1,
"light_on": false,
"mac": "FF:FF:FF:FF:FF:FF",
"model": "Haiku Fan",
"motion_detected": false,
"motion_fan_auto": false,
"motion_light_auto": false,
"name": "Studio Vault Fan",
"network_gateway": "255.255.255.0",
"network_ip": "192.168.1.3",
"network_ssid": "Network IoT",
"network_subnetmask": "192.168.1.1",
"room_name": "Studio",
"room_type": "Family Room",
"sleep_mode": false,
"uuid": "73264cb2-1234-1234-1234-012345678913"
}
```
## Issues
* There is a lot of error handling and reconnection logic to help with the fact that these devices sometimes stop working on the network. I have managed to decrease the likelihood of this happening by keeping an open connection to the device at all times instead of using multiple socket connections but it still happens.
* Discovery sometimes just does not work and it can happen for an extended period. Connecting via IP address instead of discovery may still work.
* Early testing indicates the i6 fan from Big Ass Fans is not compatible with this library. The Big Ass Fans [website](https://www.bigassfans.com/fans/i6/) says the i6 fan has SenseME technology but it uses a different app which requires Bluetooth for initial setup. There is some [evidence](https://github.com/mikelawrence/senseme-hacs/issues/5) that WiFi is still used to control the fan from the app once setup.
* The occupancy sensor is treated differently than other fan settings/states; occupancy state changes are not pushed immediately and must be detected with periodic status updates. So unfortunately this sensor will not seem very responsive.
* UDP port 31415 must be available and not blocked by a firewall.
* This library will not handle multiple instances of discovery running on the same machine.
%package -n python3-aiosenseme
Summary: SenseME by Big Ass Fans asynchronous Python library
Provides: python-aiosenseme
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pip
%description -n python3-aiosenseme
# aiosenseme library
[](https://badge.fury.io/py/aiosenseme) [](https://pepy.tech/project/aiosenseme)
This asynchronous Python library provides periodic discovery, control and push-based status for SenseME fans and lights by Big Ass Fans. It was developed mainly to provide access to SenseME devices for [Home Assistant](https://www.home-assistant.io/) using asyncio but should work fine in other applications.
This library (based on [TomFaulkner's](https://github.com/TomFaulkner/SenseMe) library) keeps an open socket to each controlled fan so that state changes from any source including local control are pushed more or less immediately. This approach is far more robust and responsive. A discovery task was also added to periodically detect SenseME devices on the network.
Sniffing the packets and documenting the protocol was the work of [Bruce](http://bruce.pennypacker.org/tag/senseme-plugin/). His work in making an [Indigo plugin](https://github.com/bpennypacker/SenseME-Indigo-Plugin) made this library possible.
Thanks to [PenitentTangent2401](https://github.com/PenitentTangent2401) for help in debugging the standalone Haiku Light.
## Model Notes
* Confirmed support of Haiku, Haiku H, and Haiku L fans.
* Confirmed support of discontinued standalone Haiku Light.
* Supports [Wireless Wall Control](https://www.bigassfans.com/support/haiku-wireless-wall-control/) indirectly through fan status reporting.
* Probably supports Haiku C fans.
* The [i6 fan](https://www.bigassfans.com/fans/i6/) is NOT currently supported.
* The [es6 fan](https://www.bigassfans.com/fans/es6/) is most likely NOT supported. This is untested.
## Command line access
The aiosenseme package now installs a command line script along with the package. To discover all devices on the network type the following. Here discovery found two standard Haiku Fans and a Haiku Light. The fans are in ```Studio Fans``` room and the Haiku Light is not part of a room.
```console
$ aiosenseme --discover
Studio Beam Fan
Room Name: Studio Fans, Room Type: Family Room
Model: Haiku Fan with light, FW Version: 2.6.0
IP Addr: 192.168.1.2, MAC Addr: FF:FF:FF:FF:FF:FF
UUID: 73264cb2-1234-1234-1234-012345678912
Studio Vault Fan
Room Name: Studio Fans, Room Type: Family Room
Model: Haiku Fan with light, FW Version: 2.6.0
IP Addr: 192.168.1.3, MAC Addr: FF:FF:FF:FF:FF:FF
UUID: 73264cb2-1234-1234-1234-012345678913
Hallway Light
Model: Haiku Light, FW Version: 2.6.0
IP Addr: 192.168.1.3, MAC Addr: FF:FF:FF:FF:FF:FF
UUID: 73264cb2-1234-1234-1234-012345678913
```
To get information and state of the device type the following. This uses discovery to match the specified device name or room name.
```console
$ aiosenseme -n "Studio Vault Fan"
Studio Vault Fan
Room Name: Studio Fans, Room Type: Family Room
Model: Haiku Fan with light, FW Version: 2.6.0
IP Addr: 192.168.1.3, MAC Addr: FF:FF:FF:FF:FF:FF
UUID: 73264cb2-1234-1234-1234-012345678912
State: Fan is off, Light is off
```
Here both the fan speed is set and the light is turned on. Notice also that Whoosh was turned off when the fan speed was set specific value.
```console
$ aiosenseme --name "Studio Vault Fan" --speed 3 --light on
Studio Beam Fan
Room Name: Studio Fans, Room Type: Family Room
Model: Haiku Fan with light, FW Version: 2.6.0
IP Addr: 192.168.1.2, MAC Addr: FF:FF:FF:FF:FF:FF
UUID: 73264cb2-1234-1234-1234-012345678912
State: Fan is on (speed: 2), Light is off, Whoosh: on
New State: Fan is on (speed: 3), Light is on (brightness: 16)
```
You can also select the fan by IP address. This connects directly to the fan without using discovery.
```console
$ aiosenseme -i 192.168.1.3 --speed 4
Studio Vault Fan
Room Name: Studio Fans, Room Type: Family Room
Model: Haiku Fan with light, FW Version: 2.6.0
IP Addr: 192.168.1.3, MAC Addr: FF:FF:FF:FF:FF:FF
UUID: 73264cb2-1234-1234-1234-012345678912
State: Fan is off, Light is off
New State: Fan is on (speed: 4), Light is off
```
To change the color temperature of a Haiku Light type the following. Changing a Haiku Light color temp will not turn the light on if it is already off.
```console
$ aiosenseme --name "Hallway Light" --light on --colortemp 5000
Hallway Light
Model: Haiku Light, FW Version: 2.6.0
IP Addr: 192.168.1.3, MAC Addr: FF:FF:FF:FF:FF:FF
UUID: 73264cb2-1234-1234-1234-012345678913
State: Light is off
State: Light is on (brightness: 9, color temp: 5000)
```
To get a fan's information and state formatted as json.
```console
$ aiosenseme -i 192.168.1.3 -j
{
"address": "192.168.1.3",
"base_model": "FAN,HAIKU,SENSEME",
"device_beeper": true,
"device_indicators": true,
"fan_autocomfort": "OFF",
"fan_cooltemp": 22.77,
"fan_dir": "FWD",
"fan_on": false,
"fan_smartmode": "OFF",
"fan_speed": 0,
"fan_speed_limits_room": [
1,
7
],
"fan_speed_max": 7,
"fan_speed_min": 1,
"fan_whoosh_mode": false,
"fw_version": "2.6.0",
"has_light": true,
"has_sensor": true,
"is_fan": true,
"is_light": false,
"light_brightness": 0,
"light_brightness_limits_room": [
1,
16
],
"light_brightness_max": 16,
"light_brightness_min": 1,
"light_on": false,
"mac": "FF:FF:FF:FF:FF:FF",
"model": "Haiku Fan",
"motion_detected": false,
"motion_fan_auto": false,
"motion_light_auto": false,
"name": "Studio Vault Fan",
"network_gateway": "255.255.255.0",
"network_ip": "192.168.1.3",
"network_ssid": "Network IoT",
"network_subnetmask": "192.168.1.1",
"room_name": "Studio",
"room_type": "Family Room",
"sleep_mode": false,
"uuid": "73264cb2-1234-1234-1234-012345678913"
}
```
## Issues
* There is a lot of error handling and reconnection logic to help with the fact that these devices sometimes stop working on the network. I have managed to decrease the likelihood of this happening by keeping an open connection to the device at all times instead of using multiple socket connections but it still happens.
* Discovery sometimes just does not work and it can happen for an extended period. Connecting via IP address instead of discovery may still work.
* Early testing indicates the i6 fan from Big Ass Fans is not compatible with this library. The Big Ass Fans [website](https://www.bigassfans.com/fans/i6/) says the i6 fan has SenseME technology but it uses a different app which requires Bluetooth for initial setup. There is some [evidence](https://github.com/mikelawrence/senseme-hacs/issues/5) that WiFi is still used to control the fan from the app once setup.
* The occupancy sensor is treated differently than other fan settings/states; occupancy state changes are not pushed immediately and must be detected with periodic status updates. So unfortunately this sensor will not seem very responsive.
* UDP port 31415 must be available and not blocked by a firewall.
* This library will not handle multiple instances of discovery running on the same machine.
%package help
Summary: Development documents and examples for aiosenseme
Provides: python3-aiosenseme-doc
%description help
# aiosenseme library
[](https://badge.fury.io/py/aiosenseme) [](https://pepy.tech/project/aiosenseme)
This asynchronous Python library provides periodic discovery, control and push-based status for SenseME fans and lights by Big Ass Fans. It was developed mainly to provide access to SenseME devices for [Home Assistant](https://www.home-assistant.io/) using asyncio but should work fine in other applications.
This library (based on [TomFaulkner's](https://github.com/TomFaulkner/SenseMe) library) keeps an open socket to each controlled fan so that state changes from any source including local control are pushed more or less immediately. This approach is far more robust and responsive. A discovery task was also added to periodically detect SenseME devices on the network.
Sniffing the packets and documenting the protocol was the work of [Bruce](http://bruce.pennypacker.org/tag/senseme-plugin/). His work in making an [Indigo plugin](https://github.com/bpennypacker/SenseME-Indigo-Plugin) made this library possible.
Thanks to [PenitentTangent2401](https://github.com/PenitentTangent2401) for help in debugging the standalone Haiku Light.
## Model Notes
* Confirmed support of Haiku, Haiku H, and Haiku L fans.
* Confirmed support of discontinued standalone Haiku Light.
* Supports [Wireless Wall Control](https://www.bigassfans.com/support/haiku-wireless-wall-control/) indirectly through fan status reporting.
* Probably supports Haiku C fans.
* The [i6 fan](https://www.bigassfans.com/fans/i6/) is NOT currently supported.
* The [es6 fan](https://www.bigassfans.com/fans/es6/) is most likely NOT supported. This is untested.
## Command line access
The aiosenseme package now installs a command line script along with the package. To discover all devices on the network type the following. Here discovery found two standard Haiku Fans and a Haiku Light. The fans are in ```Studio Fans``` room and the Haiku Light is not part of a room.
```console
$ aiosenseme --discover
Studio Beam Fan
Room Name: Studio Fans, Room Type: Family Room
Model: Haiku Fan with light, FW Version: 2.6.0
IP Addr: 192.168.1.2, MAC Addr: FF:FF:FF:FF:FF:FF
UUID: 73264cb2-1234-1234-1234-012345678912
Studio Vault Fan
Room Name: Studio Fans, Room Type: Family Room
Model: Haiku Fan with light, FW Version: 2.6.0
IP Addr: 192.168.1.3, MAC Addr: FF:FF:FF:FF:FF:FF
UUID: 73264cb2-1234-1234-1234-012345678913
Hallway Light
Model: Haiku Light, FW Version: 2.6.0
IP Addr: 192.168.1.3, MAC Addr: FF:FF:FF:FF:FF:FF
UUID: 73264cb2-1234-1234-1234-012345678913
```
To get information and state of the device type the following. This uses discovery to match the specified device name or room name.
```console
$ aiosenseme -n "Studio Vault Fan"
Studio Vault Fan
Room Name: Studio Fans, Room Type: Family Room
Model: Haiku Fan with light, FW Version: 2.6.0
IP Addr: 192.168.1.3, MAC Addr: FF:FF:FF:FF:FF:FF
UUID: 73264cb2-1234-1234-1234-012345678912
State: Fan is off, Light is off
```
Here both the fan speed is set and the light is turned on. Notice also that Whoosh was turned off when the fan speed was set specific value.
```console
$ aiosenseme --name "Studio Vault Fan" --speed 3 --light on
Studio Beam Fan
Room Name: Studio Fans, Room Type: Family Room
Model: Haiku Fan with light, FW Version: 2.6.0
IP Addr: 192.168.1.2, MAC Addr: FF:FF:FF:FF:FF:FF
UUID: 73264cb2-1234-1234-1234-012345678912
State: Fan is on (speed: 2), Light is off, Whoosh: on
New State: Fan is on (speed: 3), Light is on (brightness: 16)
```
You can also select the fan by IP address. This connects directly to the fan without using discovery.
```console
$ aiosenseme -i 192.168.1.3 --speed 4
Studio Vault Fan
Room Name: Studio Fans, Room Type: Family Room
Model: Haiku Fan with light, FW Version: 2.6.0
IP Addr: 192.168.1.3, MAC Addr: FF:FF:FF:FF:FF:FF
UUID: 73264cb2-1234-1234-1234-012345678912
State: Fan is off, Light is off
New State: Fan is on (speed: 4), Light is off
```
To change the color temperature of a Haiku Light type the following. Changing a Haiku Light color temp will not turn the light on if it is already off.
```console
$ aiosenseme --name "Hallway Light" --light on --colortemp 5000
Hallway Light
Model: Haiku Light, FW Version: 2.6.0
IP Addr: 192.168.1.3, MAC Addr: FF:FF:FF:FF:FF:FF
UUID: 73264cb2-1234-1234-1234-012345678913
State: Light is off
State: Light is on (brightness: 9, color temp: 5000)
```
To get a fan's information and state formatted as json.
```console
$ aiosenseme -i 192.168.1.3 -j
{
"address": "192.168.1.3",
"base_model": "FAN,HAIKU,SENSEME",
"device_beeper": true,
"device_indicators": true,
"fan_autocomfort": "OFF",
"fan_cooltemp": 22.77,
"fan_dir": "FWD",
"fan_on": false,
"fan_smartmode": "OFF",
"fan_speed": 0,
"fan_speed_limits_room": [
1,
7
],
"fan_speed_max": 7,
"fan_speed_min": 1,
"fan_whoosh_mode": false,
"fw_version": "2.6.0",
"has_light": true,
"has_sensor": true,
"is_fan": true,
"is_light": false,
"light_brightness": 0,
"light_brightness_limits_room": [
1,
16
],
"light_brightness_max": 16,
"light_brightness_min": 1,
"light_on": false,
"mac": "FF:FF:FF:FF:FF:FF",
"model": "Haiku Fan",
"motion_detected": false,
"motion_fan_auto": false,
"motion_light_auto": false,
"name": "Studio Vault Fan",
"network_gateway": "255.255.255.0",
"network_ip": "192.168.1.3",
"network_ssid": "Network IoT",
"network_subnetmask": "192.168.1.1",
"room_name": "Studio",
"room_type": "Family Room",
"sleep_mode": false,
"uuid": "73264cb2-1234-1234-1234-012345678913"
}
```
## Issues
* There is a lot of error handling and reconnection logic to help with the fact that these devices sometimes stop working on the network. I have managed to decrease the likelihood of this happening by keeping an open connection to the device at all times instead of using multiple socket connections but it still happens.
* Discovery sometimes just does not work and it can happen for an extended period. Connecting via IP address instead of discovery may still work.
* Early testing indicates the i6 fan from Big Ass Fans is not compatible with this library. The Big Ass Fans [website](https://www.bigassfans.com/fans/i6/) says the i6 fan has SenseME technology but it uses a different app which requires Bluetooth for initial setup. There is some [evidence](https://github.com/mikelawrence/senseme-hacs/issues/5) that WiFi is still used to control the fan from the app once setup.
* The occupancy sensor is treated differently than other fan settings/states; occupancy state changes are not pushed immediately and must be detected with periodic status updates. So unfortunately this sensor will not seem very responsive.
* UDP port 31415 must be available and not blocked by a firewall.
* This library will not handle multiple instances of discovery running on the same machine.
%prep
%autosetup -n aiosenseme-0.6.1
%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-aiosenseme -f filelist.lst
%dir %{python3_sitelib}/*
%files help -f doclist.lst
%{_docdir}/*
%changelog
* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 0.6.1-1
- Package Spec generated
|