/[packages]/cauldron/python-sip/current/SPECS/python-sip.spec
ViewVC logotype

Annotation of /cauldron/python-sip/current/SPECS/python-sip.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 132474 - (hide annotations) (download)
Wed Aug 10 16:14:44 2011 UTC (12 years, 8 months ago) by fwang
File size: 1795 byte(s)
new version 4.12.4
1 ahmad 77429 # extracted from sip.h, SIP_API_MAJOR_NR SIP_API_MINOR_NR defines
2     %define _sip_api_major 8
3     %define _sip_api_minor 1
4     %define _sip_api %{_sip_api_major}.%{_sip_api_minor}
5    
6 dmorgan 16408 Name: python-sip
7     Summary: Riverbanks's python sip
8 fwang 132474 Version: 4.12.4
9 fwang 108617 Release: %mkrel 1
10 dmorgan 16408 Epoch: 1
11     Group: Development/Python
12     URL: http://www.riverbankcomputing.co.uk/software/sip/intro
13     Source0: http://www.riverbankcomputing.com/static/Downloads/sip4/sip-%version.tar.gz
14     License: GPLv2+
15     BuildRequires: bzip2-devel
16 ahmad 77222 BuildRequires: python-devel
17 ahmad 77429 Provides: sip-api(%{_sip_api_major}) = %{_sip_api}
18    
19 dmorgan 16408 Obsoletes: sip < %version
20     Obsoletes: sip-devel < %version
21    
22     %description
23     SIP is a tool that makes it very easy to create Python bindings for C and C++ libraries. It was
24     originally developed to create PyQt, the Python bindings for the Qt toolkit, but can be used to
25     create bindings for any C or C++ library.
26    
27     %files
28     %defattr(-,root,root)
29 ahmad 77429 %{_sysconfdir}/rpm/macros.d/sip.macros
30 dmorgan 16408 %_bindir/sip
31     %py_platsitedir/s*
32     %py_incdir/sip.h
33    
34     #------------------------------------------------------------
35    
36     %prep
37     %setup -q -n sip-%version
38    
39     %build
40    
41     # Don't use X11R6 prefix for includes neither libraries by default.
42     for file in specs/linux-*; do
43     perl -p -i -e "s@/X11R6/@/@g" $file
44     done
45    
46     %{__python} configure.py
47     %define _disable_ld_no_undefined 1
48     %{make} CFLAGS="%{optflags} -fPIC" CXXFLAGS="%{optflags} -fPIC" LIBS="%{?ldflags} -lpython%{py_ver}"
49    
50     %install
51     %{__rm} -rf %{buildroot}
52     %{makeinstall_std}
53    
54 ahmad 77429 mkdir -p %{buildroot}%{_sysconfdir}/rpm/macros.d/
55     cat > %{buildroot}%{_sysconfdir}/rpm/macros.d/sip.macros << EOF
56     # extracted from sip.h, SIP_API_MAJOR_NR SIP_API_MINOR_NR defines
57     %%_sip_api_major %{_sip_api_major}
58     %%_sip_api_minor %{_sip_api_minor}
59     %%_sip_api %{_sip_api_major}.%{_sip_api_minor}
60     EOF
61    
62 dmorgan 16408 %clean
63     %{__rm} -rf %{buildroot}

  ViewVC Help
Powered by ViewVC 1.1.30