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