- install api version as rpm macro
* 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 - 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/package/show/KDE:Qt/python-sip?expand=0&rev=77
This commit is contained in:
@@ -1,8 +1,15 @@
|
||||
-------------------------------------------------------------------
|
||||
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
|
||||
* Bugfix release
|
||||
* 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
|
||||
|
@@ -17,6 +17,7 @@
|
||||
|
||||
|
||||
%define rversion %{version}
|
||||
%define python_sip_api 8.1
|
||||
|
||||
Name: python-sip
|
||||
Version: 4.13.3
|
||||
@@ -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
|
||||
|
@@ -1,8 +1,15 @@
|
||||
-------------------------------------------------------------------
|
||||
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
|
||||
* Bugfix release
|
||||
- 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
|
||||
|
@@ -22,6 +22,7 @@
|
||||
%global py3_abi %(python3-config --abiflags)
|
||||
|
||||
%define rversion %{version}
|
||||
%define python_sip_api 8.1
|
||||
|
||||
Name: python3-sip
|
||||
Version: 4.13.3
|
||||
@@ -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
|
||||
|
Reference in New Issue
Block a user