commit powerline for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package powerline for openSUSE:Factory checked in at 2021-11-01 18:35:46 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/powerline (Old) and /work/SRC/openSUSE:Factory/.powerline.new.1890 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "powerline" Mon Nov 1 18:35:46 2021 rev:10 rq:928531 version:2.8.2 Changes: -------- --- /work/SRC/openSUSE:Factory/powerline/powerline.changes 2021-03-16 15:46:23.933228193 +0100 +++ /work/SRC/openSUSE:Factory/.powerline.new.1890/powerline.changes 2021-11-01 18:36:05.157348601 +0100 @@ -1,0 +2,7 @@ +Sun Oct 31 17:15:26 UTC 2021 - Benjamin Greiner <code@bnavigator.de> + +- Keep ipython binding files in python sitelib -- fixes boo#1187199 +- Remove shebang in __main__.py +- Deduplicate docs + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ powerline.spec ++++++ --- /var/tmp/diff_new_pack.zC38X4/_old 2021-11-01 18:36:05.645348880 +0100 +++ /var/tmp/diff_new_pack.zC38X4/_new 2021-11-01 18:36:05.649348882 +0100 @@ -108,16 +108,20 @@ %prep %autosetup -p1 +# remove shebang in file not meant to be directly called +sed -i -e '1{/^#!/ d}' powerline/bindings/pdb/__main__.py # Change shebang in all relevant files in this directory and all subdirectories find -type f -exec sed -i '1s=^#!%{_bindir}/\(python\|env python\)[23]\?=#!%{_bindir}/python3=' {} + +sed -i -e "/DEFAULT_SYSTEM_CONFIG_DIR/ s@None@'%{_sysconfdir}/xdg'@" powerline/config.py +sed -i -e "/TMUX_CONFIG_DIRECTORY/ s@BINDINGS_DIRECTORY@'%{_prefix}/share'@" powerline/config.py + %build +export CFLAGS="%{optflags}" +%python3_build %install -sed -i -e "/DEFAULT_SYSTEM_CONFIG_DIR/ s@None@'%{_sysconfdir}/xdg'@" powerline/config.py -sed -i -e "/TMUX_CONFIG_DIRECTORY/ s@BINDINGS_DIRECTORY@'%{_prefix}/share'@" powerline/config.py -CFLAGS="%{optflags}" \ -python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} --optimize=1 +%python3_install # build docs pushd docs @@ -129,6 +133,10 @@ make man popd +# Install and deduplicate +mkdir -p %{buildroot}%{_docdir}/%{name}-docs +cp -a docs/_build/html %{buildroot}%{_docdir}/%{name}-docs/ +%fdupes %{buildroot}%{_docdir}/%{name}-docs/ # config install -d -m0755 %{buildroot}/%{_sysconfdir}/xdg/%{name} @@ -169,8 +177,8 @@ # ipython install -d -m0755 %{buildroot}/%{_datadir}/%{name}/ipython -mv %{buildroot}/%{powerline_python_sitelib}/powerline/bindings/ipython/post_0_11.py %{buildroot}/%{_datadir}/%{name}/ipython -mv %{buildroot}/%{powerline_python_sitelib}/powerline/bindings/ipython/pre_0_11.py %{buildroot}/%{_datadir}/%{name}/ipython +ln -rs %{buildroot}/%{powerline_python_sitelib}/powerline/bindings/ipython/post_0_11.py %{buildroot}/%{_datadir}/%{name}/ipython +ln -rs %{buildroot}/%{powerline_python_sitelib}/powerline/bindings/ipython/pre_0_11.py %{buildroot}/%{_datadir}/%{name}/ipython # qtile install -d -m0755 %{buildroot}/%{_datadir}/%{name}/qtile @@ -269,7 +277,8 @@ %{_datadir}/%{name}/tcsh/powerline.tcsh %dir %{_datadir}/%{name}/zsh %{_datadir}/%{name}/zsh/powerline.zsh -%{powerline_python_sitelib}/* +%{powerline_python_sitelib}/powerline +%{powerline_python_sitelib}/powerline_status-%{version}*-info %files fonts %license LICENSE @@ -280,7 +289,7 @@ %{_datadir}/fonts/truetype/PowerlineSymbols.otf %files docs -%doc docs/_build/html +%{_docdir}/%{name}-docs %files -n vim-plugin-powerline %license LICENSE
participants (1)
-
Source-Sync