commit
14523bd092
BIN
0.24.0.tar.gz
Normal file
BIN
0.24.0.tar.gz
Normal file
Binary file not shown.
36
README.en.md
36
README.en.md
@ -1,36 +0,0 @@
|
||||
# qpid-proton
|
||||
|
||||
#### Description
|
||||
{**When you're done, you can delete the content in this README and update the file with details for others getting started with your repository**}
|
||||
|
||||
#### 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/)
|
||||
39
README.md
39
README.md
@ -1,39 +0,0 @@
|
||||
# qpid-proton
|
||||
|
||||
#### 介绍
|
||||
{**以下是码云平台说明,您可以替换此简介**
|
||||
码云是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN)。专为开发者提供稳定、高效、安全的云端软件开发协作平台
|
||||
无论是个人、团队、或是企业,都能够用码云实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)}
|
||||
|
||||
#### 软件架构
|
||||
软件架构说明
|
||||
|
||||
|
||||
#### 安装教程
|
||||
|
||||
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/)
|
||||
226
qpid-proton.spec
Normal file
226
qpid-proton.spec
Normal file
@ -0,0 +1,226 @@
|
||||
%{?filter_setup:
|
||||
%filter_provides_in %{_datadir}/proton-%{version}/examples/
|
||||
%filter_requires_in %{_datadir}/proton-%{version}/examples/
|
||||
%filter_setup
|
||||
}
|
||||
|
||||
%global pythonx python2
|
||||
%{!?__python2:
|
||||
%global __python2 %{__python}
|
||||
%global python2_sitearch %{python_sitearch}
|
||||
%global pythonx python
|
||||
}
|
||||
|
||||
%global proton_licensedir %{_licensedir}/proton-%{version}
|
||||
%{!?_licensedir:
|
||||
%global license %doc
|
||||
%global proton_licensedir %{_datadir}/proton-%{version}
|
||||
}
|
||||
|
||||
Name: qpid-proton
|
||||
Version: 0.24.0
|
||||
Release: 5
|
||||
Summary: A high-performance and lightweight library for messaging applications
|
||||
License: ASL 2.0
|
||||
URL: http://qpid.apache.org/proton/
|
||||
Source0: https://github.com/apache/qpid-proton/archive/0.24.0.tar.gz
|
||||
BuildRequires: gcc-c++ cmake swig pkgconfig doxygen libuuid-devel
|
||||
BuildRequires: openssl-devel %{pythonx}-devel python3-devel epydoc
|
||||
BuildRequires: glibc-headers cyrus-sasl-devel
|
||||
|
||||
%description
|
||||
qpid-proton is a high-performance, lightweight messaging library. It can be used
|
||||
in the widest range of messaging applications, including brokers, client libraries,
|
||||
routers, bridges, proxies, and more. Proton makes it trivial to integrate with the
|
||||
AMQP 1.0 ecosystem from any platform, environment, or language.
|
||||
|
||||
%package c-cpp
|
||||
Summary: C/C++ libs for qpid-proton
|
||||
Requires: cyrus-sasl-lib
|
||||
Provides: qpid-proton-c = %{version}-%{release} qpid-proton-cpp = %{version}-%{release}
|
||||
Obsoletes: qpid-proton perl-qpid-proton qpid-proton-c < %{version}-%{release}
|
||||
Obsoletes: qpid-proton-cpp < %{version}-%{release}
|
||||
|
||||
%description c-cpp
|
||||
This package contains C/C++ libraries for qpid-proton.
|
||||
|
||||
|
||||
|
||||
%package c-cpp-devel
|
||||
Requires: qpid-proton-c-cpp = %{version}-%{release}
|
||||
Summary: Development C/C++ libs for qpid-proton
|
||||
Provides: qpid-proton-c-devel = %{version}-%{release} qpid-proton-cpp-devel = %{version}-%{release}
|
||||
Obsoletes: qpid-proton-devel qpid-proton-c-devel < %{version}-%{release}
|
||||
Obsoletes: qpid-proton-cpp-devel < %{version}-%{release}
|
||||
|
||||
%description c-cpp-devel
|
||||
This package contains development C/C++ libraries for writing messaging apps with qpid-proton.
|
||||
|
||||
|
||||
|
||||
%package c-help
|
||||
Summary: Documentation for the C development libs
|
||||
BuildArch: noarch
|
||||
Provides: c-docs = %{version}-%{release}
|
||||
Obsoletes: qpid-proton-c-devel-doc qpid-proton-c-devel-docs c-docs < %{version}-%{release}
|
||||
|
||||
%description c-help
|
||||
This package contains documentation for the C development libraries and examples for qpid-proton.
|
||||
|
||||
|
||||
%package cpp-help
|
||||
Summary: Documentation for the C++ development libs
|
||||
BuildArch: noarch
|
||||
Provides: cpp-docs = %{version}-%{release}
|
||||
Obsoletes: qpid-proton-cpp-devel-doc qpid-proton-cpp-devel-docs cpp-docs < %{version}-%{release}
|
||||
|
||||
%description cpp-help
|
||||
This package contains documentation for the C++ development libraries for qpid-proton.
|
||||
|
||||
%package -n %{pythonx}-qpid-proton
|
||||
Summary: Python language bindings for qpid-proton
|
||||
%python_provide python2-qpid-proton
|
||||
Requires: qpid-proton-c = %{version}-%{release} %{pythonx}
|
||||
|
||||
%description -n %{pythonx}-qpid-proton
|
||||
This package contains python language bindings for the qpid-proton messaging framework.
|
||||
|
||||
|
||||
|
||||
%package -n python3-qpid-proton
|
||||
Summary: Python language bindings for qpid-proton
|
||||
%python_provide python3-qpid-proton
|
||||
Requires: qpid-proton-c = %{version}-%{release} python3
|
||||
|
||||
%description -n python3-qpid-proton
|
||||
This package contains python language bindings for the qpid-proton messaging framework.
|
||||
|
||||
|
||||
%package -n python-qpid-proton-help
|
||||
Summary: Documentation for the Python language bindings for qpid-proton
|
||||
BuildArch: noarch
|
||||
Provides: python-qpid-proton-docs = %{version}-%{release}
|
||||
Obsoletes: python-qpid-proton-doc python-qpid-proton-docs < %{version}-%{release}
|
||||
|
||||
|
||||
%description -n python-qpid-proton-help
|
||||
This package constains documentation for the Python language bindings for qpid-proton.
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup -n %{name}-%{version} -p1
|
||||
|
||||
|
||||
%build
|
||||
rm -rf buildpython2 && mkdir buildpython2
|
||||
rm -rf buildpython3 && mkdir buildpython3
|
||||
|
||||
pushd buildpython2
|
||||
%cmake \
|
||||
-DCMAKE_EXE_LINKER_FLAGS="-Wl,-z,relro,-z,now" \
|
||||
-DCMAKE_SHARED_LINKER_FLAGS="-Wl,-z,relro" \
|
||||
-DCMAKE_MODULE_LINKER_FLAGS="-Wl,-z,relro" -DSYSINSTALL_BINDINGS=ON \
|
||||
-DCMAKE_SKIP_RPATH:BOOL=OFF -DENABLE_FUZZ_TESTING=NO \
|
||||
..
|
||||
|
||||
export ADDCFLAGS=" -Wno-error=return-type"
|
||||
%cmake \
|
||||
-DSYSINSTALL_BINDINGS=ON -DCMAKE_SKIP_RPATH:BOOL=OFF \
|
||||
-DENABLE_FUZZ_TESTING=NO "-DCMAKE_C_FLAGS=$CMAKE_C_FLAGS $CFLAGS $ADDCFLAGS" \
|
||||
-DCYRUS_SASL_INCLUDE_DIR=/usr/include -DPYTHON_EXECUTABLE=/usr/bin/python2.7 \
|
||||
-DPYTHON_INCLUDE_DIR=/usr/include/python2.7/ "-DPYTHON_LIBRARY=%{_libdir}/libpython2.7.so" \
|
||||
..
|
||||
|
||||
make all docs -j1
|
||||
(pushd python/dist; %py2_build)
|
||||
pushd ..
|
||||
|
||||
pushd buildpython3
|
||||
python_includes=$(ls -d /usr/include/python3*)
|
||||
%cmake \
|
||||
-DSYSINSTALL_BINDINGS=ON -DCMAKE_SKIP_RPATH:BOOL=OFF \
|
||||
-DENABLE_FUZZ_TESTING=NO "-DCMAKE_C_FLAGS=$CMAKE_C_FLAGS $CFLAGS $ADDCFLAGS" \
|
||||
-DCYRUS_SASL_INCLUDE_DIR=/usr/include -DPYTHON_EXECUTABLE=/usr/bin/python3 \
|
||||
"-DPYTHON_INCLUDE_DIR=$python_includes" "-DPYTHON_LIBRARY=%{_libdir}/libpython3.so" \
|
||||
..
|
||||
|
||||
make all docs -j1
|
||||
(pushd python/dist; %py3_build)
|
||||
|
||||
|
||||
%install
|
||||
pushd buildpython2
|
||||
%make_install
|
||||
(pushd python/dist; %py2_install)
|
||||
|
||||
pushd ../buildpython3
|
||||
%make_install
|
||||
(pushd python/dist; %py3_install)
|
||||
|
||||
chmod +x %{buildroot}%{python2_sitearch}/_cproton.so
|
||||
chmod +x %{buildroot}%{python3_sitearch}/_cproton.so
|
||||
|
||||
rm -fr %{buildroot}%{proton_datadir}/examples/**/*.cmake
|
||||
rm -fr %{buildroot}%{proton_datadir}/examples/go
|
||||
for fpath in %{buildroot}%{_libdir} %{buildroot}%{_datarootdir} \
|
||||
%{buildroot}%{proton_datadir}/examples
|
||||
do
|
||||
rm -rf ${fpath}/ruby
|
||||
done
|
||||
|
||||
|
||||
|
||||
%check
|
||||
|
||||
|
||||
%post
|
||||
/sbin/ldconfig
|
||||
|
||||
%postun
|
||||
/sbin/ldconfig
|
||||
|
||||
|
||||
%files c-cpp
|
||||
%dir %{_datadir}/proton-%{version}
|
||||
%license %{_datadir}/proton-%{version}/LICENSE.txt
|
||||
%doc %{_datadir}/proton-%{version}/README.md
|
||||
%{_libdir}/libqpid-proton*
|
||||
|
||||
%files c-cpp-devel
|
||||
%{_includedir}/proton
|
||||
%{_libdir}/cmake/Proton
|
||||
%{_libdir}/cmake/ProtonCpp
|
||||
%{_libdir}/pkgconfig/*
|
||||
|
||||
|
||||
%files c-help
|
||||
%defattr(-,root,root,-)
|
||||
%license %{_datadir}/proton-%{version}/LICENSE.txt
|
||||
%doc %{_datadir}/proton-%{version}/docs/api-c
|
||||
%doc %{_datadir}/proton-%{version}/examples/c/*
|
||||
|
||||
|
||||
%files cpp-help
|
||||
%defattr(-,root,root,-)
|
||||
%license %{_datadir}/proton-%{version}/LICENSE.txt
|
||||
%{_datadir}/proton-%{version}/docs/api-cpp
|
||||
%doc %{_datadir}/proton-%{version}/examples/cpp/*
|
||||
|
||||
%files -n %{pythonx}-qpid-proton
|
||||
%defattr(-,root,root,-)
|
||||
%license %{_datadir}/proton-%{version}/LICENSE.txt
|
||||
%{python2_sitearch}/*
|
||||
|
||||
%files -n python3-qpid-proton
|
||||
%{python3_sitearch}/*
|
||||
|
||||
%files -n python-qpid-proton-help
|
||||
%defattr(-,root,root,-)
|
||||
%license %{_datadir}/proton-%{version}/LICENSE.txt
|
||||
%doc %{_datadir}/proton-%{version}/docs/api-py
|
||||
%doc %{_datadir}/proton-%{version}/examples/python
|
||||
|
||||
|
||||
%changelog
|
||||
* Wed Jan 8 2020 Senlin Xia<xiasenlin1@huawei.com> - 0.24.0-5
|
||||
- Package init
|
||||
Loading…
x
Reference in New Issue
Block a user