Accepting request 127207 from KDE:Qt

- install api version as rpm macro

- Update to version 4.13.3
  * The /NoRaisesPyException/ and /RaisesPyException/ function annotations can
    now be applied to constructors.
  * Added support for the Python v3.3 handling of Unicode.

- install api version as rpm macro

- Update to version 4.13.3
  - The /NoRaisesPyException/ and /RaisesPyException/ function annotations can
    now be applied to constructors.
  - Added support for the Python v3.3 handling of Unicode.

OBS-URL: https://build.opensuse.org/request/show/127207
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sip?expand=0&rev=56
This commit is contained in:
Stephan Kulow
2012-07-09 08:16:46 +00:00
committed by Git OBS Bridge
6 changed files with 60 additions and 5 deletions

View File

@@ -1,3 +1,16 @@
-------------------------------------------------------------------
Thu Jul 5 12:30:23 UTC 2012 - dmueller@suse.com
- install api version as rpm macro
-------------------------------------------------------------------
Fri Jun 22 02:58:35 UTC 2012 - mlin@suse.com
- Update to version 4.13.3
* The /NoRaisesPyException/ and /RaisesPyException/ function annotations can
now be applied to constructors.
* Added support for the Python v3.3 handling of Unicode.
-------------------------------------------------------------------
Tue Apr 10 20:38:21 UTC 2012 - asterios.dramis@gmail.com

View File

@@ -17,9 +17,10 @@
%define rversion %{version}
%define python_sip_api 8.1
Name: python-sip
Version: 4.13.2
Version: 4.13.3
Release: 0
Summary: SIP tool to use python sip bindings
License: GPL-2.0 or GPL-3.0 or SUSE-SIP
@@ -33,6 +34,7 @@ Patch1: build-compare.diff
BuildRequires: c++_compiler
BuildRequires: python
BuildRequires: python-devel
Provides: python-sip(api) = %python_sip_api
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%py_requires
@@ -84,10 +86,21 @@ export CXXFLAGS="%{optflags}"
python configure.py --debug CFLAGS+="%{optflags}" CXXFLAGS+="%{optflags}" LIBS+="-lpython%{py_ver}"
make %{?_smp_mflags}
sip_major=$(grep "define SIP_API_MAJOR_NR" siplib/sip.h.in | awk '{print $3}')
sip_minor=$(grep "define SIP_API_MINOR_NR" siplib/sip.h.in | awk '{print $3}')
if test "%python_sip_api" != "$sip_major.$sip_minor"; then
echo "API version was changed to $sip_major.$sip_minor"
exit 1
fi
echo "%%requires_python_sip_api Requires: python-sip(api) = $sip_major.$sip_minor" > macros.%name
%install
make DESTDIR=%{buildroot} install
mkdir -p %{buildroot}%{_datadir}/sip
install -m 644 -D macros.%name %{buildroot}/%{_sysconfdir}/rpm/macros.%name
# Point to the correct location for the documentation files
sed -i 's/"doc" directory/"doc" directory of package %{name}-devel/' README
@@ -104,6 +117,7 @@ sed -i 's/"doc" directory/"doc" directory of package %{name}-devel/' README
%files devel
%defattr(-,root,root,-)
%doc NEWS LICENSE* doc/
%config %{_sysconfdir}/rpm/macros.%name
%{py_incdir}/sip.h
%{py_sitedir}/sipconfig.py
%{py_sitedir}/sipdistutils.py

View File

@@ -1,3 +1,16 @@
-------------------------------------------------------------------
Thu Jul 5 12:30:36 UTC 2012 - dmueller@suse.com
- install api version as rpm macro
-------------------------------------------------------------------
Fri Jun 22 02:59:36 UTC 2012 - mlin@suse.com
- Update to version 4.13.3
- The /NoRaisesPyException/ and /RaisesPyException/ function annotations can
now be applied to constructors.
- Added support for the Python v3.3 handling of Unicode.
-------------------------------------------------------------------
Wed Apr 11 13:40:14 UTC 2012 - asterios.dramis@gmail.com

View File

@@ -22,9 +22,10 @@
%global py3_abi %(python3-config --abiflags)
%define rversion %{version}
%define python_sip_api 8.1
Name: python3-sip
Version: 4.13.2
Version: 4.13.3
Release: 0
Summary: SIP tool to use python sip bindings
License: GPL-2.0 or GPL-3.0 or SUSE-SIP
@@ -38,6 +39,7 @@ Patch1: build-compare.diff
BuildRequires: c++_compiler
BuildRequires: python3
BuildRequires: python3-devel
Provides: python3-sip(api) = %python_sip_api
Requires(pre): python3
Requires: python3
%if 0%{?suse_version} > 1140
@@ -82,6 +84,16 @@ export CXXFLAGS="%{optflags}"
python3 configure.py --debug CFLAGS+="%{optflags}" CXXFLAGS+="%{optflags}" LIBS+="-lpython%{py3_ver}%{py3_abi}"
make %{?_smp_mflags}
sip_major=$(grep "define SIP_API_MAJOR_NR" siplib/sip.h.in | awk '{print $3}')
sip_minor=$(grep "define SIP_API_MINOR_NR" siplib/sip.h.in | awk '{print $3}')
if test "%python_sip_api" != "$sip_major.$sip_minor"; then
echo "API version was changed to $sip_major.$sip_minor"
exit 1
fi
echo "%%requires_python3_sip_api Requires: python3-sip(api) = $sip_major.$sip_minor" > macros.%name
%install
%{make_install}
@@ -93,6 +105,8 @@ sed -i 's/"doc" directory/"doc" directory of package %{name}-devel/' README
# sip executable is provided by python-sip-bin to avoid conflicts
rm %{buildroot}%{_bindir}/sip
install -m 644 -D macros.%name %{buildroot}/%{_sysconfdir}/rpm/macros.%name
%files
%defattr(-,root,root,-)
%doc README
@@ -101,6 +115,7 @@ rm %{buildroot}%{_bindir}/sip
%files devel
%defattr(-,root,root,-)
%doc NEWS LICENSE* doc/
%config %{_sysconfdir}/rpm/macros.%name
%{py3_incdir}/sip.h
%{python3_sitearch}/sipconfig.py
%{python3_sitearch}/sipdistutils.py

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4bc3f5353c75918e1c8499ec1474e7b3392c30513ea6d7a6334f88b88271eebf
size 733120

3
sip-4.13.3.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ec295f71ef339c5b98db5650865f2c6c1200c4085b7a3f33f284111e1f534ac1
size 734458