diff --git a/.cvsignore b/.cvsignore index 85b81bb..ffdda6d 100644 --- a/.cvsignore +++ b/.cvsignore @@ -8,3 +8,4 @@ sip-4.4.5.tar.gz sip-4.5.tar.gz sip-4.5.2.tar.gz sip-4.6.tar.gz +sip-4.7.1.tar.gz diff --git a/sip.spec b/sip.spec index 8e6d39f..e1ecf49 100644 --- a/sip.spec +++ b/sip.spec @@ -1,18 +1,22 @@ -%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} +%{!?python_sitearch:%global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} +%{!?python_inc:%global python_inc %(%{__python} -c "from distutils.sysconfig import get_python_inc; print get_python_inc(1)")} + %define minor .2 -%define qtver 3.3.8 +%define qtver 1:3.3.8 %define qtpkg qt Summary: SIP - Python/C++ Bindings Generator Name: sip -Version: 4.6 +Version: 4.7.1 Release: 2%{?dist} -License: GPL +# http://www.riverbankcomputing.com/Docs/sip4/sipref.html#license +License: Python Software Foundation License v2 Group: Development/Tools -Url: http://www.riverbankcomputing.co.uk/ +Url: http://www.riverbankcomputing.co.uk/sip/ +Source0: http://www.riverbankcomputing.com/Downloads/sip4/sip-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -Source: http://www.riverbankcomputing.co.uk/download/sip/%{name}-%{version}.tar.gz + Patch: sip-4.7-64bit.patch @@ -22,13 +26,13 @@ BuildRequires: sed %description SIP is a tool for generating bindings for C++ classes so that they can be -accessed as normal Python classes. SIP takes many of its ideas from SWIG but, +accessed as normal Python classes. SIP takes many of its ideas from SWIG but, because it is specifically designed for C++ and Python, is able to generate -tighter bindings. SIP is so called because it is a small SWIG. +tighter bindings. SIP is so called because it is a small SWIG. SIP was originally designed to generate Python bindings for KDE and so has explicit support for the signal slot mechanism used by the Qt/KDE class -libraries. However, SIP can be used to generate Python bindings for any C++ +libraries. However, SIP can be used to generate Python bindings for any C++ class library. %package devel @@ -41,11 +45,13 @@ Requires: python-devel This package contains files needed to generate Python bindings for any C++ classes library. + %prep %setup -q %patch -p1 -b .64bit + %build QTDIR="" && source /etc/profile.d/qt.sh @@ -56,38 +62,54 @@ for target in default linux-g++ linux-g++-32 linux-g++-64 ; do fi done -python configure.py -d %{python_sitearch} CXXFLAGS="%{optflags}" CFLAGS="%{optflags}" +%{__python} configure.py -d %{python_sitearch} CXXFLAGS="%{optflags}" CFLAGS="%{optflags}" make %{?_smp_mflags} + %install rm -rf %{buildroot} make install DESTDIR=%{buildroot} mkdir -p %{buildroot}%{_datadir}/sip + %clean rm -rf %{buildroot} + %post -p /sbin/ldconfig %postun -p /sbin/ldconfig + %files -%defattr(-,root,root) +%defattr(-,root,root,-) %doc ChangeLog LICENSE NEWS README THANKS %{python_sitearch}/* %{_bindir}/* %files devel -%defattr(-,root,root) -%{_datadir}/sip -%{_includedir}/python?.?/* +%defattr(-,root,root,-) +%{_datadir}/sip/ +%{python_inc}/* + %changelog -* Mon Oct 01 2007 Than Ngo - 4.6-2 +* Mon Nov 12 2007 Rex Dieter - 4.7.1-2 +- License: Python Software Foundation License v2 +- fix/cleanup some macro usage +- fix Source, Url. + +* Mon Oct 22 2007 Than Ngo - 4.7.1-1 +- 4.7.1 + +* Mon Oct 01 2007 Than Ngo - 4.6-3 - fix rh#289321, sipconfig.py includes wrong py_lib_dir, thanks to Rex Dieter +* Thu Aug 30 2007 Than Ngo - 4.6-2.fc7 +- typo in description + * Thu Apr 12 2007 Than Ngo - 4.6-1.fc7 - 4.6 diff --git a/sources b/sources index 3d5e889..bc963cb 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -2f57b65de36e85067b3bdf5830315460 sip-4.6.tar.gz +083a4241ce63f9d44fbadc8f3c6d6f42 sip-4.7.1.tar.gz