]> git.pld-linux.org Git - packages/sip.git/blobdiff - sip.spec
- up to 4.10
[packages/sip.git] / sip.spec
index b39310299ce1b4fa001bb1643c5ff5c1e07af38f..024783826ba87e118ee7dbd178d7dfa43543d631 100644 (file)
--- a/sip.spec
+++ b/sip.spec
-Summary:       Python bindings generator for C++ class libraries.
-Summary(pl):   Generator powi±zañ Python'a z bibliotekami klas C++
+# TODO: Check if really v 4.5 is python 2.5 compatible, if so,
+#    kill python2.5.patch
+
+Summary:       Python bindings generator for C++ class libraries
+Summary(pl.UTF-8):     Generator powiązań Pythona z bibliotekami klas C++
 Name:          sip
-Version:       2.5
+Version:       4.10
 Release:       1
-Copyright:     Phil Thompson <phil@river-bank.demon.co.uk>
+Epoch:         2
+License:       redistributable (see LICENSE)
 Group:         Development/Languages/Python
-Group(de):     Entwicklung/Sprachen/Python
-Group(pl):     Programowanie/Jêzyki/Python
-Source0:       http://www.river-bank.demon.co.uk/software/%{name}-%{version}.tar.gz
-URL:           http://www.thekompany.com/projects/pykde/
+Source0:       http://www.riverbankcomputing.com/static/Downloads/sip4/sip-%{version}.tar.gz
+# Source0-md5: 4b8f7361839b33868dd3cc576509ba8e
+URL:           http://www.riverbankcomputing.com/software/sip/
+# Patch0:              %{name}-python2.5.patch
+BuildRequires: libstdc++-devel
+BuildRequires: python-devel >= 2.3
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.167
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-Requires:      python >= 1.5
+
+%define                _sipfilesdir    %{_datadir}/sip
 
 %description
 Generates Python bindings for C++ class libraries from a set of class
-specification files. Also includes a runtime support library needed by
+specification files.
+
+%description -l pl.UTF-8
+Generuje powiązania Pythona z bibliotekami klas C++ ze zbioru plików
+ze specyfikacjami klas.
+
+%package -n python-sip
+Summary:       Python module needed by generated bindings
+Summary(pl.UTF-8):     Moduł Pythona wymagany przez wygenerowane powiązania
+Group:         Libraries/Python
+%pyrequires_eq python-libs
+
+%description -n python-sip
+Generates Python bindings for C++ class libraries from a set of class
+specification files. This package includes runtime library needed by
 all generated bindings.
 
-%description -l pl
-Generuje powi±zania Python'a z bibliotekami klas C++ ze zbioru plików
-ze specyfikacjami klas. Zawiera te¿ bibliotekê potrzebn± do uruchomienia
-wszystkich wygenerowanych powi±zañ.
+%description -n python-sip -l pl.UTF-8
+Generuje powiązania Pythona z bibliotekami klas C++ ze zbioru plików
+ze specyfikacjami klas. Ten pakiet zawiera bibliotekę potrzebną do
+uruchomienia wszystkich wygenerowanych powiązań.
+
+%package -n python-sip-devel
+Summary:       Development files needed to build bindings
+Summary(pl.UTF-8):     Pliki programistyczne potrzebne do budowania powiązań
+Group:         Development/Libraries
+Requires:      %{name} = %{epoch}:%{version}-%{release}
+Requires:      python-devel >= 2.3
+%pyrequires_eq python-libs
+
+%description -n python-sip-devel
+Development files needed to build bindings for C++ classes.
+
+%description -n python-sip-devel -l pl.UTF-8
+Pliki programistyczne potrzebne do budowania powiązań z klasami C++.
 
 %prep
 %setup -q
+#%%patch0 -p1
 
 %build
-./configure --prefix=%{_prefix}
+# configure.py notes:
+# - macros overrides must be last
+# - cannot pass CXXFLAGS+="%{rpmcflags}" or so - builtin -O2 overrides rpmcflags
+python configure.py \
+       -b %{_bindir} \
+       -e %{py_incdir} \
+       -v %{_sipfilesdir} \
+       -d %{py_sitedir} \
+       CC="%{__cc}" \
+       CXX="%{__cxx}" \
+       CFLAGS="%{rpmcflags}" \
+       CXXFLAGS="%{rpmcxxflags}" \
+       LINK="%{__cxx}" \
+       LINK_SHLIB="%{__cxx}"
+
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-%{__make} DESTDIR=$RPM_BUILD_ROOT install
+install -d $RPM_BUILD_ROOT%{_sipfilesdir}
 
-%post
-ldconfig
-
-%postun
-ldconfig
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%attr(-,root,root) %{_bindir}/sip
-%attr(-,root,root) %{_includedir}/sip/sip.h
-%attr(-,root,root) %{_includedir}/sip/sipQt.h
-%attr(-,root,root) %{_libdir}/libsip.a
-%attr(-,root,root) %{_libdir}/libsip.la
-%attr(-,root,root) %{_libdir}/libsip.so
-%attr(-,root,root) %{_libdir}/libsip.so.6
-%attr(-,root,root) %{_libdir}/libsip.so.6.0.0
+%doc ChangeLog LICENSE NEWS README doc/*
+%attr(755,root,root) %{_bindir}/*
+
+%files -n python-sip
+%defattr(644,root,root,755)
+%attr(755,root,root) %{py_sitedir}/sip.so
+%dir %{_sipfilesdir}
+
+%files -n python-sip-devel
+%defattr(644,root,root,755)
+%{py_sitedir}/sip*.py
+%{py_incdir}/*.h
This page took 0.06912 seconds and 4 git commands to generate.