rpms/qscintilla/F-11 qscintilla.spec,1.24,1.25

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


Author: rdieter

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

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



Index: qscintilla.spec
===================================================================
RCS file: /cvs/pkgs/rpms/qscintilla/F-11/qscintilla.spec,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -p -r1.24 -r1.25
--- qscintilla.spec	25 Feb 2009 18:01:16 -0000	1.24
+++ qscintilla.spec	17 Jul 2009 12:37:14 -0000	1.25
@@ -1,6 +1,9 @@
-%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} 
+
 %define scintilla_ver 1.76
 
+# bootstrapping -python
+%define python 1
+
 Name:    qscintilla
 Version: 2.3.2
 Release: 3%{?dist}
@@ -16,9 +19,11 @@ 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)")}
 BuildRequires:  PyQt4-devel
 BuildRequires:  chrpath
+%endif
 
 
 %description
@@ -78,18 +83,19 @@ sed -i 's/\r//' LICENSE.GPL2 GPL_EXCEPTI
 
 %build
 pushd Qt4
-sed -i 's/INSTALLS += header trans qsci/INSTALLS += header trans qsci target/g' qscintilla.pro
+#sed -i 's/INSTALLS += header trans qsci/INSTALLS += header trans qsci target/g' qscintilla.pro
 %{_qt4_qmake} qscintilla.pro
-echo 'build: $(UICDECLS) $(OBJECTS) $(OBJMOC) $(SUBLIBS) $(OBJCOMP)' >> Makefile
+#echo 'build: $(UICDECLS) $(OBJECTS) $(OBJMOC) $(SUBLIBS) $(OBJCOMP)' >> Makefile
 make %{?_smp_mflags}
 popd
 
 pushd designer-Qt4
 %{_qt4_qmake} designer.pro
-echo 'build: $(UICDECLS) $(OBJECTS) $(OBJMOC) $(SUBLIBS) $(OBJCOMP)' >> Makefile
+#echo 'build: $(UICDECLS) $(OBJECTS) $(OBJMOC) $(SUBLIBS) $(OBJCOMP)' >> Makefile
 make %{?_smp_mflags}
 popd
 
+%if 0%{?python}
 pushd Python
 %{__python} configure.py \
             -c -j 3 \
@@ -97,6 +103,7 @@ pushd Python
             -o ../Qt4
 make %{?_smp_mflags}
 popd
+%endif
 
 
 %install
@@ -104,10 +111,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
@@ -138,6 +147,7 @@ rm -rf %{buildroot}
 %{_qt4_headerdir}/Qsci/
 %{_qt4_libdir}/libqscintilla2.so
 
+%if 0%{?python}
 %files python
 %defattr(-,root,root,-)
 %{python_sitearch}/PyQt4/Qsci.so
@@ -145,6 +155,7 @@ rm -rf %{buildroot}
 %files python-devel
 %defattr(-,root,root,-)
 %{_datadir}/sip/PyQt4/Qsci/
+%endif
 
 
 %changelog




More information about the scm-commits mailing list