-
Notifications
You must be signed in to change notification settings - Fork 0
/
pypi-qtpy.spec
118 lines (97 loc) · 4.04 KB
/
pypi-qtpy.spec
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
#
# This file is auto-generated. DO NOT EDIT
# Generated by: autospec.py
#
Name : pypi-qtpy
Version : 2.1.0
Release : 44
URL : https://files.pythonhosted.org/packages/4f/8b/2830a11f0773dded3bb9943daeed7c1eefb214f84d72a213a5d4681430b2/QtPy-2.1.0.tar.gz
Source0 : https://files.pythonhosted.org/packages/4f/8b/2830a11f0773dded3bb9943daeed7c1eefb214f84d72a213a5d4681430b2/QtPy-2.1.0.tar.gz
Summary : Provides an abstraction layer on top of the various Qt bindings (PyQt5/6 and PySide2/6).
Group : Development/Tools
License : MIT
Requires: pypi-qtpy-bin = %{version}-%{release}
Requires: pypi-qtpy-license = %{version}-%{release}
Requires: pypi-qtpy-python = %{version}-%{release}
Requires: pypi-qtpy-python3 = %{version}-%{release}
BuildRequires : buildreq-distutils3
BuildRequires : pypi(packaging)
BuildRequires : pypi(setuptools)
BuildRequires : pypi(wheel)
%description
# QtPy: Abstraction layer for PyQt5/PySide2/PyQt6/PySide6
[![license](https://img.shields.io/pypi/l/qtpy.svg)](./LICENSE)
[![pypi version](https://img.shields.io/pypi/v/qtpy.svg)](https://pypi.org/project/QtPy/)
[![conda version](https://img.shields.io/conda/vn/conda-forge/qtpy.svg)](https://www.anaconda.com/download/)
[![download count](https://img.shields.io/conda/dn/conda-forge/qtpy.svg)](https://www.anaconda.com/download/)
[![OpenCollective Backers](https://opencollective.com/spyder/backers/badge.svg?color=blue)](#backers)
[![Join the chat at https://gitter.im/spyder-ide/public](https://badges.gitter.im/spyder-ide/spyder.svg)](https://gitter.im/spyder-ide/public)<br>
[![PyPI status](https://img.shields.io/pypi/status/qtpy.svg)](https://github.com/spyder-ide/qtpy)
[![Github build status](https://github.com/spyder-ide/qtpy/workflows/Tests/badge.svg)](https://github.com/spyder-ide/qtpy/actions)
[![Coverage Status](https://coveralls.io/repos/github/spyder-ide/qtpy/badge.svg?branch=master)](https://coveralls.io/github/spyder-ide/qtpy?branch=master)
%package bin
Summary: bin components for the pypi-qtpy package.
Group: Binaries
Requires: pypi-qtpy-license = %{version}-%{release}
%description bin
bin components for the pypi-qtpy package.
%package license
Summary: license components for the pypi-qtpy package.
Group: Default
%description license
license components for the pypi-qtpy package.
%package python
Summary: python components for the pypi-qtpy package.
Group: Default
Requires: pypi-qtpy-python3 = %{version}-%{release}
%description python
python components for the pypi-qtpy package.
%package python3
Summary: python3 components for the pypi-qtpy package.
Group: Default
Requires: python3-core
Provides: pypi(qtpy)
Requires: pypi(packaging)
%description python3
python3 components for the pypi-qtpy package.
%prep
%setup -q -n QtPy-2.1.0
cd %{_builddir}/QtPy-2.1.0
%build
export http_proxy=http://127.0.0.1:9/
export https_proxy=http://127.0.0.1:9/
export no_proxy=localhost,127.0.0.1,0.0.0.0
export LANG=C.UTF-8
export SOURCE_DATE_EPOCH=1651523829
export GCC_IGNORE_WERROR=1
export AR=gcc-ar
export RANLIB=gcc-ranlib
export NM=gcc-nm
export CFLAGS="$CFLAGS -O3 -ffat-lto-objects -flto=auto "
export FCFLAGS="$FFLAGS -O3 -ffat-lto-objects -flto=auto "
export FFLAGS="$FFLAGS -O3 -ffat-lto-objects -flto=auto "
export CXXFLAGS="$CXXFLAGS -O3 -ffat-lto-objects -flto=auto "
export MAKEFLAGS=%{?_smp_mflags}
python3 -m build --wheel --skip-dependency-check --no-isolation
%install
export MAKEFLAGS=%{?_smp_mflags}
rm -rf %{buildroot}
mkdir -p %{buildroot}/usr/share/package-licenses/pypi-qtpy
cp %{_builddir}/QtPy-2.1.0/LICENSE.txt %{buildroot}/usr/share/package-licenses/pypi-qtpy/23f0f8972f5c9d62a7def9b191f5b7a5ee688acd
pip install --root=%{buildroot} --no-deps --ignore-installed dist/*.whl
echo ----[ mark ]----
cat %{buildroot}/usr/lib/python3*/site-packages/*/requires.txt || :
echo ----[ mark ]----
%files
%defattr(-,root,root,-)
%files bin
%defattr(-,root,root,-)
/usr/bin/qtpy
%files license
%defattr(0644,root,root,0755)
/usr/share/package-licenses/pypi-qtpy/23f0f8972f5c9d62a7def9b191f5b7a5ee688acd
%files python
%defattr(-,root,root,-)
%files python3
%defattr(-,root,root,-)
/usr/lib/python3*/*