]> git.pld-linux.org Git - packages/qscintilla2.git/blame - qscintilla2.spec
- updated to 2.7 (based on Scintilla 3.2.3)
[packages/qscintilla2.git] / qscintilla2.spec
CommitLineData
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 5Summary: QScintilla2 - a port to Qt of the Scintilla editing component
0bd4b1b2 6Summary(pl.UTF-8): QScintilla2 - port komponentu edytora Scintilla dla biblioteki Qt
9ee0f3af 7Name: qscintilla2
14ec3a85
KK
8Version: 2.7
9Release: 1
ece58d84 10License: GPL v2 or GPL v3 with Riverbank GPL Exception v1.1
9ee0f3af 11Group: X11/Libraries
69587943 12Source0: http://downloads.sourceforge.net/pyqt/QScintilla-gpl-%{version}.tar.gz
e4b176be 13# Source0-md5: 6e6641b6f3863c01cc28c2d7bd2495f9
9b858b8d 14Patch0: %{name}-internal_build.patch
15URL: http://www.riverbankcomputing.co.uk/software/qscintilla/
9ee0f3af
KK
16BuildRequires: QtDesigner-devel
17BuildRequires: QtGui-devel
43763721 18BuildRequires: python-PyQt4-devel >= 4.8.2
203c74b1 19BuildRequires: python-sip-devel >= 2:4.14
14ec3a85
KK
20BuildRequires: qt4-build >= 4.8
21BuildRequires: qt4-qmake >= 4.8
9ee0f3af 22BuildRequires: rpm-pythonprov
2b7936b6 23BuildRequires: rpmbuild(macros) >= 1.558
9ee0f3af
KK
24BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26%define _sipfilesdir %{_datadir}/sip
27
28%description
29QScintilla2 is a port to Qt of the Scintilla editing component.
30This version of QScintilla is based on Scintilla v%{scintilla_ver}.
31
d2b29e31 32%description -l pl.UTF-8
23949924
JB
33QScintilla2 to port komponentu edytora Scintilla dla biblioteki Qt.
34Ta wersja QScintilli jest oparta na Scintilli %{scintilla_ver}.
35
9ee0f3af
KK
36%package devel
37Summary: Development files for the QScintilla2
0bd4b1b2 38Summary(pl.UTF-8): Pliki nagłówkowe dla komponentu QScintilla2
9ee0f3af
KK
39Group: X11/Development/Libraries
40Requires: %{name} = %{version}-%{release}
41Requires: QtGui-devel
42
43%description devel
44This package contains the header files necessary to develop
439a2c93 45applications using QScintilla2.
9ee0f3af 46
d2b29e31
JR
47%description devel -l pl.UTF-8
48Ten pakiet zawiera pliki nagłówkowe potrzebne do tworzenia programów z
49użyciem komponentu QScintilla2.
23949924 50
9ee0f3af
KK
51%package -n QtDesigner-plugin-%{name}
52Summary: QScintilla2 plugin for Qt Designer
0bd4b1b2 53Summary(pl.UTF-8): Wtyczka QScintilla2 dla Qt Designera
9ee0f3af
KK
54Group: X11/Development/Libraries
55Requires: %{name} = %{version}-%{release}
56Requires: QtDesigner
57
58%description -n QtDesigner-plugin-%{name}
59QScintilla2 plugin for Qt Designer that allows QScintilla instances
60to be included in GUI designs just like any other Qt widget.
61
d2b29e31
JR
62%description -n QtDesigner-plugin-%{name} -l pl.UTF-8
63Wtyczka WScintilla2 dla Qt Designera pozwalająca na włączanie
64instancji QScintilli w projekty GUI w ten sam sposób, co inne widgety
23949924
JB
65Qt.
66
9ee0f3af
KK
67%package -n python-%{name}
68Summary: Python bindings for the QScintilla2
0bd4b1b2 69Summary(pl.UTF-8): Wiązania Pythona dla komponentu QScintilla2
9ee0f3af
KK
70Group: Libraries/Python
71Requires: %{name} = %{version}-%{release}
a7c81c1e 72%requires_ge python-PyQt4
9ee0f3af
KK
73
74%description -n python-%{name}
75Python bindings for the QScintilla2.
76
d2b29e31
JR
77%description -n python-%{name} -l pl.UTF-8
78Wiązania Pythona dla komponentu QScintilla2.
23949924 79
9ee0f3af
KK
80%package -n python-%{name}-devel
81Summary: Python bindings for the QScintilla2 - development files
0bd4b1b2 82Summary(pl.UTF-8): Wiązania Pythona dla komponentu QScintilla2 - pliki programistyczne
9ee0f3af
KK
83Group: Development/Languages/Python
84Requires: python-%{name} = %{version}-%{release}
9a281e92 85Requires: python-PyQt4-devel >= 4.8.2
9ee0f3af
KK
86
87%description -n python-%{name}-devel
88Python bindings for the QScintilla2 - development files.
89
d2b29e31
JR
90%description -n python-%{name}-devel -l pl.UTF-8
91Wią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 98cd Qt4Qt5
9cdd2f67 99qmake-qt4 qscintilla.pro
439a2c93 100%{__make}
9ee0f3af
KK
101cd -
102
103cd designer-Qt4
9cdd2f67 104qmake-qt4 designer.pro
9ee0f3af
KK
105%{__make}
106cd -
107
108cd Python
9a281e92 109%{__python} configure.py \
9ee0f3af 110 -c -j 3 \
e4b176be
JB
111 -n ../Qt4Qt5 \
112 -o ../Qt4Qt5
9ee0f3af
KK
113%{__make}
114cd -
115
116%install
117rm -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
126for file in $RPM_BUILD_ROOT%{_datadir}/locale/*.qm
127do
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
132done
133
134%clean
135rm -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
This page took 0.105746 seconds and 4 git commands to generate.