%define pythonver 1.5.2
%define date 20011110
%define is_release 1
%define qtver 3.0.2
%define qtpkg qt
Summary: SIP - Python/C++ Bindings Generator
Name: sip
Version: 3.0
%if %{is_release}
Release: 6
%else
Release: 1.%{date}.1
%endif
License: GPL
Group: Development/Tools
%if %{is_release}
Source: ftp://ftp.rygannon.com/pub/sip/sip-%{version}.tar.gz
%else
Source: ftp://ftp.rygannon.com/pub/sip/sip-%{version}-%{date}.tar.gz
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-root
Url: http://www.thekompany.com/projects
Prereq: /sbin/ldconfig
%if "%{pythonver}" == "2.2"
%define pythonpkg python2
%define pythonprog /usr/bin/python2
%else
%define pythonpkg python
%define pythonprog /usr/bin/python
%endif
BuildPrereq: %{pythonpkg} == %{pythonver}
BuildPrereq: %{qtpkg}-devel >= %{qtver}
Requires: %{pythonpkg} == %{pythonver}
%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,
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.
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++
class library.
%package devel
Summary: Files needed to generate Python bindings for any C++ class library
Group: Development/Libraries
Requires: %{name} = %{version}
%description devel
This package contains files needed to generate Python bindings for any C++
classes library.
%prep
%if %{is_release}
%setup -q
%else
%setup -q -n %{name}
%endif
%build
QTDIR="" && source /etc/profile.d/qt.sh
%configure --with-python=%{pythonprog}
make
%install
rm -rf $RPM_BUILD_ROOT
%makeinstall
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc README AUTHORS COPYING ChangeLog NEWS TODO
%{_libdir}/*.so.*
%{_bindir}/*
%files devel
%defattr(-,root,root)
%{_libdir}/*.a
%{_libdir}/*.la
%{_libdir}/*.so
%{_includedir}/sip
%changelog
* Tue Mar 07 2002 Than Ngo <than@redhat.com> 3.0-6
- rebuild against qt3
* Fri Feb 22 2002 Than Ngo <than@redhat.com> 3.0-5
- build against python 1.5 and qt 2.3.2
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
- automated rebuild
* Tue Jan 08 2002 Than Ngo <than@redhat.com> 3.0-3
- rebuild to get rid of libGL
* Mon Nov 19 2001 Than Ngo <than@redhat.com> 3.0-2
- build against qt3
* Sun Nov 18 2001 Than Ngo <than@redhat.com> 3.0-1
- update to 3.0
* Sun Nov 11 2001 Than Ngo <than@redhat.com> 3.0-0.20011110.1
- snapshot
* Tue Aug 14 2001 Than Ngo <than@redhat.com> 2.5-1
- update to 2.5
- requires python 2
- Updated URL
* Mon Jul 23 2001 Than Ngo <than@redhat.com>
- fix build dependency (bug #49698)
* Mon Jul 16 2001 Trond Eivind Glomsrød <teg@redhat.com>
- s/Copyright/License/
- Make devel subpackage depend on main
* Mon Apr 23 2001 Than Ngo <than@redhat.com>
- update to 2.4
* Wed Feb 28 2001 Tim Powers <timp@redhat.com>
- rebuilt against new libmng
* Fri Feb 23 2001 Than Ngo <than@redhat.com>
- fix to use python1.5
* Thu Feb 22 2001 Than Ngo <than@redhat.com>
- update to 2.3 release
* Fri Feb 02 2001 Than Ngo <than@redhat.com>
- rebuild in new envoroment
* Tue Dec 26 2000 Than Ngo <than@redhat.com>
- rebuilt against qt-2.2.3
- update Url
* Mon Nov 20 2000 Tim Powers <timp@redhat.com>
- rebuilt to fix bad dir perms
* Wed Nov 8 2000 Than Ngo <than@redhat.com>
- update to 2.2
- don't apply the patch, since the gcc-2.96-62 works correct
* Mon Oct 23 2000 Than Ngo <than@redhat.com>
- update to 2.1
* Thu Aug 3 2000 Than Ngo <than@redhat.de>
- add ldconfig in %post, %postun and Prereq (Bug #15136)
* Thu Jul 27 2000 Than Ngo <than@redhat.de>
- don't hardcode Qt version
* Mon Jul 25 2000 Prospector <prospector@redhat.com>
- rebuilt
* Mon Jul 17 2000 Tim Powers <timp@redhat.com>
- added defattr to both packages
* Wed Jul 12 2000 Than Ngo <than@redhat.de>
- fix to built withe gcc-2.96
* Mon Jul 03 2000 Prospector <bugzilla@redhat.com>
- automatic rebuild
* Sat May 27 2000 Ngo Than <than@redhat.de>
- update 0.12 for 7.0
* Mon May 8 2000 Bernhard Rosenkraenzer <bero@redhat.com>
- 0.11.1
- Qt 2.1.0
* Wed Feb 2 2000 Bernhard Rosenkraenzer <bero@redhat.com>
- 0.10.1
- Qt 1.45
- handle RPM_OPT_FLAGS
* Tue Dec 21 1999 Ngo Than <than@redhat.de>
- updated 0.10
* Tue Dec 14 1999 Ngo Than <than@redhat.de>
- 0.10pre5
* Sun Nov 28 1999 Ngo Than <than@redhat.de>
- Initial packaging as RPM for powertools-6.2