From a9f150832fe29c58beb1f279d18d0600037c4424 Mon Sep 17 00:00:00 2001 From: Rex Dieter Date: Nov 12 2007 17:51:43 +0000 Subject: - License: Python Software Foundation License v2 - fix/cleanup some macro usage - fix Source, Url. --- 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 bf25dda..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.7.1 -Release: 1%{?dist} -License: GPL +Release: 2%{?dist} +# 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 @@ -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,35 +62,45 @@ 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 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