]>
Commit | Line | Data |
---|---|---|
9ee0f3af | 1 | # |
9a281e92 | 2 | # TODO: QScintilla2 for Qt3 (does it make any sense nowadays?) |
9ee0f3af | 3 | # |
14ec3a85 | 4 | %define scintilla_ver 3.2.3 |
9ee0f3af | 5 | Summary: QScintilla2 - a port to Qt of the Scintilla editing component |
0bd4b1b2 | 6 | Summary(pl.UTF-8): QScintilla2 - port komponentu edytora Scintilla dla biblioteki Qt |
9ee0f3af | 7 | Name: qscintilla2 |
14ec3a85 KK |
8 | Version: 2.7 |
9 | Release: 1 | |
ece58d84 | 10 | License: GPL v2 or GPL v3 with Riverbank GPL Exception v1.1 |
9ee0f3af | 11 | Group: X11/Libraries |
69587943 | 12 | Source0: http://downloads.sourceforge.net/pyqt/QScintilla-gpl-%{version}.tar.gz |
e4b176be | 13 | # Source0-md5: 6e6641b6f3863c01cc28c2d7bd2495f9 |
9b858b8d | 14 | Patch0: %{name}-internal_build.patch |
15 | URL: http://www.riverbankcomputing.co.uk/software/qscintilla/ | |
9ee0f3af KK |
16 | BuildRequires: QtDesigner-devel |
17 | BuildRequires: QtGui-devel | |
43763721 | 18 | BuildRequires: python-PyQt4-devel >= 4.8.2 |
203c74b1 | 19 | BuildRequires: python-sip-devel >= 2:4.14 |
14ec3a85 KK |
20 | BuildRequires: qt4-build >= 4.8 |
21 | BuildRequires: qt4-qmake >= 4.8 | |
9ee0f3af | 22 | BuildRequires: rpm-pythonprov |
2b7936b6 | 23 | BuildRequires: rpmbuild(macros) >= 1.558 |
9ee0f3af KK |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
25 | ||
26 | %define _sipfilesdir %{_datadir}/sip | |
27 | ||
28 | %description | |
29 | QScintilla2 is a port to Qt of the Scintilla editing component. | |
30 | This version of QScintilla is based on Scintilla v%{scintilla_ver}. | |
31 | ||
d2b29e31 | 32 | %description -l pl.UTF-8 |
23949924 JB |
33 | QScintilla2 to port komponentu edytora Scintilla dla biblioteki Qt. |
34 | Ta wersja QScintilli jest oparta na Scintilli %{scintilla_ver}. | |
35 | ||
9ee0f3af KK |
36 | %package devel |
37 | Summary: Development files for the QScintilla2 | |
0bd4b1b2 | 38 | Summary(pl.UTF-8): Pliki nagłówkowe dla komponentu QScintilla2 |
9ee0f3af KK |
39 | Group: X11/Development/Libraries |
40 | Requires: %{name} = %{version}-%{release} | |
41 | Requires: QtGui-devel | |
42 | ||
43 | %description devel | |
44 | This package contains the header files necessary to develop | |
439a2c93 | 45 | applications using QScintilla2. |
9ee0f3af | 46 | |
d2b29e31 JR |
47 | %description devel -l pl.UTF-8 |
48 | Ten pakiet zawiera pliki nagłówkowe potrzebne do tworzenia programów z | |
49 | użyciem komponentu QScintilla2. | |
23949924 | 50 | |
9ee0f3af KK |
51 | %package -n QtDesigner-plugin-%{name} |
52 | Summary: QScintilla2 plugin for Qt Designer | |
0bd4b1b2 | 53 | Summary(pl.UTF-8): Wtyczka QScintilla2 dla Qt Designera |
9ee0f3af KK |
54 | Group: X11/Development/Libraries |
55 | Requires: %{name} = %{version}-%{release} | |
56 | Requires: QtDesigner | |
57 | ||
58 | %description -n QtDesigner-plugin-%{name} | |
59 | QScintilla2 plugin for Qt Designer that allows QScintilla instances | |
60 | to be included in GUI designs just like any other Qt widget. | |
61 | ||
d2b29e31 JR |
62 | %description -n QtDesigner-plugin-%{name} -l pl.UTF-8 |
63 | Wtyczka WScintilla2 dla Qt Designera pozwalająca na włączanie | |
64 | instancji QScintilli w projekty GUI w ten sam sposób, co inne widgety | |
23949924 JB |
65 | Qt. |
66 | ||
9ee0f3af KK |
67 | %package -n python-%{name} |
68 | Summary: Python bindings for the QScintilla2 | |
0bd4b1b2 | 69 | Summary(pl.UTF-8): Wiązania Pythona dla komponentu QScintilla2 |
9ee0f3af KK |
70 | Group: Libraries/Python |
71 | Requires: %{name} = %{version}-%{release} | |
a7c81c1e | 72 | %requires_ge python-PyQt4 |
9ee0f3af KK |
73 | |
74 | %description -n python-%{name} | |
75 | Python bindings for the QScintilla2. | |
76 | ||
d2b29e31 JR |
77 | %description -n python-%{name} -l pl.UTF-8 |
78 | Wiązania Pythona dla komponentu QScintilla2. | |
23949924 | 79 | |
9ee0f3af KK |
80 | %package -n python-%{name}-devel |
81 | Summary: Python bindings for the QScintilla2 - development files | |
0bd4b1b2 | 82 | Summary(pl.UTF-8): Wiązania Pythona dla komponentu QScintilla2 - pliki programistyczne |
9ee0f3af KK |
83 | Group: Development/Languages/Python |
84 | Requires: python-%{name} = %{version}-%{release} | |
9a281e92 | 85 | Requires: python-PyQt4-devel >= 4.8.2 |
9ee0f3af KK |
86 | |
87 | %description -n python-%{name}-devel | |
88 | Python bindings for the QScintilla2 - development files. | |
89 | ||
d2b29e31 JR |
90 | %description -n python-%{name}-devel -l pl.UTF-8 |
91 | Wiązania Pythona dla komponentu QScintilla2 - pliki programistyczne. | |
23949924 | 92 | |
9ee0f3af | 93 | %prep |
db7bb55a | 94 | %setup -q -n QScintilla-gpl-%{version} |
9ee0f3af | 95 | %patch0 -p1 |
9ee0f3af KK |
96 | |
97 | %build | |
e4b176be | 98 | cd Qt4Qt5 |
9cdd2f67 | 99 | qmake-qt4 qscintilla.pro |
439a2c93 | 100 | %{__make} |
9ee0f3af KK |
101 | cd - |
102 | ||
103 | cd designer-Qt4 | |
9cdd2f67 | 104 | qmake-qt4 designer.pro |
9ee0f3af KK |
105 | %{__make} |
106 | cd - | |
107 | ||
108 | cd Python | |
9a281e92 | 109 | %{__python} configure.py \ |
9ee0f3af | 110 | -c -j 3 \ |
e4b176be JB |
111 | -n ../Qt4Qt5 \ |
112 | -o ../Qt4Qt5 | |
9ee0f3af KK |
113 | %{__make} |
114 | cd - | |
115 | ||
116 | %install | |
117 | rm -rf $RPM_BUILD_ROOT | |
118 | ||
e4b176be | 119 | %{__make} -C Qt4Qt5 install \ |
9ee0f3af KK |
120 | INSTALL_ROOT=$RPM_BUILD_ROOT |
121 | %{__make} -C designer-Qt4 install \ | |
122 | INSTALL_ROOT=$RPM_BUILD_ROOT | |
123 | %{__make} -C Python install \ | |
124 | DESTDIR=$RPM_BUILD_ROOT | |
125 | ||
126 | for file in $RPM_BUILD_ROOT%{_datadir}/locale/*.qm | |
127 | do | |
23949924 JB |
128 | lang=`echo $file | sed -r 's:.*/[a-zA-Z]*_(.*).qm:\1:'` |
129 | [ "$lang" == "pt_br" ] && lang=pt_BR | |
130 | install -d $RPM_BUILD_ROOT%{_datadir}/locale/$lang/LC_MESSAGES | |
131 | mv -f $file $RPM_BUILD_ROOT%{_datadir}/locale/$lang/LC_MESSAGES/qscintilla2.qm | |
9ee0f3af KK |
132 | done |
133 | ||
134 | %clean | |
135 | rm -rf $RPM_BUILD_ROOT | |
136 | ||
137 | %post -p /sbin/ldconfig | |
138 | %postun -p /sbin/ldconfig | |
139 | ||
140 | %files | |
141 | %defattr(644,root,root,755) | |
ece58d84 | 142 | %doc GPL_EXCEPTION.TXT NEWS OPENSOURCE-NOTICE.TXT README |
9ee0f3af | 143 | %attr(755,root,root) %{_libdir}/libqscintilla2.so.*.*.* |
14ec3a85 | 144 | %attr(755,root,root) %ghost %{_libdir}/libqscintilla2.so.9 |
739c851d | 145 | %lang(cs) %{_datadir}/locale/cs/LC_MESSAGES/qscintilla2.qm |
9ee0f3af | 146 | %lang(de) %{_datadir}/locale/de/LC_MESSAGES/qscintilla2.qm |
12a74d0d | 147 | %lang(es) %{_datadir}/locale/es/LC_MESSAGES/qscintilla2.qm |
9ee0f3af KK |
148 | %lang(fr) %{_datadir}/locale/fr/LC_MESSAGES/qscintilla2.qm |
149 | %lang(pt_BR) %{_datadir}/locale/pt_BR/LC_MESSAGES/qscintilla2.qm | |
150 | %lang(ru) %{_datadir}/locale/ru/LC_MESSAGES/qscintilla2.qm | |
82fa3613 KK |
151 | %dir %{_datadir}/qt4/qsci |
152 | %dir %{_datadir}/qt4/qsci/api | |
9ee0f3af KK |
153 | |
154 | %files devel | |
155 | %defattr(644,root,root,755) | |
156 | %doc doc/Scintilla/* | |
157 | %attr(755,root,root) %{_libdir}/libqscintilla2.so | |
158 | %{_includedir}/qt4/Qsci | |
159 | ||
160 | %files -n QtDesigner-plugin-%{name} | |
9a281e92 | 161 | %defattr(644,root,root,755) |
ece58d84 | 162 | %attr(755,root,root) %{_libdir}/qt4/plugins/designer/libqscintillaplugin.so |
9ee0f3af KK |
163 | |
164 | %files -n python-%{name} | |
165 | %defattr(644,root,root,755) | |
ece58d84 JB |
166 | %attr(755,root,root) %{py_sitedir}/PyQt4/Qsci.so |
167 | %dir %{_datadir}/qt4/qsci/api/python | |
168 | %{_datadir}/qt4/qsci/api/python/Python-*.api | |
169 | %{_datadir}/qt4/qsci/api/python/QScintilla2.api | |
9ee0f3af KK |
170 | |
171 | %files -n python-%{name}-devel | |
172 | %defattr(644,root,root,755) | |
173 | %{_sipfilesdir}/PyQt4/Qsci |