package init
This commit is contained in:
parent
d7271cc243
commit
6b049e197e
36
README.en.md
36
README.en.md
@ -1,36 +0,0 @@
|
||||
# py3c
|
||||
|
||||
#### Description
|
||||
py3c helps you port C extensions to Python 3.
|
||||
|
||||
#### Software Architecture
|
||||
Software architecture description
|
||||
|
||||
#### Installation
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### Instructions
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### Contribution
|
||||
|
||||
1. Fork the repository
|
||||
2. Create Feat_xxx branch
|
||||
3. Commit your code
|
||||
4. Create Pull Request
|
||||
|
||||
|
||||
#### Gitee Feature
|
||||
|
||||
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
|
||||
2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
|
||||
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
|
||||
4. The most valuable open source project [GVP](https://gitee.com/gvp)
|
||||
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
|
||||
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
||||
37
README.md
37
README.md
@ -1,37 +0,0 @@
|
||||
# py3c
|
||||
|
||||
#### 介绍
|
||||
py3c helps you port C extensions to Python 3.
|
||||
|
||||
#### 软件架构
|
||||
软件架构说明
|
||||
|
||||
|
||||
#### 安装教程
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### 使用说明
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### 参与贡献
|
||||
|
||||
1. Fork 本仓库
|
||||
2. 新建 Feat_xxx 分支
|
||||
3. 提交代码
|
||||
4. 新建 Pull Request
|
||||
|
||||
|
||||
#### 码云特技
|
||||
|
||||
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
|
||||
2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com)
|
||||
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目
|
||||
4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目
|
||||
5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
|
||||
6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
||||
BIN
py3c-1.2.tar.gz
Normal file
BIN
py3c-1.2.tar.gz
Normal file
Binary file not shown.
84
py3c.spec
Normal file
84
py3c.spec
Normal file
@ -0,0 +1,84 @@
|
||||
%global debug_package %{nil}
|
||||
|
||||
Name: py3c
|
||||
Version: 1.2
|
||||
Release: 1
|
||||
Summary: Guide and compatibility macros for porting extensions to Python 3
|
||||
|
||||
# Licences differ for subpackages
|
||||
License: MIT and CC-BY-SA
|
||||
URL: http://py3c.readthedocs.io/
|
||||
Source0: https://github.com/encukou/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||
|
||||
BuildRequires: python3-devel python3-setuptools python3-sphinx python3-sphinx_rtd_theme gcc
|
||||
|
||||
%description
|
||||
py3c helps you port C extensions to Python 3.
|
||||
|
||||
It provides a detailed guide, and a set of macros to make porting easy
|
||||
and reduce boilerplate.
|
||||
|
||||
%package devel
|
||||
License: MIT
|
||||
Summary: Header files for py3c
|
||||
|
||||
Requires: python3-devel
|
||||
|
||||
# A header-only library counts as static
|
||||
Provides: %{name}-static = %{version}-%{release}
|
||||
%{?_isa:Provides: %{name}-static%{?_isa} = %{version}-%{release}}
|
||||
|
||||
%description devel
|
||||
%{name}-devel is only required for building software that uses py3c.
|
||||
Because py3c is a header-only library, there is no matching run-time package.
|
||||
|
||||
%package help
|
||||
BuildArch: noarch
|
||||
License: CC-BY-SA
|
||||
Summary: Guide for porting C extensions to Python 3
|
||||
|
||||
Requires: python3-sphinx_rtd_theme
|
||||
|
||||
%description help
|
||||
Guide for porting CPython extensions from Python 2 to Python 3, using the py3c macros.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
%build
|
||||
make %{?_smp_mflags} py3c.pc includedir=%{_includedir}
|
||||
|
||||
make %{?_smp_mflags} doc SPHINXBUILD=sphinx-build-3
|
||||
|
||||
# unbundle fonts provided by the theme package
|
||||
bundledfonts=doc/build/html/_static/fonts
|
||||
themefonts=%{python3_sitelib}/sphinx_rtd_theme/static/fonts
|
||||
rm -rv $bundledfonts
|
||||
ln -s $themefonts $bundledfonts
|
||||
|
||||
%check
|
||||
export CFLAGS="%{optflags}"
|
||||
make %{?_smp_mflags} test-python3
|
||||
|
||||
%install
|
||||
make install prefix=%{buildroot}%{_prefix} includedir=%{buildroot}%{_includedir}
|
||||
mkdir -p %{buildroot}%{_pkgdocdir}
|
||||
cp -rv doc/build/html/* %{buildroot}%{_pkgdocdir}
|
||||
|
||||
# Strip buildroot name from the pkgconfig file
|
||||
sed --in-place -e's!%{buildroot}!!' %{buildroot}%{_datadir}/pkgconfig/py3c.pc
|
||||
|
||||
%files devel
|
||||
%license LICENSE.MIT
|
||||
%doc README.rst
|
||||
%{_includedir}/py3c.h
|
||||
%{_includedir}/py3c/
|
||||
%{_datadir}/pkgconfig/py3c.pc
|
||||
|
||||
%files help
|
||||
%license doc/LICENSE.CC-BY-SA-3.0
|
||||
%doc %{_pkgdocdir}/
|
||||
|
||||
%changelog
|
||||
* Fri Jul 31 2020 yang_zhuang_zhuang <yangzhuangzhuang1@huawei.com> - 1.2-1
|
||||
- package init
|
||||
Loading…
x
Reference in New Issue
Block a user