The powerline_shell rpm is now working
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
Name: powerline_shell
|
Name: powerline_shell
|
||||||
Version: 0.7.0
|
Version: 0.7.0
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: A beautiful and useful prompt generator for Bash, ZSH, Fish, and tcsh
|
Summary: A beautiful and useful prompt generator for Bash, ZSH, Fish, and tcsh
|
||||||
|
|
||||||
License: MIT
|
License: MIT
|
||||||
@@ -16,6 +16,7 @@ Requires: python%{pyvers} powerline bash
|
|||||||
Requires: python%{pyvers}-GitPython
|
Requires: python%{pyvers}-GitPython
|
||||||
Requires: python%{pyvers}-configargparse
|
Requires: python%{pyvers}-configargparse
|
||||||
Requires: python%{pyvers}-catkin_pkg
|
Requires: python%{pyvers}-catkin_pkg
|
||||||
|
Requires: python%{pyvers}-argparse
|
||||||
|
|
||||||
%description
|
%description
|
||||||
A beautiful and useful prompt generator for Bash, ZSH, Fish, and tcsh:
|
A beautiful and useful prompt generator for Bash, ZSH, Fish, and tcsh:
|
||||||
@@ -56,6 +57,9 @@ The generated prompts are designed to resemble powerline, but otherwise this pro
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Feb 3 2019 Daniel Steiner <daniel.steiner@daniel-steiner.org>
|
||||||
|
- Dependency added for pythonX-argparse rpm.
|
||||||
|
|
||||||
* Sat Feb 2 2019 Daniel Steiner <daniel.steiner@daniel-steiner.org>
|
* Sat Feb 2 2019 Daniel Steiner <daniel.steiner@daniel-steiner.org>
|
||||||
- First build.
|
- First build.
|
||||||
|
|
||||||
|
|||||||
59
fedora/SPECS/python2-argparse.spec
Normal file
59
fedora/SPECS/python2-argparse.spec
Normal file
@@ -0,0 +1,59 @@
|
|||||||
|
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||||
|
|
||||||
|
%global oname argparse
|
||||||
|
|
||||||
|
Summary: Optparse inspired command line parser for Python
|
||||||
|
Name: python2-argparse
|
||||||
|
Version: 1.4.0
|
||||||
|
Release: 1%{?dist}
|
||||||
|
License: Python
|
||||||
|
Group: Development/Languages
|
||||||
|
URL: http://code.google.com/p/argparse/
|
||||||
|
Source0: http://argparse.googlecode.com/files/argparse-%{version}.tar.gz
|
||||||
|
BuildRequires: python2-setuptools
|
||||||
|
BuildRequires: dos2unix
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description
|
||||||
|
|
||||||
|
The argparse module is an optparse-inspired command line parser that
|
||||||
|
improves on optparse by:
|
||||||
|
* handling both optional and positional arguments
|
||||||
|
* supporting parsers that dispatch to sub-parsers
|
||||||
|
* producing more informative usage messages
|
||||||
|
* supporting actions that consume any number of command-line args
|
||||||
|
* allowing types and actions to be specified with simple callables
|
||||||
|
instead of hacking class attributes like STORE_ACTIONS or CHECK_METHODS
|
||||||
|
|
||||||
|
as well as including a number of other more minor improvements on the
|
||||||
|
optparse API.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n %{oname}-%{version}
|
||||||
|
dos2unix -k README.txt NEWS.txt
|
||||||
|
%{__rm} -rf doc/source
|
||||||
|
|
||||||
|
%build
|
||||||
|
%{__python2} setup.py build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%{__rm} -rf %{buildroot}
|
||||||
|
%{__python2} setup.py install --skip-build --root %{buildroot}
|
||||||
|
|
||||||
|
%check
|
||||||
|
pushd test
|
||||||
|
PYTHONPATH=../ %{__python} test_%{oname}.py
|
||||||
|
|
||||||
|
%clean
|
||||||
|
[ "%{buildroot}" != "/" ] && [ -d "%{buildroot}" ] && rm -rf %{buildroot}
|
||||||
|
[ "%{_builddir}" != "/" ] && [ -d "%{_builddir}" ] && rm -rf %{_builddir}/*
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-, root, root, -)
|
||||||
|
%doc README.txt LICENSE.txt NEWS.txt doc/*
|
||||||
|
%{python2_sitelib}/*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Sun Feb 3 2019 Daniel Steiner <daniel.steiner@daniel-steiner.org>
|
||||||
|
- First build, it's required by powerline_shell package.
|
||||||
|
|
||||||
59
fedora/SPECS/python3-argparse.spec
Normal file
59
fedora/SPECS/python3-argparse.spec
Normal file
@@ -0,0 +1,59 @@
|
|||||||
|
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||||
|
|
||||||
|
%global oname argparse
|
||||||
|
|
||||||
|
Summary: Optparse inspired command line parser for Python
|
||||||
|
Name: python-argparse
|
||||||
|
Version: 1.4.0
|
||||||
|
Release: 1%{?dist}
|
||||||
|
License: Python
|
||||||
|
Group: Development/Languages
|
||||||
|
URL: http://code.google.com/p/argparse/
|
||||||
|
Source0: http://argparse.googlecode.com/files/argparse-%{version}.tar.gz
|
||||||
|
BuildRequires: python3-setuptools
|
||||||
|
BuildRequires: dos2unix
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description
|
||||||
|
|
||||||
|
The argparse module is an optparse-inspired command line parser that
|
||||||
|
improves on optparse by:
|
||||||
|
* handling both optional and positional arguments
|
||||||
|
* supporting parsers that dispatch to sub-parsers
|
||||||
|
* producing more informative usage messages
|
||||||
|
* supporting actions that consume any number of command-line args
|
||||||
|
* allowing types and actions to be specified with simple callables
|
||||||
|
instead of hacking class attributes like STORE_ACTIONS or CHECK_METHODS
|
||||||
|
|
||||||
|
as well as including a number of other more minor improvements on the
|
||||||
|
optparse API.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n %{oname}-%{version}
|
||||||
|
dos2unix -k README.txt NEWS.txt
|
||||||
|
%{__rm} -rf doc/source
|
||||||
|
|
||||||
|
%build
|
||||||
|
%{__python3} setup.py build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%{__rm} -rf %{buildroot}
|
||||||
|
%{__python3} setup.py install --skip-build --root %{buildroot}
|
||||||
|
|
||||||
|
%check
|
||||||
|
pushd test
|
||||||
|
PYTHONPATH=../ %{__python} test_%{oname}.py
|
||||||
|
|
||||||
|
%clean
|
||||||
|
[ "%{buildroot}" != "/" ] && [ -d "%{buildroot}" ] && rm -rf %{buildroot}
|
||||||
|
[ "%{_builddir}" != "/" ] && [ -d "%{_builddir}" ] && rm -rf %{_builddir}/*
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-, root, root, -)
|
||||||
|
%doc README.txt LICENSE.txt NEWS.txt doc/*
|
||||||
|
%{python3_sitelib}/*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Sun Feb 3 2019 Daniel Steiner <daniel.steiner@daniel-steiner.org>
|
||||||
|
- First build, it's required by powerline_shell package.
|
||||||
|
|
||||||
Reference in New Issue
Block a user