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
|
%{!?python_sitearch:%global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%define tde_version 14.0.0
%define tde_prefix /usr
%define tde_bindir %{tde_prefix}/bin
%define tde_includedir %{tde_prefix}/include
%define tde_libdir %{tde_prefix}/%{_lib}
Name: trinity-python-tqt
Version: 3.18.1
Release: %{?!preversion:1}%{?preversion:0_%{preversion}}%{?dist}%{?_variant}
License: GPL
Summary: TQt bindings for Python
Group: System Environment/Libraries
Obsoletes: trinity-PyQt
Obsoletes: trinity-python-qt3
Vendor: Trinity Project
Packager: Francois Andriot <francois.andriot@free.fr>
Prefix: %{tde_prefix}
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Source0: %{name}-%{tde_version}%{?preversion:~%{preversion}}.tar.gz
Patch0: python-tqt-14.0.0-ftbfs.patch
BuildRequires: gcc-c++
BuildRequires: trinity-tqtinterface-devel >= %{version}
BuildRequires: trinity-tqscintilla-devel
%if 0%{?rhel} || 0%{?fedora}
BuildRequires: sip-devel
%endif
%if 0%{?mdkversion} || 0%{?mgaversion}
BuildRequires: python-sip
%endif
%if 0%{?suse_version}
BuildRequires: python-sip-devel
%endif
# TDE specific building variables
BuildRequires: trinity-tqt3-devel >= 3.5.0
Requires: trinity-tqt3 >= 3.5.0
%description
Python binding module that allows use of TQt X Window toolkit v3.
You can use it to create portable graphics-capable scripts (there
are PyQt versions for Linux, Windows and MacOS X).
At this moment PyQt offers a vast subset of TQt API. There are
some minor issues related to the differences between C++ and Python
(types, etc), but usually you'll be able to write code pretty much the
same way in both languages (with syntax differences, of course)
%files
%defattr(-,root,root,-)
%doc NEWS README
%{python_sitearch}/qt.so
%{python_sitearch}/qtcanvas.so
%{python_sitearch}/qtnetwork.so
%{python_sitearch}/qtsql.so
%{python_sitearch}/qttable.so
%{python_sitearch}/qtui.so
%{python_sitearch}/qtxml.so
##########
%package gl
Summary: TQt OpenGL bindings for Python
Requires: %{name} = %{version}-%{release}
%description gl
Python binding module that allows use of the OpenGL facilities
offered by the TQt X Window toolkit v3. You can use it to create
portable graphics-capable scripts (there are PyQt versions for
Linux, Windows and MacOS X).
%files gl
%defattr(-,root,root,-)
%{python_sitearch}/qtgl.so
##########
%package tqtext
Summary: TQt extensions for PyQt
Requires: %{name} = %{version}-%{release}
%description tqtext
PyQt Extensions. Contains:
* TQScintilla: a featureful TQt source code editing component based
on Scintilla.
%files tqtext
%defattr(-,root,root,-)
%{python_sitearch}/qtext.so
##########
%package -n trinity-pytqt-tools
Summary: pyuic and pylupdate for TQt
%description -n trinity-pytqt-tools
pyuic is the PyQt counterpart for TQt's uic. It takes an XML
user interface file and generates Python code.
pylupdate is the counterpart for TQt's lupdate. It updates TQt
Linguist translation files from Python code.
%files -n trinity-pytqt-tools
%{_bindir}/pylupdate
%{_bindir}/pyuic
##########
%package devel
Summary: TQt bindings for Python - Development files
Requires: %{name} = %{version}-%{release}
Requires: trinity-pytqt-tools = %{version}-%{release}
%description devel
Development .sip files with definitions of PyQt classes. They
are needed to build PyQt, but also as building blocks of other
packages based on them, like PyTDE.
%files devel
%defattr(-,root,root,-)
%{python_sitearch}/pyqtconfig.py*
%{_datadir}/sip/tqt/
##########
%if 0%{?suse_version} || 0%{?pclinuxos}
%debug_package
%endif
%prep
%setup -q -n %{name}-%{tde_version}%{?preversion:~%{preversion}}
%patch0 -p1
%build
unset QTDIR QTINC QTLIB
mkdir build
cd build
# WTF ? CentOS 6 !
cp -rf ../pyuic3 ../pylupdate3 .
echo yes | python ../configure.py \
-c -n %{_includedir}/tqscintilla \
-q %{_datadir}/tqt3 \
-y tqt-mt \
-o %{_libdir} -u -j 10 \
-d %{python_sitearch} \
-v %{_datadir}/sip/tqt \
-w \
CXXFLAGS_RELEASE="" CXXFLAGS="${RPM_OPT_FLAGS} -I%{_includedir}/tqt" STRIP=""
%__make
%install
%__rm -rf %{?buildroot}
%__make install DESTDIR=%{?buildroot} -C build
%__install -d %{?buildroot}%{_datadir}/sip/
%__cp -rf sip/* %{?buildroot}%{_datadir}/sip/tqt/
%clean
%__rm -rf %{?buildroot}
%changelog
* Fri Jul 05 2013 Francois Andriot <francois.andriot@free.fr> - 3.18.1-1
- Initial release for TDE R14.0.0
|