added -py3 support [release 2.8.4-4mamba;Sat Nov 15 2014]
This commit is contained in:
parent
edab305cfd
commit
d62dca8742
@ -1,7 +1,7 @@
|
|||||||
%define pythonsip_ver %(sip -V)
|
%define pythonsip_ver %(sip -V)
|
||||||
Name: qscintilla
|
Name: qscintilla
|
||||||
Version: 2.8.4
|
Version: 2.8.4
|
||||||
Release: 2mamba
|
Release: 4mamba
|
||||||
Summary: A port to Qt of Neil Hodgson's Scintilla C++ editor control
|
Summary: A port to Qt of Neil Hodgson's Scintilla C++ editor control
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
Vendor: openmamba
|
Vendor: openmamba
|
||||||
@ -24,9 +24,12 @@ BuildRequires: libstdc++6-devel
|
|||||||
#BuildRequires: qt-designer
|
#BuildRequires: qt-designer
|
||||||
# following build requirements are for Python bindings
|
# following build requirements are for Python bindings
|
||||||
# WARNING: do not parametrize python-sip-devel version or it will be useless for ports
|
# WARNING: do not parametrize python-sip-devel version or it will be useless for ports
|
||||||
BuildRequires: python-sip-devel >= 4.16.1
|
BuildRequires: python-sip-devel >= 4.16.4
|
||||||
BuildRequires: PyQt4-devel
|
BuildRequires: PyQt4-devel
|
||||||
#BuildRequires: chrpath
|
#BuildRequires: chrpath
|
||||||
|
%if "%?with_pyver"
|
||||||
|
BuildRequires: PyQt4-py%{with_pyver}
|
||||||
|
%endif
|
||||||
Requires: python-sip = %{pythonsip_ver}
|
Requires: python-sip = %{pythonsip_ver}
|
||||||
Provides: QScintilla2
|
Provides: QScintilla2
|
||||||
Obsoletes: QScintilla2
|
Obsoletes: QScintilla2
|
||||||
@ -44,7 +47,19 @@ Scintilla includes features especially useful when editing and debugging source
|
|||||||
* margins can contain markers like those used in debuggers to indicate breakpoints and the current line.
|
* margins can contain markers like those used in debuggers to indicate breakpoints and the current line.
|
||||||
* recordable macros
|
* recordable macros
|
||||||
* multiple views printing.
|
* multiple views printing.
|
||||||
|
|
||||||
|
%if "%?with_pyver"
|
||||||
|
%define pyver %{with_pyver}
|
||||||
|
%define __python %(rpm --eval %{__python%{with_pyver}})
|
||||||
|
%define python_sitearch %(rpm --eval %{python%{with_pyver}_sitearch})
|
||||||
|
%define python_sitelib %(rpm --eval %{python%{with_pyver}_sitelib})
|
||||||
|
%define python_inc %(rpm --eval %{python%{with_pyver}_inc})
|
||||||
|
%define python_version %(rpm --eval %{python%{with_pyver}_version})
|
||||||
|
%define python_provides %(rpm --eval %{python%{with_pyver}_provides})
|
||||||
|
%define python_requires %(rpm --eval %{python%{with_pyver}_requires})
|
||||||
|
%define py_requires %(rpm --eval %{py%{with_pyver}_requires})
|
||||||
|
%endif
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Summary: Libraries and headers for %{name}
|
Summary: Libraries and headers for %{name}
|
||||||
@ -54,31 +69,28 @@ Obsoletes: QScintilla2-devel
|
|||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
QScintilla is a port to Qt of the Scintilla editing component.
|
QScintilla is a port to Qt of the Scintilla editing component.
|
||||||
|
|
||||||
This package contains libraries and header files need for development.
|
This package contains libraries and header files need for development.
|
||||||
|
|
||||||
%package designer
|
%package designer
|
||||||
Summary: QScintilla designer plugin
|
Summary: QScintilla designer plugin
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
||||||
Provides: QScintilla2-designer
|
|
||||||
Obsoletes: QScintilla2-designer
|
|
||||||
|
|
||||||
%description designer
|
%description designer
|
||||||
QScintilla is a port to Qt of the Scintilla editing component.
|
QScintilla is a port to Qt of the Scintilla editing component.
|
||||||
|
|
||||||
This package contains QScintilla designer plugin.
|
This package contains QScintilla designer plugin.
|
||||||
|
|
||||||
%package -n python-%{name}
|
%package -n python-%{name}%{?with_pyver:-py%{pyver}}
|
||||||
Summary: QScintilla PyQt4 bindings
|
Summary: QScintilla PyQt4 bindings
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
||||||
|
%if "%?with_pyver" == ""
|
||||||
Provides: python-QScintilla2
|
Provides: python-QScintilla2
|
||||||
Obsoletes: python-QScintilla2
|
Obsoletes: python-QScintilla2
|
||||||
|
%endif
|
||||||
|
|
||||||
%description -n python-%{name}
|
%description -n python-%{name}%{?with_pyver:-py%{pyver}}
|
||||||
QScintilla is a port to Qt of the Scintilla editing component.
|
QScintilla is a port to Qt of the Scintilla editing component.
|
||||||
|
|
||||||
This package contains QScintilla PyQt4 bindings.
|
This package contains QScintilla PyQt4 bindings.
|
||||||
|
|
||||||
%package -n python-%{name}-devel
|
%package -n python-%{name}-devel
|
||||||
@ -185,7 +197,7 @@ cd ..
|
|||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_qt4_prefix}/plugins/designer/libqscintillaplugin.so
|
%{_qt4_prefix}/plugins/designer/libqscintillaplugin.so
|
||||||
|
|
||||||
%files -n python-%{name}
|
%files -n python-%{name}%{?with_pyver:-py%{pyver}}
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{python_sitearch}/PyQt4/Qsci.so
|
%{python_sitearch}/PyQt4/Qsci.so
|
||||||
|
|
||||||
@ -196,6 +208,12 @@ cd ..
|
|||||||
#%{_datadir}/qt4/api/python/QScintilla2.api
|
#%{_datadir}/qt4/api/python/QScintilla2.api
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Nov 15 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 2.8.4-4mamba
|
||||||
|
- added -py3 support
|
||||||
|
|
||||||
|
* Sat Nov 15 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 2.8.4-3mamba
|
||||||
|
- rebuilt with python-sip 4.16.4
|
||||||
|
|
||||||
* Sun Nov 02 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 2.8.4-2mamba
|
* Sun Nov 02 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 2.8.4-2mamba
|
||||||
- x86_64: install python module in %python_sitearch
|
- x86_64: install python module in %python_sitearch
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user