diff --git a/.cvsignore b/.cvsignore index e69de29..9fb3f1a 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +PyKDE-snapshot20060422.tar.gz diff --git a/PyKDE.spec b/PyKDE.spec new file mode 100644 index 0000000..3fc45a7 --- /dev/null +++ b/PyKDE.spec @@ -0,0 +1,155 @@ + +%define snapshot 20060422 + +Summary: Python bindings for KDE +Name: PyKDE +Version: 3.15.2 +Release: 0.5.%{snapshot}%{?dist}%{?kde} + +License: GPL +URL: http://www.riverbankcomputing.co.uk/pykde/ +Source: http://www.riverbankcomputing.com/Downloads/PyKDE3/PyKDE-snapshot%{snapshot}.tar.gz +Group: Development/Languages +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: python-devel >= 2.3 +%global python_ver %(%{__python} -c "import sys ; print sys.version[:3]") +%global python_sitedir %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)") +Requires: python-abi = %{python_ver} + +BuildRequires: sip-devel >= 4.4.3 +BuildRequires: PyQt-devel >= 3.16 +%global pyqt_ver %(pyuic -version 2>&1 | cut -d' ' -f5) +%if "%{?pyqt_ver}" > "2" +Requires: PyQt = %{pyqt_ver} +%endif + +BuildRequires: kdelibs-devel >= 6:3.4 +%global kdelibs_ver %(kde-config --version 2>/dev/null | grep KDE | cut -d' ' -f2 | cut -d- -f1) +%if "%{?kdelibs_ver}" > "2" +Requires: kdelibs >= 6:%{kdelibs_ver} +%endif + +%description +These are the Python bindings for KDE. + +%package devel +Summary: %{name} SIP files +Group: Development/Languages +Requires: %{name} = %{version}-%{release} +#Obsoletes: %{name}-docs < %{version}-%{release} +Provides: %{name}-docs = %{version}-%{release} +%description devel +Sip files and documentation needed for developing with %{name} + + +%prep +%setup -q %{?snapshot:-n %{name}-snapshot%{snapshot}} + + +%build +unset QTDIR || : ; source /etc/profile.d/qt.sh + +%{__python} configure.py -L %{_lib} -d %{python_sitedir} + +# smp broken +make + + +%install +rm -rf $RPM_BUILD_ROOT + +make install DESTDIR=$RPM_BUILD_ROOT + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc AUTHORS ChangeLog COPYING NEWS README THANKS +%{_bindir}/* +%{python_sitedir}/* + +%files devel +%defattr(-,root,root,-) +%doc doc/* examples +%{_datadir}/sip/ + + +%changelog +* Fri Jul 21 2006 Rex Dieter 3.15.2-0.5.20060422 +- %%doc AUTHORS COPYING +- License: GPL + +* Fri May 12 2006 Rex Dieter 3.15.2-0.4.20060422 +- drop sip-abi crud, rely (only) on + Requires: PyQt + +* Fri Apr 28 2006 Rex Dieter 3.15.2-0.3.20060422 +- fix busted Requires wrt sip-abi + +* Thu Apr 27 2006 Rex Dieter 3.15.2-0.2.20060422 +- respin for sip-4.4.3 +- use sip-abi, sip-abi-min + +* Wed Apr 19 2006 Rex Dieter 3.15.2-0.1.20060422 +- 20060422 snapshot + +* Fri Apr 08 2005 Rex Dieter 3.11.4-0.1.20050316.kde +- 20050316 snapshot + +* Tue Dec 21 2004 Rex Dieter 3.11.3-0.6.kde +- Req: python-abi = %%python_ver + +* Wed Dec 15 2004 Rex Dieter 3.11.3-0.5.kde +- rebuild against 3.3.2 +- cleaner lib64 fix + +* Fri Oct 08 2004 Rex Dieter 3.11.3-0.4.kde +- lib64 fixes (thanks Bryan O'Sullivan ) +- kde-3.3.1 fixes +- sip3: BR: sip-3.11.2 + +* Tue Sep 21 2004 Rex Dieter 3.11.3-0.3.kde +- rebuild against sip-3.11/sip-4.1, PyKDE-3.13 + +* Tue Sep 7 2004 Rex Dieter 3.11.3-0.1 +- -devel: include classref(-docs subpkg?), examples + +* Fri Aug 27 2004 Rex Dieter 3.11.3-0.fdr.1 +- 3.11.3 + +* Tue Jul 20 2004 Rex Dieter 3.11.1-0.fdr.1 +- use/Requires: %%{python_sitearch} + +* Mon Jul 06 2004 Rex Dieter 3.11.1-0.fdr.0 +- 3.11.1 + +* Tue Jun 01 2004 Rex Dieter 3.11-0.fdr.0.1.rc1 +- 3.11rc1 + +* Thu Dec 04 2003 Rex Dieter 3.8.0-0.fdr.0 +- 3.8.0 + +* Wed Dec 03 2003 Rex Dieter 3.7.4-0.fdr.2 +- cleanup +- add Fedora Core support + +* Wed Sep 17 2003 Rex Dieter 3.7.4-0.fdr.1 +- rebuild against newer sip/PyQT/kdelibs + +* Tue Aug 19 2003 Rex Dieter 3.7.4-0.fdr.0 +- 3.7-4 + +* Mon Aug 11 2003 Rex Dieter 3.7.3-0.fdr.0 +- 3.7-3 +- fedora'ize + +* Wed Apr 30 2003 Rex Dieter 3.5-2-0.0 +- NOTE: This version does *not* work with PyQt/sip v3.6. Guess + we'll have to wait fo an updated/fixed version. +- kde-redhat versioning. +- NOTE: rh73 pkg built with/for python2. + diff --git a/sources b/sources index e69de29..9cdb2c4 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +3e6a41f3fc5f759713ba7fd3f70635b0 PyKDE-snapshot20060422.tar.gz