remove duplicated spec file

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sip?expand=0&rev=67
This commit is contained in:
Stephan Kulow 2013-06-24 09:04:11 +00:00 committed by Git OBS Bridge
parent 3a929d70ef
commit cc1800a5b9
2 changed files with 0 additions and 220 deletions

View File

@ -1,105 +0,0 @@
-------------------------------------------------------------------
Thu Mar 7 02:57:09 UTC 2013 - mlin@suse.com
- Update to 4.14.4
* bugfix release
* include a potential incompatibility in the use of the %VirtualErrorHandler directive.
-------------------------------------------------------------------
Sun Dec 9 13:44:20 UTC 2012 - lbeltrame@kde.org
- Update to 4.14.2:
- Added sip.setdestroyonexit().
- sip.voidptr() will now accept any object that implements the buffer
protocol.
-------------------------------------------------------------------
Thu Nov 22 14:18:55 UTC 2012 - toddrme2178@gmail.com
- Removed openSUSE 11.4 spec file workarounds
-------------------------------------------------------------------
Mon Oct 29 09:55:09 UTC 2012 - dmueller@suse.com
- update to 4.14.1:
- SIP_PYBUFFER can now be used to define objects that implement the Python
buffer protocol.
- Added /Capsule/ typedef annotation.
- Added the 'z' format character to sipBuildResult().
- Added the 'z', '!' and '$' format characters to sipParseResult().
- The C prototype foo(void) is now accepted.
- sipdistutils.py will now include swig_opts if no sip_opts have been
defined.
- Bug fixes.
-------------------------------------------------------------------
Mon Oct 1 05:43:35 UTC 2012 - einar@heavensinferno.net
- Update to the latest upstream version:
- The internal API version is increased to 9.0 requiring the regeneration
of all modules.
- Added the %InstanceCode directive.
- Added the %VirtualErrorHandler directive.
- Added the default_VirtualErrorHandler argument to the %Module directive.
- Added the VirtualErrorHandler class annotation.
- Added the NoVirtualErrorHandler and VirtualErrorHandler function
annotations.
- The AllowNone and NoRelease mapped type annotations can now be used
with mapped type templates.
- SIP_PLATFORM_* and SIP_TIMELINE_* preprocessor symbols are generated
corresponding to the -t arguments passed on the command line.
- Deprecated sipTransferBreak().
- For Python v2.x unsigned short and unsigned char (when used as a byte)
are now converted to int, rather than long, objects.
- Added support for MSVC 2010 to the build system.
-------------------------------------------------------------------
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
- Link against libpython. Fixes bnc#756282 and bnc#721280.
- license update: GPL-2.0 or GPL-3.0 or SUSE-SIP
Use SUSE- proprietary extension until SIP license is accepted upstream at
spdx.org
- Remove SUSE_ASNEEDED=0 from spec file.
-------------------------------------------------------------------
Mon Nov 21 10:33:26 UTC 2011 - cgiboudeaux@gmx.com
- Define python3_sitearch (fixes the <12.1 build)
- Spec cleanup
-------------------------------------------------------------------
Wed Oct 26 20:19:38 UTC 2011 - Sascha.Manns@open-slx.de
- Update to 4.13
- last stable release
-------------------------------------------------------------------
Mon Aug 29 18:41:49 UTC 2011 - termim@gmail.com
- Add python-sip-bin package to avoid conflicts between python2
and python3 versions
-------------------------------------------------------------------
Tue Aug 16 00:07:23 UTC 2011 - termim@gmail.com
- Update to 4.12.4
- A bug fix release.
- Adapted python-sip.spec for python3

View File

@ -1,115 +0,0 @@
#
# spec file for package python3-sip
#
# Copyright (c) 2013 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/
#
%global py3_incdir %(python3 -c "import distutils.sysconfig; print(distutils.sysconfig.get_python_inc(True))" 2>/dev/null || echo PYTHON-NOT-FOUND)
%define rversion %{version}
%define python_sip_api 9.2
Name: python3-sip
Version: 4.14.6
Release: 0
Summary: SIP tool to use python sip bindings
License: GPL-2.0 or GPL-3.0 or SUSE-SIP
Group: Development/Libraries/Python
Url: http://www.riverbankcomputing.com/software/sip/intro
Source0: http://downloads.sourceforge.net/project/pyqt/sip/sip-%{rversion}/sip-%{rversion}.tar.gz
# PATCH-FIX-OPENSUSE disable-rpaths.diff -- Disable rpaths
Patch0: disable-rpaths.diff
# PATCH-FIX-OPENSUSE build-compare.diff cmorve69@yahoo.es -- Fix build-compare
Patch1: build-compare.diff
BuildRequires: c++_compiler
BuildRequires: python3-devel
Provides: python3-sip(api) = %python_sip_api
Requires(pre): python3
Requires(pre): python3-base
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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
Summary: SIP tool to create python bindings
Group: Development/Libraries/Python
Requires: %{name} = %{version}
Requires: c++_compiler
Requires: python-sip-bin
Requires: python3-devel
Provides: python3-sip:/usr/bin/sip
%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
%patch1
%build
export CFLAGS="%{optflags}"
export CXXFLAGS="%{optflags}"
# Link against libpython (fixes bnc#756282 and bnc#721280)
python3 configure.py --debug CFLAGS+="%{optflags}" CXXFLAGS+="%{optflags}" LIBS+="-lpython%{py3_ver}%{py3_abiflags}"
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}
mkdir -p %{buildroot}%{_datadir}/sip
# Point to the correct location for the documentation files
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
%{python3_sitearch}/sip.so
%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
%{_datadir}/sip/
%changelog