summaryrefslogtreecommitdiff
path: root/python-apistellar.spec
blob: a14406dedca41d849d09a05d396e1261414a4f09 (plain)
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
%global _empty_manifest_terminate_build 0
Name:		python-apistellar
Version:	1.3.12
Release:	1
Summary:	enhance apistar web framework.
License:	MIT
URL:		https://www.github.com/ShichaoMa/apistellar
Source0:	https://mirrors.aliyun.com/pypi/web/packages/a9/33/e44de8af23c2c3c3f1a2f92847aeba4c329e5edd1720bd22b3119fbd3320/apistellar-1.3.12.tar.gz
BuildArch:	noarch


%description
# apistellar WEB框架

## Badge

### GitHub

[![GitHub followers](https://img.shields.io/github/followers/shichaoma.svg?label=github%20follow)](https://github.com/shichao.ma)
[![GitHub repo size in bytes](https://img.shields.io/github/repo-size/shichaoma/apistellar.svg)](https://github.com/shichaoma/apistellar)
[![GitHub stars](https://img.shields.io/github/stars/shichaoma/apistellar.svg?label=github%20stars)](https://github.com/shichaoma/apistellar)
[![GitHub release](https://img.shields.io/github/release/shichaoma/apistellar.svg)](https://github.com/shichaoma/apistellar/releases)
[![Github commits (since latest release)](https://img.shields.io/github/commits-since/shichaoma/apistellar/latest.svg)](https://github.com/shichaoma/apistellar)

[![Github All Releases](https://img.shields.io/github/downloads/shichaoma/apistellar/total.svg)](https://github.com/shichaoma/apistellar/releases)
[![GitHub Release Date](https://img.shields.io/github/release-date/shichaoma/apistellar.svg)](https://github.com/shichaoma/apistellar/releases)

### PyPi

[![PyPI](https://img.shields.io/pypi/v/apistellar.svg)](https://pypi.org/project/apistellar/)
[![PyPI - Wheel](https://img.shields.io/pypi/wheel/apistellar.svg)](https://pypi.org/project/apistellar/)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/apistellar.svg)](https://pypi.org/project/apistellar/)
[![PyPI - Format](https://img.shields.io/pypi/format/apistellar.svg)](https://pypi.org/project/apistellar/)
[![PyPI - Implementation](https://img.shields.io/pypi/implementation/apistellar.svg)](https://pypi.org/project/apistellar/)
[![PyPI - Status](https://img.shields.io/pypi/status/apistellar.svg)](https://pypi.org/project/apistellar/)

## Desc

apistellar是基于apistar的web构建工具,同时增强了apistar的功能,使用apistellar可以轻松构建适合生产环境的web项目。

apistellar部分设计灵感参考ruby on rails

除了apistar本身的特性以外,apistellar增加如下几点高级用法:

1. CSM架构,将控制层,业务层,模型层完全分离,耦合性降至最低。
2. 模板式定制各类模型,轻松扩展模型定义的模板类。
3. 适配sphinx注释语法,使用构建命令一键生成api文档和RPC-client。
4. 集成flask版的session实现。
5. 自带一些event hook,轻松集成异常、session处理。
6. 集成配置模块,集中管理所有配置信息。
7. 离线任务管理,同一web服务下的离线任务,轻松复用web模块定义的model, service等等可注入对象。模板一键创建。
8. 集成IPython交互式命令行工具,自动注入model, service等对象。提供异步代码执行能力,轻松调试各模块。
9. 提供上传文件流对象,对大文件上传完美支持。
10. Apistar作者在uvicorn中提供了websocket支持,但是未集成到apistar中,apistellar对二者进行了集成,完美支持websocket。

![apistellar项目web请求流程图](https://github.com/ShichaoMa/apistellar/blob/master/resources/apistellar架构设计图/apistellar项目web请求流程图.png)
![apistellar项目微服务及中间件调用解决方案示意图](https://github.com/ShichaoMa/apistellar/blob/master/resources/apistellar架构设计图/apistellar项目微服务及中间件调用解决方案示意图.png)
![apistellar项目控制层类图](https://github.com/ShichaoMa/apistellar/blob/master/resources/apistellar架构设计图/apistellar项目控制层类图.png)
![apistellar项目构建工具设计类图](https://github.com/ShichaoMa/apistellar/blob/master/resources/apistellar架构设计图/apistellar项目构建工具设计类图.png)
![apistellar项目经典三层架构时序图](https://github.com/ShichaoMa/apistellar/blob/master/resources/apistellar架构设计图/apistellar项目经典三层架构时序图.png)

## Install
```
# python 3.6+
pip install apistellar
```

## Doc
### 目录

1. [Quick Start](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/Quick-Start.md)
2. [apistellar项目组成](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/apistellar项目组成.md)
3. [model的使用方法](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/model的使用方法.md)
4. [controller的使用方法](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/controller的使用方法.md)
5. [service的使用方法](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/service的使用方法.md)
6. [Session管理](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/Session管理.md)
7. [使用require实现简单session认证](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/使用require实现简单session认证.md)
8. [增强的EventHook](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/增强的EventHook.md)
9. [错误码处理](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/错误码处理.md)
10. [配置信息管理](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/配置信息管理.md)
11. [自定义项目构建任务](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/自定义项目构建任务.md)
12. [solo任务(离线任务)](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/solo任务(离线任务).md)
13. [使用集成的IPython进行异步代码的调试](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/使用集成的IPython进行异步代码的调试.md)
14. [大文件上传下载](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/大文件上传下载.md)
15. [使用websocket进行通讯](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/使用websocket进行通讯.md)
16. [使用apistellar测试插件pytest-apistellar进行单元测试](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/使用apistellar测试插件pytest-apistellar进行单元测试.md)
17. [model持久化方案](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/model持久化方案.md)
18. [API接口文档自动生成](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/API接口文档自动生成.md)
19. [RESTFul RPC客户端驱动包一键生成](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/RESTFul-RPC客户端驱动包一键生成.md)
20. [全局对象](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/全局对象.md)

参考资料

- [asgi web框架 APIStar----终于等到你...](https://zhuanlan.zhihu.com/p/36297606)
- [妈妈再也不用担心我不写文档了,RESTful API文档一键生成!](https://zhuanlan.zhihu.com/p/55784077)
- [RESTful服务构建利器apistellar深度剖析](https://zhuanlan.zhihu.com/p/41843954)
- [asgi协议](https://github.com/django/asgiref/blob/master/specs/www.rst)

%package -n python3-apistellar
Summary:	enhance apistar web framework.
Provides:	python-apistellar
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools
BuildRequires:	python3-pip
%description -n python3-apistellar
# apistellar WEB框架

## Badge

### GitHub

[![GitHub followers](https://img.shields.io/github/followers/shichaoma.svg?label=github%20follow)](https://github.com/shichao.ma)
[![GitHub repo size in bytes](https://img.shields.io/github/repo-size/shichaoma/apistellar.svg)](https://github.com/shichaoma/apistellar)
[![GitHub stars](https://img.shields.io/github/stars/shichaoma/apistellar.svg?label=github%20stars)](https://github.com/shichaoma/apistellar)
[![GitHub release](https://img.shields.io/github/release/shichaoma/apistellar.svg)](https://github.com/shichaoma/apistellar/releases)
[![Github commits (since latest release)](https://img.shields.io/github/commits-since/shichaoma/apistellar/latest.svg)](https://github.com/shichaoma/apistellar)

[![Github All Releases](https://img.shields.io/github/downloads/shichaoma/apistellar/total.svg)](https://github.com/shichaoma/apistellar/releases)
[![GitHub Release Date](https://img.shields.io/github/release-date/shichaoma/apistellar.svg)](https://github.com/shichaoma/apistellar/releases)

### PyPi

[![PyPI](https://img.shields.io/pypi/v/apistellar.svg)](https://pypi.org/project/apistellar/)
[![PyPI - Wheel](https://img.shields.io/pypi/wheel/apistellar.svg)](https://pypi.org/project/apistellar/)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/apistellar.svg)](https://pypi.org/project/apistellar/)
[![PyPI - Format](https://img.shields.io/pypi/format/apistellar.svg)](https://pypi.org/project/apistellar/)
[![PyPI - Implementation](https://img.shields.io/pypi/implementation/apistellar.svg)](https://pypi.org/project/apistellar/)
[![PyPI - Status](https://img.shields.io/pypi/status/apistellar.svg)](https://pypi.org/project/apistellar/)

## Desc

apistellar是基于apistar的web构建工具,同时增强了apistar的功能,使用apistellar可以轻松构建适合生产环境的web项目。

apistellar部分设计灵感参考ruby on rails

除了apistar本身的特性以外,apistellar增加如下几点高级用法:

1. CSM架构,将控制层,业务层,模型层完全分离,耦合性降至最低。
2. 模板式定制各类模型,轻松扩展模型定义的模板类。
3. 适配sphinx注释语法,使用构建命令一键生成api文档和RPC-client。
4. 集成flask版的session实现。
5. 自带一些event hook,轻松集成异常、session处理。
6. 集成配置模块,集中管理所有配置信息。
7. 离线任务管理,同一web服务下的离线任务,轻松复用web模块定义的model, service等等可注入对象。模板一键创建。
8. 集成IPython交互式命令行工具,自动注入model, service等对象。提供异步代码执行能力,轻松调试各模块。
9. 提供上传文件流对象,对大文件上传完美支持。
10. Apistar作者在uvicorn中提供了websocket支持,但是未集成到apistar中,apistellar对二者进行了集成,完美支持websocket。

![apistellar项目web请求流程图](https://github.com/ShichaoMa/apistellar/blob/master/resources/apistellar架构设计图/apistellar项目web请求流程图.png)
![apistellar项目微服务及中间件调用解决方案示意图](https://github.com/ShichaoMa/apistellar/blob/master/resources/apistellar架构设计图/apistellar项目微服务及中间件调用解决方案示意图.png)
![apistellar项目控制层类图](https://github.com/ShichaoMa/apistellar/blob/master/resources/apistellar架构设计图/apistellar项目控制层类图.png)
![apistellar项目构建工具设计类图](https://github.com/ShichaoMa/apistellar/blob/master/resources/apistellar架构设计图/apistellar项目构建工具设计类图.png)
![apistellar项目经典三层架构时序图](https://github.com/ShichaoMa/apistellar/blob/master/resources/apistellar架构设计图/apistellar项目经典三层架构时序图.png)

## Install
```
# python 3.6+
pip install apistellar
```

## Doc
### 目录

1. [Quick Start](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/Quick-Start.md)
2. [apistellar项目组成](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/apistellar项目组成.md)
3. [model的使用方法](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/model的使用方法.md)
4. [controller的使用方法](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/controller的使用方法.md)
5. [service的使用方法](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/service的使用方法.md)
6. [Session管理](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/Session管理.md)
7. [使用require实现简单session认证](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/使用require实现简单session认证.md)
8. [增强的EventHook](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/增强的EventHook.md)
9. [错误码处理](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/错误码处理.md)
10. [配置信息管理](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/配置信息管理.md)
11. [自定义项目构建任务](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/自定义项目构建任务.md)
12. [solo任务(离线任务)](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/solo任务(离线任务).md)
13. [使用集成的IPython进行异步代码的调试](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/使用集成的IPython进行异步代码的调试.md)
14. [大文件上传下载](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/大文件上传下载.md)
15. [使用websocket进行通讯](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/使用websocket进行通讯.md)
16. [使用apistellar测试插件pytest-apistellar进行单元测试](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/使用apistellar测试插件pytest-apistellar进行单元测试.md)
17. [model持久化方案](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/model持久化方案.md)
18. [API接口文档自动生成](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/API接口文档自动生成.md)
19. [RESTFul RPC客户端驱动包一键生成](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/RESTFul-RPC客户端驱动包一键生成.md)
20. [全局对象](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/全局对象.md)

参考资料

- [asgi web框架 APIStar----终于等到你...](https://zhuanlan.zhihu.com/p/36297606)
- [妈妈再也不用担心我不写文档了,RESTful API文档一键生成!](https://zhuanlan.zhihu.com/p/55784077)
- [RESTful服务构建利器apistellar深度剖析](https://zhuanlan.zhihu.com/p/41843954)
- [asgi协议](https://github.com/django/asgiref/blob/master/specs/www.rst)

%package help
Summary:	Development documents and examples for apistellar
Provides:	python3-apistellar-doc
%description help
# apistellar WEB框架

## Badge

### GitHub

[![GitHub followers](https://img.shields.io/github/followers/shichaoma.svg?label=github%20follow)](https://github.com/shichao.ma)
[![GitHub repo size in bytes](https://img.shields.io/github/repo-size/shichaoma/apistellar.svg)](https://github.com/shichaoma/apistellar)
[![GitHub stars](https://img.shields.io/github/stars/shichaoma/apistellar.svg?label=github%20stars)](https://github.com/shichaoma/apistellar)
[![GitHub release](https://img.shields.io/github/release/shichaoma/apistellar.svg)](https://github.com/shichaoma/apistellar/releases)
[![Github commits (since latest release)](https://img.shields.io/github/commits-since/shichaoma/apistellar/latest.svg)](https://github.com/shichaoma/apistellar)

[![Github All Releases](https://img.shields.io/github/downloads/shichaoma/apistellar/total.svg)](https://github.com/shichaoma/apistellar/releases)
[![GitHub Release Date](https://img.shields.io/github/release-date/shichaoma/apistellar.svg)](https://github.com/shichaoma/apistellar/releases)

### PyPi

[![PyPI](https://img.shields.io/pypi/v/apistellar.svg)](https://pypi.org/project/apistellar/)
[![PyPI - Wheel](https://img.shields.io/pypi/wheel/apistellar.svg)](https://pypi.org/project/apistellar/)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/apistellar.svg)](https://pypi.org/project/apistellar/)
[![PyPI - Format](https://img.shields.io/pypi/format/apistellar.svg)](https://pypi.org/project/apistellar/)
[![PyPI - Implementation](https://img.shields.io/pypi/implementation/apistellar.svg)](https://pypi.org/project/apistellar/)
[![PyPI - Status](https://img.shields.io/pypi/status/apistellar.svg)](https://pypi.org/project/apistellar/)

## Desc

apistellar是基于apistar的web构建工具,同时增强了apistar的功能,使用apistellar可以轻松构建适合生产环境的web项目。

apistellar部分设计灵感参考ruby on rails

除了apistar本身的特性以外,apistellar增加如下几点高级用法:

1. CSM架构,将控制层,业务层,模型层完全分离,耦合性降至最低。
2. 模板式定制各类模型,轻松扩展模型定义的模板类。
3. 适配sphinx注释语法,使用构建命令一键生成api文档和RPC-client。
4. 集成flask版的session实现。
5. 自带一些event hook,轻松集成异常、session处理。
6. 集成配置模块,集中管理所有配置信息。
7. 离线任务管理,同一web服务下的离线任务,轻松复用web模块定义的model, service等等可注入对象。模板一键创建。
8. 集成IPython交互式命令行工具,自动注入model, service等对象。提供异步代码执行能力,轻松调试各模块。
9. 提供上传文件流对象,对大文件上传完美支持。
10. Apistar作者在uvicorn中提供了websocket支持,但是未集成到apistar中,apistellar对二者进行了集成,完美支持websocket。

![apistellar项目web请求流程图](https://github.com/ShichaoMa/apistellar/blob/master/resources/apistellar架构设计图/apistellar项目web请求流程图.png)
![apistellar项目微服务及中间件调用解决方案示意图](https://github.com/ShichaoMa/apistellar/blob/master/resources/apistellar架构设计图/apistellar项目微服务及中间件调用解决方案示意图.png)
![apistellar项目控制层类图](https://github.com/ShichaoMa/apistellar/blob/master/resources/apistellar架构设计图/apistellar项目控制层类图.png)
![apistellar项目构建工具设计类图](https://github.com/ShichaoMa/apistellar/blob/master/resources/apistellar架构设计图/apistellar项目构建工具设计类图.png)
![apistellar项目经典三层架构时序图](https://github.com/ShichaoMa/apistellar/blob/master/resources/apistellar架构设计图/apistellar项目经典三层架构时序图.png)

## Install
```
# python 3.6+
pip install apistellar
```

## Doc
### 目录

1. [Quick Start](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/Quick-Start.md)
2. [apistellar项目组成](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/apistellar项目组成.md)
3. [model的使用方法](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/model的使用方法.md)
4. [controller的使用方法](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/controller的使用方法.md)
5. [service的使用方法](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/service的使用方法.md)
6. [Session管理](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/Session管理.md)
7. [使用require实现简单session认证](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/使用require实现简单session认证.md)
8. [增强的EventHook](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/增强的EventHook.md)
9. [错误码处理](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/错误码处理.md)
10. [配置信息管理](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/配置信息管理.md)
11. [自定义项目构建任务](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/自定义项目构建任务.md)
12. [solo任务(离线任务)](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/solo任务(离线任务).md)
13. [使用集成的IPython进行异步代码的调试](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/使用集成的IPython进行异步代码的调试.md)
14. [大文件上传下载](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/大文件上传下载.md)
15. [使用websocket进行通讯](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/使用websocket进行通讯.md)
16. [使用apistellar测试插件pytest-apistellar进行单元测试](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/使用apistellar测试插件pytest-apistellar进行单元测试.md)
17. [model持久化方案](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/model持久化方案.md)
18. [API接口文档自动生成](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/API接口文档自动生成.md)
19. [RESTFul RPC客户端驱动包一键生成](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/RESTFul-RPC客户端驱动包一键生成.md)
20. [全局对象](https://github.com/ShichaoMa/apistellar/blob/master/docs/apistellar.wiki/全局对象.md)

参考资料

- [asgi web框架 APIStar----终于等到你...](https://zhuanlan.zhihu.com/p/36297606)
- [妈妈再也不用担心我不写文档了,RESTful API文档一键生成!](https://zhuanlan.zhihu.com/p/55784077)
- [RESTful服务构建利器apistellar深度剖析](https://zhuanlan.zhihu.com/p/41843954)
- [asgi协议](https://github.com/django/asgiref/blob/master/specs/www.rst)

%prep
%autosetup -n apistellar-1.3.12

%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-apistellar -f filelist.lst
%dir %{python3_sitelib}/*

%files help -f doclist.lst
%{_docdir}/*

%changelog
* Thu Jun 08 2023 Python_Bot <Python_Bot@openeuler.org> - 1.3.12-1
- Package Spec generated