1 Star 0 Fork 4

xiehongyu/python-pystray

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
python-pystray.spec 1.86 KB
一键复制 编辑 原始数据 按行查看 历史
xiehongyu 提交于 2021-07-06 14:21 . 添加python-pystray-0.14.3-1
# Testsuite needs human interaction.
%bcond_with test
%global common_sum Provides system tray integration
%global common_desc This library allows you to create a system tray icon.
%global upname pystray
Name: python-%{upname}
Version: 0.14.3
Release: 1
Summary: %{common_sum}
License: LGPLv3+
URL: https://github.com/moses-palmer/%{upname}
Source0: %{url}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildArch: noarch
%description
%{common_desc}
%package -n python3-%{upname}
Summary: %{common_sum}
BuildRequires: python3-devel >= 3.4
BuildRequires: python3-pillow
BuildRequires: python3-setuptools
BuildRequires: python3-six
BuildRequires: python3-xlib >= 0.17
Requires: python3-pillow
Requires: python3-six
Requires: python3-xlib >= 0.17
%{?python_provide:%python_provide python3-%{upname}}
%description -n python3-%{upname}
%{common_desc}
%package -n python3-%{upname}-doc
Summary: Documentation-files for python3-%{upname}
BuildRequires: fdupes
BuildRequires: python3-sphinx >= 1.3.1
%description -n python3-%{upname}-doc
This package contains the Documentation-files for python3-%{upname}.
%prep
%autosetup -n %{upname}-%{version}
# Remove pre-built and bundled crap.
%{__rm} -fr *.egg*
%build
%py3_build
sphinx-build-3 docs docs/build-%{python3_version}/html
%fdupes -s docs/build-%{python3_version}
for f in .buildinfo .doctrees .inv ; do
%{_bindir}/find docs/ -name "*${f}*" -print0 | \
%{_bindir}/xargs -0 %{__rm} -frv
done
%install
%py3_install
%if %{with test}
%check
%{__python3} setup.py test
%endif # with test
%files -n python3-%{upname}
%license COPYING*
%doc README.rst
%{python3_sitelib}/%{upname}
%{python3_sitelib}/%{upname}-%{version}-py%{python3_version}.egg-info
%files -n python3-%{upname}-doc
%doc CHANGES.rst docs/build-%{python3_version}/html
%changelog
* Tue July 6 2021 xiehongyu <xiehongyu@kylinos.cn> - 0.14.3-1
- Initial package
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/kylinxhy/python-pystray.git
git@gitee.com:kylinxhy/python-pystray.git
kylinxhy
python-pystray
python-pystray
master

搜索帮助