Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37752449
en ru br
ALT Linux repositórios
S:4.19.19-alt8

Group :: Development/Python3
RPM: python3-module-sip

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%define oname sip
%define pkg_version %(echo %version | sed 's/\\./,/g')

Name: python3-module-%oname
Version: 4.19.19
Release: alt7

Summary: Python bindings generator for C++ class libraries

License: PSF
Group: Development/Python3
URL: http://www.riverbankcomputing.com/software/sip/

# hg clone http://www.riverbankcomputing.com/hg/sip

#Source-url: https://pypi.io/packages/source/s/%oname/%oname-%version.tar.gz
#Source-url: https://prdownloads.sourceforge.net/pyqt/sip/sip-%version/sip-%version.tar.gz
# Source-url: https://www.riverbankcomputing.com/static/Downloads/sip/%version/sip-%version.tar.gz
Source: %oname-%version.tar

%py3_provides %oname

BuildRequires(pre): rpm-build-python3 python3-devel
BuildRequires: flex gcc-c++

%description
Generates Python bindings for C++ class libraries from a set of class
specification files.  Also includes a Python extension module needed by all
generated bindings.

%package -n python3-module-%oname-devel
Requires: python3-module-%oname = %version-%release
Summary: Header files for sip (Python 3)
Group: Development/Python3
Requires: python3-devel

%description -n python3-module-%oname-devel
Header files for sip (Python 3).

%prep
%setup -n %oname-%version

%build
python3 configure.py --debug -d %python3_sitelibdir
sed -i \
's|^\(CPPFLAGS.*\)|\1 -g -I%__python3_includedir|' \
*/Makefile
sed -i \
's|lpython%__python3_version|l:%(basename %__libpython3)|' \
siplib/Makefile
%make_build

%install
%makeinstall_std

mv %buildroot%_bindir/sip %buildroot%_bindir/sip3
sed -i 's|%_datadir/sip|%_datadir/sip3|' \
%buildroot%python3_sitelibdir/sipconfig.py
sed -i 's|%_bindir/sip|%_bindir/sip3|' \
%buildroot%python3_sitelibdir/sipconfig.py

%files
%doc README NEWS
%_bindir/sip3
%python3_sitelibdir/*
%exclude %python3_sitelibdir/*.pyi
%exclude %python3_sitelibdir/sipconfig.*
%exclude %python3_sitelibdir/sipdistutils.*

%files -n python3-module-%oname-devel
# Here, we just use the same path as in the build system:
%__python3_includedir/*
%python3_sitelibdir/*.pyi
%python3_sitelibdir/sipconfig.*
%python3_sitelibdir/sipdistutils.*
#doc doc/*

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009