Dirk Mueller
8736b6e6af
- Implemented the revised directive syntax for %Module. - Deprecated %CModule, use %Module instead. - Added the keyword_arguments argument to %Module to specify the level of support for Python keyword arguments. - Deprecated the -k flag to sip, use the keyword_arguments argument to %Module instead. - Added an automatic pseudo-%Timeline to allow the SIP version number to be used in the %If directive. - Changed the behavior of the /KeywordArgs/ annotation to specify the level of support for Python keyword arguments. - Deprecated the /NoKeywordArgs/ annotation, use /KeywordArgs="All"/ instead. - Added the use_argument_names argument to %Module to provide the real names of arguments to handwritten code. - Module docstrings are now supported. - Added %AutoPyName to automatically provide Python names. - Added %Property to implement Python properties based on C/C++ getters and setters. - Added %Extract to allow arbitrary text to be embedded in specification files and subsequently extracted. - Deprecated %Doc and %ExportedDoc, use %Extract instead. - Added the -X flag to sip to extract text defined with %Extract. - Deprecated the -d flag to sip, use -X instead. - Added /PyInt/ as an argument, function and typedef annotation to force char types to be handled as Python integers rather that single character strings. - Added the L and M format characters to sipBuildResult(), sipCallMethod() and sipParseResult(). - Added sipGetAddress(). OBS-URL: https://build.opensuse.org/package/show/KDE:Qt/python-sip?expand=0&rev=50
106 lines
2.9 KiB
RPMSpec
106 lines
2.9 KiB
RPMSpec
#
|
|
# spec file for package python-sip (Version 4.11.2)
|
|
#
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
# norootforbuild
|
|
|
|
|
|
Name: python-sip
|
|
BuildRequires: c++_compiler python python-devel
|
|
License: GPLv2+
|
|
Group: Development/Libraries/Python
|
|
Summary: SIP tool to use python sip bindings
|
|
Version: 4.12
|
|
Release: 1
|
|
%define rversion %version
|
|
Url: http://www.riverbankcomputing.com/software/sip/intro
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
Source0: sip-%{rversion}.tar.bz2
|
|
Patch0: disable-rpaths.diff
|
|
Patch2: fix-linking.diff
|
|
Patch3: fix-linking25.diff
|
|
Patch4: build-compare.diff
|
|
Patch5: fix-linking26.diff
|
|
%py_requires
|
|
|
|
%description
|
|
SIP is a tool that makes it very easy to create Python bindings for C
|
|
and C++ libraries. It was originally developed to create PyQt, the
|
|
Python bindings for the Qt toolkit, but can be used to create bindings
|
|
for any C or C++ library.
|
|
|
|
%package devel
|
|
License: GPLv2+
|
|
Group: Development/Libraries/Python
|
|
Summary: SIP tool to create python bindings
|
|
Provides: python-sip:/usr/bin/sip
|
|
Requires: %name = %version
|
|
Requires: c++_compiler python-devel
|
|
|
|
%description devel
|
|
SIP is a tool that makes it very easy to create Python bindings for C
|
|
and C++ libraries. It was originally developed to create PyQt, the
|
|
Python bindings for the Qt toolkit, but can be used to create bindings
|
|
for any C or C++ library.
|
|
|
|
This package contains all the developer tools you need to create your
|
|
own sip bindings.
|
|
|
|
%prep
|
|
%setup -q -n sip-%{rversion}
|
|
%patch0
|
|
%if %suse_version >1100
|
|
%if %suse_version <1140
|
|
%patch5
|
|
%else
|
|
%patch2
|
|
%endif
|
|
%else
|
|
%patch3
|
|
%endif
|
|
%patch4
|
|
|
|
%build
|
|
export CFLAGS="$RPM_OPT_FLAGS"
|
|
export CXXFLAGS="$RPM_OPT_FLAGS"
|
|
export SUSE_ASNEEDED=0
|
|
python configure.py --debug CFLAGS+="$RPM_OPT_FLAGS" CXXFLAGS+="$RPM_OPT_FLAGS"
|
|
make %{?jobs:-j %jobs}
|
|
|
|
%install
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
|
mkdir -p $RPM_BUILD_ROOT/usr/share/sip
|
|
sed -i 's/"doc" directory/"doc" directory of package %{name}-devel/' README
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc README
|
|
%{py_sitedir}/sip.so
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%doc NEWS LICENSE doc
|
|
/usr/bin/sip
|
|
%{py_incdir}/sip.h
|
|
%{py_sitedir}/sipconfig.py
|
|
%{py_sitedir}/sipdistutils.py
|
|
/usr/share/sip
|
|
|
|
%changelog
|