Репозиторий Sisyphus
Последнее обновление: 20 октября 2018 | Пакетов: 18632 | Посещений: 12398644
en ru br
Репозитории ALT

Группа :: Разработка/Python
Пакет: python-module-yolk

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

# REMOVE ME (I was set for NMU) and uncomment real Release tags:
Release: alt3.1.1
%define module_name yolk

%def_with python3

Name: python-module-%module_name
Version: 0.4.3
#Release: alt3.1
Group: Development/Python
License: BSD License
Summary: Yolk is a Python tool for obtaining information about installed Python packages
URL: https://github.com/cakebread/yolk.git
Source: %name-%version.tar

BuildRequires: python-module-setuptools
%if_with python3
BuildRequires(pre): rpm-build-python3
BuildPreReq: python3-devel python3-module-setuptools
BuildPreReq: python-tools-2to3
%endif

%description
Yolk is a Python tool for obtaining information about installed Python packages
and querying packages avilable on PyPI (Python Package Index).

You can see which packages are active, non-active or in development mode
and show you which have newer versions available by querying PyPI.

%package -n python3-module-%module_name
Summary: Yolk is a Python tool for obtaining information about installed Python packages
Group: Development/Python3

%description -n python3-module-%module_name
Yolk is a Python tool for obtaining information about installed Python packages
and querying packages avilable on PyPI (Python Package Index).

You can see which packages are active, non-active or in development mode
and show you which have newer versions available by querying PyPI.

%prep
%setup

%if_with python3
cp -fR . ../python3
find ../python3 -type f -name '*.py' -exec 2to3 -w -n '{}' +
sed -i 's|urllib2|urllib.request|g' ../python3/yolk/pypi.py
%endif

%build
%python_build

%if_with python3
pushd ../python3
%python3_build
popd
%endif

%install
%if_with python3
pushd ../python3
%python3_install
popd
pushd %buildroot%_bindir
for i in $(ls); do
mv $i $i.py3
done
popd
%endif

%python_install

%if "%_target_libdir_noarch" != "%_libdir"
mv %buildroot%_target_libdir_noarch %buildroot%_libdir
%endif

%files
%doc AUTHORS COPYING FAQ README.rst THANKS ChangeLog CREDITS NEWS README TODO
%_bindir/*
%if_with python3
%exclude %_bindir/*.py3
%endif
%python_sitelibdir/yolk*

%if_with python3
%files -n python3-module-%module_name
%doc AUTHORS COPYING FAQ README.rst THANKS ChangeLog CREDITS NEWS README TODO
%_bindir/*.py3
%python3_sitelibdir/yolk*
%endif

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin