forked from pool/python-py2pack
- update to 0.8.0:
* Ignore the required python version for now * Add build condition for tests in opensuse template * Install setup_requires as BuildRequires during build * Update opensuse template for singlespec approach * Remove useless '(' and ')' replacements from opensuse template * travis: Update credential to deploy on pypi - Remove manpage for now. Build is broken. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-py2pack?expand=0&rev=59
This commit is contained in:
committed by
Git OBS Bridge
parent
a95f0479a9
commit
f2b4634e0b
@@ -17,7 +17,7 @@
|
||||
|
||||
|
||||
Name: python-py2pack
|
||||
Version: 0.7.0
|
||||
Version: 0.8.0
|
||||
Release: 0
|
||||
Url: http://github.com/saschpe/py2pack
|
||||
Summary: Generate distribution packages from Python packages on PyPI
|
||||
@@ -28,6 +28,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: python-Jinja2
|
||||
BuildRequires: python-Sphinx
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-metaextract
|
||||
BuildRequires: python-pbr
|
||||
BuildRequires: python-six
|
||||
BuildRequires: python-sphinxcontrib-programoutput
|
||||
@@ -57,11 +58,6 @@ rm -rf doc/build/html/.{doctrees,buildinfo}
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
|
||||
install -d %{buildroot}%{_mandir}/man1
|
||||
|
||||
mv doc/build/man/py2pack.1 %{buildroot}%{_mandir}/man1/py2pack-%{py_ver}.1
|
||||
ln -s -f %{_sysconfdir}/alternatives/py2pack.1.gz %{buildroot}%{_mandir}/man1/py2pack.1.gz
|
||||
|
||||
# Prepare for update-alternatives usage
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
|
||||
mv %{buildroot}%{_bindir}/py2pack %{buildroot}%{_bindir}/py2pack-%{py_ver}
|
||||
@@ -73,8 +69,7 @@ touch %{buildroot}%{_sysconfdir}/alternatives/py2pack.1.gz
|
||||
|
||||
%post
|
||||
%_sbindir/update-alternatives \
|
||||
--install %{_bindir}/py2pack py2pack %{_bindir}/py2pack-%{py_ver} 30 \
|
||||
--slave %{_mandir}/man1/py2pack.1.gz py2pack.1.gz %{_mandir}/man1/py2pack-%{py_ver}.1.gz
|
||||
--install %{_bindir}/py2pack py2pack %{_bindir}/py2pack-%{py_ver} 30
|
||||
|
||||
%postun
|
||||
if [ $1 -eq 0 ] ; then
|
||||
@@ -86,8 +81,6 @@ fi
|
||||
%doc AUTHORS LICENSE README.rst doc/build/html
|
||||
%{_bindir}/py2pack
|
||||
%{_bindir}/py2pack-%{py_ver}
|
||||
%{_mandir}/man1/py2pack.1.gz
|
||||
%{_mandir}/man1/py2pack-%{py_ver}.1.gz
|
||||
%ghost %{_sysconfdir}/alternatives/py2pack
|
||||
%ghost %{_sysconfdir}/alternatives/py2pack.1.gz
|
||||
%{python_sitelib}/py2pack-%{version}-py*.egg-info
|
||||
|
Reference in New Issue
Block a user