]> git.pld-linux.org Git - packages/sip.git/blame - sip.spec
- converted to UTF-8
[packages/sip.git] / sip.spec
CommitLineData
10d245fe 1# TODO: Check if really v 4.5 is python 2.5 compatible, if so,
e2147388 2# kill python2.5.patch
4d6e5f32 3Summary: Python bindings generator for C++ class libraries
dd6dda9e 4Summary(pl.UTF-8): Generator powiązań Pythona z bibliotekami klas C++
183bd075 5Name: sip
a2ac45ce 6Version: 4.5.2
e2147388 7Release: 1
39232d42 8Epoch: 2
e0a3fafb 9License: redistributable (see LICENSE)
183bd075 10Group: Development/Languages/Python
ba9c55ee 11Source0: http://www.riverbankcomputing.com/Downloads/sip4/sip-%{version}.tar.gz
a2ac45ce 12# Source0-md5: 0fdb0cbdcbbe158009196437711eb8bd
0696c57f 13URL: http://www.riverbankcomputing.co.uk/sip/index.php
10d245fe 14# Patch0: %{name}-python2.5.patch
ba9c55ee 15BuildRequires: libstdc++-devel
bfdf8b01 16BuildRequires: python-devel >= 2.3
bfdf8b01 17BuildRequires: rpm-pythonprov
ba9c55ee 18BuildRequires: rpmbuild(macros) >= 1.167
ac08bdef 19BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
183bd075 20
7f2259e9
JB
21%define _sipfilesdir %{_datadir}/sip
22
183bd075 23%description
24Generates Python bindings for C++ class libraries from a set of class
7143dd0b 25specification files.
183bd075 26
dd6dda9e
JR
27%description -l pl.UTF-8
28Generuje powiązania Pythona z bibliotekami klas C++ ze zbioru plików
7143dd0b
KK
29ze specyfikacjami klas.
30
7143dd0b
KK
31%package -n python-sip
32Summary: Python module needed by generated bindings
dd6dda9e 33Summary(pl.UTF-8): Moduł Pythona wymagany przez wygenerowane powiązania
7143dd0b
KK
34Group: Libraries/Python
35%pyrequires_eq python-libs
36
37%description -n python-sip
38Generates Python bindings for C++ class libraries from a set of class
39specification files. This package includes runtime library needed by
40all generated bindings.
41
dd6dda9e
JR
42%description -n python-sip -l pl.UTF-8
43Generuje powiązania Pythona z bibliotekami klas C++ ze zbioru plików
44ze specyfikacjami klas. Ten pakiet zawiera bibliotekę potrzebną do
45uruchomienia wszystkich wygenerowanych powiązań.
183bd075 46
9e00b3d2
KK
47%package -n python-sip-devel
48Summary: Development files needed to build bindings
dd6dda9e 49Summary(pl.UTF-8): Pliki programistyczne potrzebne do budowania powiązań
9e00b3d2
KK
50Group: Development/Libraries
51Requires: %{name} = %{epoch}:%{version}-%{release}
52Requires: python-devel >= 2.3
53%pyrequires_eq python-libs
54
55%description -n python-sip-devel
56Development files needed to build bindings for C++ classes.
57
dd6dda9e
JR
58%description -n python-sip-devel -l pl.UTF-8
59Pliki programistyczne potrzebne do budowania powiązań z klasami C++.
9e00b3d2 60
183bd075 61%prep
7143dd0b 62%setup -q
10d245fe 63#%%patch0 -p1
183bd075 64
65%build
f7707c80
JB
66# configure.py notes:
67# - macros overrides must be last
68# - cannot pass CXXFLAGS+="%{rpmcflags}" or so - builtin -O2 overrides rpmcflags
21ced613 69python configure.py \
f7707c80 70 -b %{_bindir} \
21ced613 71 -e %{py_incdir} \
8df445fb 72 -v %{_sipfilesdir} \
db24e112 73 -d %{py_sitedir} \
dd4053c2 74 CC="%{__cc}" \
f7707c80 75 CXX="%{__cxx}" \
8df445fb
KK
76 CFLAGS="%{rpmcflags}" \
77 CXXFLAGS="%{rpmcxxflags}" \
78 LINK="%{__cxx}" \
79 LINK_SHLIB="%{__cxx}"
80
81%{__make}
183bd075 82
83%install
21ced613 84rm -rf $RPM_BUILD_ROOT
21ced613 85install -d $RPM_BUILD_ROOT%{_sipfilesdir}
183bd075 86
15e0c203
JB
87%{__make} install \
88 DESTDIR=$RPM_BUILD_ROOT
89
183bd075 90%clean
91rm -rf $RPM_BUILD_ROOT
92
93%files
94%defattr(644,root,root,755)
bfdf8b01 95%doc ChangeLog LICENSE NEWS THANKS doc/*
0696c57f 96%attr(755,root,root) %{_bindir}/*
7143dd0b 97
9e00b3d2
KK
98%files -n python-sip
99%defattr(644,root,root,755)
100%attr(755,root,root) %{py_sitedir}/sip.so
101
102%files -n python-sip-devel
7143dd0b 103%defattr(644,root,root,755)
ac55a606 104%{py_sitedir}/sip*.py
ac08bdef 105%{py_incdir}/*.h
7f2259e9 106%dir %{_sipfilesdir}
This page took 0.188292 seconds and 4 git commands to generate.