910c638
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
cvsdist 884b658
%define minor .2
cvsdist 4f91b63
6e36d25
%define qtver 3.3.8
cvsdist 43c5478
%define qtpkg qt
cvsdist 4f91b63
cvsdist 49f66d1
Summary: SIP - Python/C++ Bindings Generator
cvsdist 49f66d1
Name: sip
0a2ceea
Version: 4.7.1
0a2ceea
Release: 1%{?dist}
cvsdist 49f66d1
License: GPL
cvsdist 49f66d1
Group: Development/Tools
cvsdist 4f91b63
Url: http://www.riverbankcomputing.co.uk/
b6dceb6
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
cvsdist 199f046
Source: http://www.riverbankcomputing.co.uk/download/sip/%{name}-%{version}.tar.gz
cvsdist 4f91b63
40cea3b
Patch: sip-4.7-64bit.patch
40cea3b
910c638
BuildRequires: python-devel
b6dceb6
BuildRequires: %{qtpkg}-devel >= %{qtver}
b6dceb6
BuildRequires: sed
cvsdist 4f91b63
cvsdist 49f66d1
%description
cvsdist 49f66d1
SIP is a tool for generating bindings for C++ classes so that they can be
7947156
accessed as normal Python classes. SIP takes many of its ideas from SWIG but,
cvsdist 49f66d1
because it is specifically designed for C++ and Python, is able to generate
7947156
tighter bindings. SIP is so called because it is a small SWIG.
cvsdist 49f66d1
cvsdist 49f66d1
SIP was originally designed to generate Python bindings for KDE and so has
cvsdist 49f66d1
explicit support for the signal slot mechanism used by the Qt/KDE class
7947156
libraries. However, SIP can be used to generate Python bindings for any C++
cvsdist 49f66d1
class library.
cvsdist 49f66d1
cvsdist 49f66d1
%package devel
cvsdist 49f66d1
Summary: Files needed to generate Python bindings for any C++ class library
cvsdist 49f66d1
Group: Development/Libraries
cvsdist 4f91b63
Requires: %{name} = %{version}-%{release}
cvsdist 199f046
Requires: python-devel 
cvsdist 49f66d1
cvsdist 49f66d1
%description devel
cvsdist 49f66d1
This package contains files needed to generate Python bindings for any C++
cvsdist 49f66d1
classes library.
cvsdist 49f66d1
cvsdist 49f66d1
%prep
cvsdist 199f046
cvsdist 199f046
%setup -q
40cea3b
%patch -p1 -b .64bit
cvsdist 49f66d1
cvsdist 49f66d1
%build
cvsdist 49f66d1
QTDIR="" && source /etc/profile.d/qt.sh
cvsdist 49f66d1
d0e1716
# use qt qmake files
d0e1716
for target in default linux-g++ linux-g++-32 linux-g++-64 ; do
d0e1716
  if [ -f $QTDIR/mkspecs/$target/qmake.conf -a -f specs/$target ] ; then
d0e1716
    ln -sf $QTDIR/mkspecs/$target/qmake.conf specs/$target
d0e1716
  fi
