Group :: Development/Python3
RPM: python3-module-Naked
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%define oname Naked
%def_disable check
Name: python3-module-%oname
Version: 0.1.31
Release: alt2
Epoch: 1
Summary: A command line application framework
License: MIT
Group: Development/Python3
Url: https://pypi.python.org/pypi/Naked/
# https://github.com/chrissimpkins/naked.git
Source: %name-%version.tar
Patch1: %oname-%version-alt-build.patch
# due commands in bindir
Conflicts: python-module-Naked
BuildRequires(pre): rpm-build-intro >= 2.2.4
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-devel
BuildRequires: python3-module-Cython python3-module-nose python3-module-yaml
%py3_use requests
%py3_use yaml
%description
Naked is a new Python command line application framework that is in
development. The current release is a stable, testing release.
%prep
%setup
%patch1 -p1
%build
export LC_ALL=en_US.UTF-8
%add_optflags -fno-strict-aliasing
%python3_build_debug
pushd lib/%oname/toolshed/c
rm -f *.c
sed 's|cython|cython3|' cythonize.sh
./cythonize.sh
%python3_build_debug
popd
%install
export LC_ALL=en_US.UTF-8
%python3_install
%python3_prune
%if "%_libexecdir" != "%_libdir"
mv %buildroot%_libexecdir %buildroot%_libdir
%endif
install -m644 lib/%oname/toolshed/c/build/lib*/*.so \
%buildroot%python3_sitelibdir/%oname/toolshed/c/
rm -f %buildroot%python3_sitelibdir/%oname/toolshed/c/*.sh \
%buildroot%python3_sitelibdir/%oname/toolshed/c/*.c \
%buildroot%python3_sitelibdir/%oname/toolshed/c/*.pyx \
%buildroot%python3_sitelibdir/%oname/toolshed/c/setup.py \
%buildroot%python3_sitelibdir/%oname/toolshed/c/__pycache__/setup.*
%check
export LC_ALL=en_US.UTF-8
export PATH=$PATH:%buildroot%_bindir
python3 setup.py test
export PYTHONPATH=%buildroot%python3_sitelibdir
pushd tests
sed -i 's|nosetests|nosetests3|' test.sh
./test.sh all
popd
%files
%doc *.md docs/*
%_bindir/naked
%python3_sitelibdir/*
%changelog
…
Todas as alterações você pod ver aqui
%def_disable check
Name: python3-module-%oname
Version: 0.1.31
Release: alt2
Epoch: 1
Summary: A command line application framework
License: MIT
Group: Development/Python3
Url: https://pypi.python.org/pypi/Naked/
# https://github.com/chrissimpkins/naked.git
Source: %name-%version.tar
Patch1: %oname-%version-alt-build.patch
# due commands in bindir
Conflicts: python-module-Naked
BuildRequires(pre): rpm-build-intro >= 2.2.4
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-devel
BuildRequires: python3-module-Cython python3-module-nose python3-module-yaml
%py3_use requests
%py3_use yaml
%description
Naked is a new Python command line application framework that is in
development. The current release is a stable, testing release.
%prep
%setup
%patch1 -p1
%build
export LC_ALL=en_US.UTF-8
%add_optflags -fno-strict-aliasing
%python3_build_debug
pushd lib/%oname/toolshed/c
rm -f *.c
sed 's|cython|cython3|' cythonize.sh
./cythonize.sh
%python3_build_debug
popd
%install
export LC_ALL=en_US.UTF-8
%python3_install
%python3_prune
%if "%_libexecdir" != "%_libdir"
mv %buildroot%_libexecdir %buildroot%_libdir
%endif
install -m644 lib/%oname/toolshed/c/build/lib*/*.so \
%buildroot%python3_sitelibdir/%oname/toolshed/c/
rm -f %buildroot%python3_sitelibdir/%oname/toolshed/c/*.sh \
%buildroot%python3_sitelibdir/%oname/toolshed/c/*.c \
%buildroot%python3_sitelibdir/%oname/toolshed/c/*.pyx \
%buildroot%python3_sitelibdir/%oname/toolshed/c/setup.py \
%buildroot%python3_sitelibdir/%oname/toolshed/c/__pycache__/setup.*
%check
export LC_ALL=en_US.UTF-8
export PATH=$PATH:%buildroot%_bindir
python3 setup.py test
export PYTHONPATH=%buildroot%python3_sitelibdir
pushd tests
sed -i 's|nosetests|nosetests3|' test.sh
./test.sh all
popd
%files
%doc *.md docs/*
%_bindir/naked
%python3_sitelibdir/*
%changelog
…
Todas as alterações você pod ver aqui