rpms/qscintilla/devel qscintilla.spec,1.25,1.26

Rex Dieter rdieter at fedoraproject.org
Fri Jul 17 12:37:15 UTC 2009


Author: rdieter

Update of /cvs/pkgs/rpms/qscintilla/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv3172/devel

Modified Files:
	qscintilla.spec 
Log Message:
add python macro for easy bootstrapping



Index: qscintilla.spec
===================================================================
RCS file: /cvs/pkgs/rpms/qscintilla/devel/qscintilla.spec,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -p -r1.25 -r1.26
--- qscintilla.spec	17 Jun 2009 14:14:34 -0000	1.25
+++ qscintilla.spec	17 Jul 2009 12:37:15 -0000	1.26
@@ -1,6 +1,9 @@
-%{!?python_sitearch:%global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} 
+
 %define scintilla_ver 1.78
 
+# bootstrapping -python
+%define python 1
+
 Name:    qscintilla
 Version: 2.4
 Release: 1%{?dist}
@@ -16,10 +19,14 @@ BuildRoot: %{_tmppath}/%{name}-%{version
 Patch1:         QScintilla-2-gpl-Qt4-incpath.patch
 
 BuildRequires:  qt4-devel
+
 # for -python
+%if 0%{?python}
+%{!?python_sitearch:%global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
 %global pyqt4_version 4.5
 BuildRequires:  PyQt4-devel >= %{pyqt4_version} 
 BuildRequires:  chrpath
+%endif
 
 
 %description
@@ -85,6 +92,7 @@ pushd designer-Qt4
 make %{?_smp_mflags}
 popd
 
+%if 0%{?python}
 pushd Python
 %{__python} configure.py \
             -c -j 3 \
@@ -92,6 +100,7 @@ pushd Python
             -o ../Qt4
 make %{?_smp_mflags}
 popd
+%endif
 
 
 %install
@@ -99,10 +108,12 @@ rm -rf %{buildroot}
 
 make -C Qt4 install INSTALL_ROOT=%{buildroot} 
 make -C designer-Qt4 install INSTALL_ROOT=%{buildroot}
+%if 0%{?python}
 make -C Python install DESTDIR=%{buildroot}
 
 chrpath --list   %{buildroot}%{python_sitearch}/PyQt4/Qsci.so
 chrpath --delete %{buildroot}%{python_sitearch}/PyQt4/Qsci.so
+%endif
 
 
 %clean
@@ -133,6 +144,7 @@ rm -rf %{buildroot}
 %{_qt4_headerdir}/Qsci/
 %{_qt4_libdir}/libqscintilla2.so
 
+%if 0%{?python}
 %files python
 %defattr(-,root,root,-)
 %{python_sitearch}/PyQt4/Qsci.so
@@ -140,6 +152,7 @@ rm -rf %{buildroot}
 %files python-devel
 %defattr(-,root,root,-)
 %{_datadir}/sip/PyQt4/Qsci/
+%endif
 
 
 %changelog




More information about the fedora-extras-commits mailing list