d0e1716
done
d0e1716
910c638
python configure.py -d %{python_sitearch} CXXFLAGS="%{optflags}" CFLAGS="%{optflags}"
cvsdist 460264a
cvsdist 3e556a4
make %{?_smp_mflags} 
cvsdist 49f66d1
cvsdist 49f66d1
%install
cvsdist 199f046
rm -rf %{buildroot}
cvsdist 199f046
cvsdist 199f046
make install DESTDIR=%{buildroot}
da0c076
mkdir -p %{buildroot}%{_datadir}/sip
cvsdist 49f66d1
cvsdist 49f66d1
%clean
cvsdist 199f046
rm -rf %{buildroot}
cvsdist 49f66d1
cvsdist 49f66d1
%post -p /sbin/ldconfig
cvsdist 49f66d1
cvsdist 49f66d1
%postun -p /sbin/ldconfig
cvsdist 49f66d1
cvsdist 49f66d1
%files
cvsdist 49f66d1
%defattr(-,root,root)
cvsdist 460264a
%doc ChangeLog LICENSE NEWS README THANKS
910c638
%{python_sitearch}/*
cvsdist 49f66d1
%{_bindir}/*
cvsdist 49f66d1
cvsdist 49f66d1
%files devel
cvsdist 49f66d1
%defattr(-,root,root)
c706533
%{_datadir}/sip
910c638
%{_includedir}/python?.?/*
cvsdist 49f66d1
cvsdist 49f66d1
%changelog
0a2ceea
* Mon Oct 22 2007 Than Ngo <than@redhat.com> - 4.7.1-1
0a2ceea
- 4.7.1
0a2ceea
40cea3b
* Mon Oct 01 2007 Than Ngo <than@redhat.com> - 4.6-3
40cea3b
- fix rh#289321, sipconfig.py includes wrong py_lib_dir, thanks to Rex Dieter
40cea3b
7947156
* Thu Aug 30 2007 Than Ngo <than@redhat.com> - 4.6-2.fc7
7947156
- typo in description
7947156
6e36d25
* Thu Apr 12 2007 Than Ngo <than@redhat.com> - 4.6-1.fc7
6e36d25
- 4.6
6e36d25
f0b570d
* Thu Jan 18 2007 Than Ngo <than@redhat.com> - 4.5.2-1
f0b570d
- 4.5.2 
f0b570d
910c638
* Thu Dec  7 2006 Jeremy Katz <katzj@redhat.com> - 4.5-2
910c638
- rebuild against python 2.5
910c638
- cleanups for python packaging guidelines
910c638
0bf08f6
* Mon Nov 06 2006 Than Ngo <than@redhat.com> 4.5-1
0bf08f6
- 4.5
0bf08f6
d0e1716
* Thu Sep 28 2006 Than Ngo <than@redhat.com> 4.4.5-3
d0e1716
- fix #207297, use qt qmake files
d0e1716
c706533
* Wed Sep 20 2006 Than Ngo <than@redhat.com> 4.4.5-2
c706533
- fix #206633, own %%_datadir/sip
c706533
b6dceb6
* Wed Jul 19 2006 Than Ngo <than@redhat.com> 4.4.5-1
b6dceb6
- update to 4.4.5
b6dceb6
f37eb2e
* Mon Jul 17 2006 Than Ngo <than@redhat.com> 4.4.3-2
f37eb2e
- rebuild
f37eb2e
e9d3d34
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 4.4.3-1.1
e9d3d34
- rebuild
e9d3d34
d9ca327
* Thu Apr 27 2006 Than Ngo <than@redhat.com> 4.4.3-1
d9ca327
- update to 4.4.3
d9ca327
- built with %%{optflags}
d9ca327
d9ca327
7a04a49
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 4.3.1-1.2.1
7a04a49
- bump again for double-long bug on ppc(64)
7a04a49
37dade3
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 4.3.1-1.2
37dade3
- rebuilt for new gcc4.1 snapshot and glibc changes
37dade3
702e925
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
702e925
- rebuilt
702e925
e77de54
* Mon Sep 12 2005 Than Ngo <than@redhat.com> 4.3.1-1
e77de54
- update to 4.3.1
e77de54
135c7bd
* Wed Mar 23 2005 Than Ngo <than@redhat.com> 4.2.1-1
135c7bd
- 4.2.1
135c7bd
a6c1ab4
* Fri Mar 04 2005 Than Ngo <than@redhat.com> 4.2-1
a6c1ab4
- 4.2
a6c1ab4
7f6dc7e
* Thu Nov 11 2004 Than Ngo <than@redhat.com> 4.1-2
7f6dc7e
- rebuild against python 2.4
7f6dc7e
91222db
* Fri Sep 24 2004 Than Ngo <than@redhat.com> 4.1-1
91222db
- update to 4.1
91222db
cvsdist 6eb8b2c
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 6eb8b2c
- rebuilt
cvsdist 6eb8b2c
cvsdist 884b658
* Thu May 27 2004 Than Ngo <than@redhat.com> 3.10.2-1
cvsdist 884b658
- update to 3.10.2
cvsdist 884b658
cvsdist 199f046
* Fri Mar 12 2004 Than Ngo <than@redhat.com> 3.10.1-1
cvsdist 199f046
- update to 3.10.1
cvsdist 199f046
cvsdist 199f046
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 199f046
- rebuilt
cvsdist 199f046
cvsdist 199f046
* Thu Feb 19 2004 Than Ngo <than@redhat.com> 3.10-6 
cvsdist 199f046
- fix Requires issue, bug #74004
cvsdist 199f046
cvsdist 199f046
* Thu Feb 19 2004 Than Ngo <than@redhat.com> 3.10-5
cvsdist 199f046
- fix lib64 issue
cvsdist 199f046
cvsdist 199f046
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 199f046
- rebuilt
cvsdist 199f046
cvsdist 199f046
* Thu Feb 12 2004 Than Ngo <than@redhat.com> 3.10-3
cvsdist 199f046
- use new method of building SIP
cvsdist 199f046
cvsdist 199f046
* Wed Feb 11 2004 Than Ngo <than@redhat.com> 3.10-2
cvsdist 199f046
- rebuilt against qt 3.3.0
cvsdist 199f046
cvsdist 199f046
* Wed Feb 04 2004 Than Ngo <than@redhat.com> 3.10-1
cvsdist 199f046
- 3.10
cvsdist 199f046
cvsdist aee74a9
* Thu Nov 27 2003 Than Ngo <than@redhat.com> 3.8-2
cvsdist aee74a9
- rebuild against python 2.3 and Qt 3.2.3
cvsdist aee74a9
cvsdist a488806
* Fri Sep 26 2003 Harald Hoyer <harald@redhat.de> 3.8-1
cvsdist a488806
- 3.8
cvsdist a488806
cvsdist a488806
* Mon Jul 21 2003 Than Ngo <than@redhat.com> 3.7-1
cvsdist a488806
- 3.7
cvsdist a488806
cvsdist a488806
* Tue Jun 24 2003 Than Ngo <than@redhat.com> 3.6-3
cvsdist a488806
- rebuilt
cvsdist a488806
cvsdist a488806
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
cvsdist a488806
- rebuilt
cvsdist a488806
cvsdist a488806
* Tue May  6 2003 Than Ngo <than@redhat.com> 3.6-1.1
cvsdist a488806
- 3.6
cvsdist a488806
cvsdist a488806
* Tue Mar  4 2003 Than Ngo <than@redhat.com> 3.5.1-0.20030301.0
cvsdist a488806
- snapshot 20030301, support qt 3.1.2
cvsdist a488806
cvsdist 4f91b63
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
cvsdist 4f91b63
- rebuilt
cvsdist 4f91b63
cvsdist 4f91b63
* Tue Dec 11 2002 Than Ngo <than@redhat.com> 3.5-1
cvsdist 4f91b63
- 3.5 release
cvsdist 4f91b63
cvsdist 4f91b63
* Mon Nov 18 2002 Than Ngo <than@redhat.com> 3.5-0.20021114.1
cvsdist 4f91b63
- update RC, which supports qt 3.1.0
cvsdist 4f91b63
- fix dependency problem with python
cvsdist 4f91b63
cvsdist 4f91b63
* Thu Nov  7 2002 Than Ngo <than@redhat.com> 3.4-4
cvsdist 4f91b63
- update to 3.4
cvsdist 4f91b63
cvsdist af023e2
* Wed Aug 28 2002 Than Ngo <than@redhat.com> 3.3.2-4
cvsdist af023e2
- rpath issue
cvsdist af023e2
cvsdist 5fc1d35
* Mon Aug 26 2002 Than Ngo <than@redhat.com> 3.3.2-3
cvsdist 5fc1d35
- rebuild against new qt
cvsdist 5fc1d35
cvsdist 586aace
* Sat Aug 10 2002 Elliot Lee <sopwith@redhat.com>
cvsdist 586aace
- rebuilt with gcc-3.2 (we hope)
cvsdist 586aace
cvsdist 460264a
* Tue Jul 23 2002 Than Ngo <than@redhat.com> 3.3.2-1
cvsdist 460264a
- 3.3.2 release for qt 3.0.5
cvsdist 460264a
cvsdist 460264a
* Mon Jul  1 2002 Than Ngo <than@redhat.com> 3.2.4-4
cvsdist 460264a
- move python modul libsip.so into sip (bug #67640)
cvsdist 460264a
cvsdist 460264a
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
cvsdist 460264a
- automated rebuild
cvsdist 460264a
cvsdist 460264a
* Sun May 26 2002 Tim Powers <timp@redhat.com>
cvsdist 460264a
- automated rebuild
cvsdist 460264a
cvsdist 460264a
* Wed May 22 2002 Harald Hoyer <harald@redhat.de>
cvsdist 460264a
- updated to release 3.2.4
cvsdist 460264a
cvsdist 460264a
* Thu May 02 2002 Than Ngo <than@redhat.com> 3.2-0.rc4
cvsdist 460264a
- 3.2rc4
cvsdist 460264a
- build against python 2
cvsdist 460264a
cvsdist 460264a
* Tue Apr 16 2002 Than Ngo <than@redhat.com> 3.1-2
cvsdist 4bbdb7a
- rebuild
cvsdist 4bbdb7a
cvsdist 3e556a4
* Fri Mar 29 2002 Than  Ngo <than@redhat.com> 3.1-1
cvsdist 3e556a4
- update 3.1 for qt 3.0.3
cvsdist 3e556a4
cvsdist 43c5478
* Tue Mar  07 2002 Than Ngo <than@redhat.com> 3.0-6
cvsdist 43c5478
- rebuild against qt3
cvsdist 43c5478
cvsdist 43c5478
* Fri Feb 22 2002 Than Ngo <than@redhat.com> 3.0-5
cvsdist 43c5478
- build against python 1.5 and qt 2.3.2
cvsdist 43c5478
cvsdist 43c5478
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
cvsdist 43c5478
- automated rebuild
cvsdist 43c5478
cvsdist 43c5478
* Tue Jan 08 2002 Than Ngo <than@redhat.com> 3.0-3
cvsdist 43c5478
- rebuild to get rid of libGL
cvsdist 43c5478
cvsdist 43c5478
* Mon Nov 19 2001 Than Ngo <than@redhat.com> 3.0-2
cvsdist 43c5478
- build against qt3
cvsdist 43c5478
cvsdist 43c5478
* Sun Nov 18 2001 Than Ngo <than@redhat.com> 3.0-1
cvsdist 43c5478
- update to 3.0
cvsdist 43c5478
cvsdist 43c5478
* Sun Nov 11 2001 Than Ngo <than@redhat.com> 3.0-0.20011110.1
cvsdist 43c5478
- snapshot
cvsdist 43c5478
cvsdist 43c5478
* Tue Aug 14 2001 Than Ngo <than@redhat.com> 2.5-1
cvsdist 43c5478
- update to 2.5
cvsdist 43c5478
- requires python 2
cvsdist 43c5478
- Updated URL
cvsdist 0f4da21
cvsdist f168f00
* Mon Jul 23 2001 Than Ngo <than@redhat.com>
cvsdist f168f00
- fix build dependency (bug #49698)
cvsdist f168f00
cvsdist 49f66d1
* Mon Jul 16 2001 Trond Eivind Glomsrød <teg@redhat.com>
cvsdist 49f66d1
- s/Copyright/License/
cvsdist 49f66d1
- Make devel subpackage depend on main
cvsdist 49f66d1
cvsdist 49f66d1
* Mon Apr 23 2001 Than Ngo <than@redhat.com>
cvsdist 49f66d1
- update to 2.4
cvsdist 49f66d1
cvsdist 49f66d1
* Wed Feb 28 2001 Tim Powers <timp@redhat.com>
cvsdist 49f66d1
- rebuilt against new libmng
cvsdist 49f66d1
cvsdist 49f66d1
* Fri Feb 23 2001 Than Ngo <than@redhat.com>
cvsdist 49f66d1
- fix to use python1.5
cvsdist 49f66d1
cvsdist 49f66d1
* Thu Feb 22 2001 Than Ngo <than@redhat.com>
cvsdist 49f66d1
- update to 2.3 release
cvsdist 49f66d1
cvsdist 49f66d1
* Fri Feb 02 2001 Than Ngo <than@redhat.com>
cvsdist 49f66d1
- rebuild in new envoroment
cvsdist 49f66d1
cvsdist 49f66d1
* Tue Dec 26 2000 Than Ngo <than@redhat.com>
cvsdist 49f66d1
- rebuilt against qt-2.2.3
cvsdist 49f66d1
- update Url
cvsdist 49f66d1
cvsdist 49f66d1
* Mon Nov 20 2000 Tim Powers <timp@redhat.com>
cvsdist 49f66d1
- rebuilt to fix bad dir perms
cvsdist 49f66d1
cvsdist 49f66d1
* Wed Nov 8 2000 Than Ngo <than@redhat.com>
cvsdist 49f66d1
- update to 2.2
cvsdist 49f66d1
- don't apply the patch, since the gcc-2.96-62 works correct
cvsdist 49f66d1
cvsdist 49f66d1
* Mon Oct 23 2000 Than Ngo <than@redhat.com>
cvsdist 49f66d1
- update to 2.1
cvsdist 49f66d1
cvsdist 49f66d1
* Thu Aug 3 2000 Than Ngo <than@redhat.de>
cvsdist 49f66d1
- add ldconfig in %post, %postun and Prereq (Bug #15136)
cvsdist 49f66d1
cvsdist 49f66d1
* Thu Jul 27 2000 Than Ngo <than@redhat.de>
cvsdist 49f66d1
- don't hardcode Qt version
cvsdist 49f66d1
cvsdist 49f66d1
* Mon Jul 25 2000 Prospector <prospector@redhat.com>
cvsdist 49f66d1
- rebuilt
cvsdist 49f66d1
cvsdist 49f66d1
* Mon Jul 17 2000 Tim Powers <timp@redhat.com>
cvsdist 49f66d1
- added defattr to both packages
cvsdist 49f66d1
cvsdist 49f66d1
* Wed Jul 12 2000 Than Ngo <than@redhat.de>
cvsdist 49f66d1
- fix to built withe gcc-2.96
cvsdist 49f66d1
cvsdist 49f66d1
* Mon Jul 03 2000 Prospector <bugzilla@redhat.com>
cvsdist 49f66d1
- automatic rebuild
cvsdist 49f66d1
cvsdist 49f66d1
* Sat May 27 2000 Ngo Than <than@redhat.de>
cvsdist 49f66d1
- update 0.12 for 7.0
cvsdist 49f66d1
cvsdist 49f66d1
* Mon May  8 2000 Bernhard Rosenkraenzer <bero@redhat.com>
cvsdist 49f66d1
- 0.11.1
cvsdist 49f66d1
- Qt 2.1.0
cvsdist 49f66d1
cvsdist 49f66d1
* Wed Feb  2 2000 Bernhard Rosenkraenzer <bero@redhat.com>
cvsdist 49f66d1
- 0.10.1
cvsdist 49f66d1
- Qt 1.45
cvsdist 49f66d1
- handle RPM_OPT_FLAGS
cvsdist 49f66d1
cvsdist 49f66d1
* Tue Dec 21 1999 Ngo Than <than@redhat.de>
cvsdist 49f66d1
- updated 0.10
cvsdist 49f66d1
cvsdist 49f66d1
* Tue Dec 14 1999 Ngo Than <than@redhat.de>
cvsdist 49f66d1
- 0.10pre5
cvsdist 49f66d1
cvsdist 49f66d1
* Sun Nov 28 1999 Ngo Than <than@redhat.de>
cvsdist 49f66d1
- Initial packaging as RPM for powertools-6.2