diff options
author | Fedora Project <devel@lists.fedoraproject.org> | 2020-09-05 15:13:02 +0100 |
---|---|---|
committer | Fedora Project <devel@lists.fedoraproject.org> | 2020-09-05 15:13:02 +0100 |
commit | 377cded12a718197f0d9e1f552c2da2fca7beff8 (patch) | |
tree | ad698b7af86a52881cc5b136845ca943d7c5de6c | |
parent | 1ec94266ab1b1fa467d362e0fb9d4d3241d9e885 (diff) | |
download | spec-377cded12a718197f0d9e1f552c2da2fca7beff8.tar.gz spec-377cded12a718197f0d9e1f552c2da2fca7beff8.tar.xz spec-377cded12a718197f0d9e1f552c2da2fca7beff8.zip |
Adding present
-rw-r--r-- | present/present/present.spec | 91 | ||||
-rw-r--r-- | present/python-asciimatics/python-asciimatics.spec | 123 | ||||
-rw-r--r-- | present/python-pyfiglet/python-pyfiglet.spec | 57 |
3 files changed, 271 insertions, 0 deletions
diff --git a/present/present/present.spec b/present/present/present.spec new file mode 100644 index 0000000..ecafe6a --- /dev/null +++ b/present/present/present.spec @@ -0,0 +1,91 @@ +%bcond_without doc + +Name: present +Version: 0.5.1 +Release: 1%{?dist} +Summary: A terminal-based presentation tool with colors and effects + +%global forgeurl https://github.com/vinayak-mehta/present +%global tag v%{version} + +%forgemeta + +License: ASL 2.0 +URL: https://present.readthedocs.io/ +Source0: %{forgesource} + +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-asciimatics +BuildRequires: python3-click +BuildRequires: python3-mistune +BuildRequires: python3-pyfiglet +BuildRequires: python3-pyyaml + +Requires: python3-asciimatics +Requires: python3-click +Requires: python3-mistune +Requires: python3-pyfiglet +Requires: python3-pyyaml + +%{?python_disable_dependency_generator} + +%description +A terminal-based presentation tool with colors and effects. + +You can also play a codio (pre-recorded code block) on a slide. + +present is built on asciimatics, and it works with Python>=3.7. + +Check out the gallery[1] to see what everyone is making with present! You can +add your slides by simply opening an issue. + +[1]: https://present.readthedocs.io/en/latest/gallery/index.html + + +%if %{with doc} +%package doc +Summary: Documentation for present + +# Doc Requirements +BuildRequires: python3-sphinx + +%description doc +Additionnal documentation for present. +%endif + + +%prep +%forgeautosetup + + +%build +%py3_build + +%if %{with doc} +cd docs +make html +%endif + +%install +%py3_install + + +%files +%doc README.md HISTORY.md examples +%license LICENSE +%{_bindir}/%{name} +%{python3_sitelib}/%{name} +%{python3_sitelib}/%{name}-%{version}-py%{python3_version}.egg-info + + +%if %{with doc} +%files doc +%doc docs/_build/html +%endif + + +%changelog +* Fri Sep 04 2020 Lyes Saadi <fedora@lyes.eu> - 0.5.1-1 +- Initial package diff --git a/present/python-asciimatics/python-asciimatics.spec b/present/python-asciimatics/python-asciimatics.spec new file mode 100644 index 0000000..cfcfaa0 --- /dev/null +++ b/present/python-asciimatics/python-asciimatics.spec @@ -0,0 +1,123 @@ +# Tests fail +%bcond_with tests +%bcond_without doc + +%global pypi_name asciimatics + +Name: python-%{pypi_name} +Version: 1.11.0 +Release: 1%{?dist} +Summary: A cross-platform package to replace curses and create ASCII animations + +License: ASL 2.0 +URL: https://github.com/peterbrittain/asciimatics +Source0: %{pypi_source} +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3dist(future) +BuildRequires: python3dist(mock) +BuildRequires: python3dist(nose) +BuildRequires: python3dist(pillow) +BuildRequires: python3dist(pyfiglet) +BuildRequires: python3dist(setuptools) +BuildRequires: python3dist(setuptools-scm) +BuildRequires: python3dist(wcwidth) + +%global _description %{expand: +Asciimatics is a package to help people create full-screen text UIs (from +interactive forms to ASCII animations) on any platform. It is licensed under the +Apache Software Foundation License 2.0. + +Why? +---- + +Why not? It brings a little joy to anyone who was programming in the 80s... Oh +and it provides a single cross-platform Python class to do all the low-level +console function you could ask for, including: + +- Coloured/styled text - including 256 colour terminals and unicode characters + (even CJK languages) +- Cursor positioning +- Keyboard input (without blocking or echoing) including unicode support +- Mouse input (terminal permitting) +- Detecting and handling when the console resizes +- Screen scraping + +In addition, it provides some simple, high-level APIs to provide more complex +features including: + +- Anti-aliased ASCII line-drawing +- Image to ASCII conversion - including JPEG and GIF formats +- Many animation effects - e.g. sprites, particle systems, banners, etc. +- Various widgets for text UIs - e.g. buttons, text boxes, radio buttons, etc.} + +%description %{_description} + +%package -n python3-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} + +Requires: python3dist(future) +Requires: python3dist(pillow) +Requires: python3dist(pyfiglet) +Requires: python3dist(wcwidth) + +%description -n python3-%{pypi_name} %{_description} + +%if %{with doc} +%package doc +Summary: Documentation for asciimatics + +BuildRequires: git +BuildRequires: python3dist(sphinx) + +%description doc +Additionnal documentation for asciimatics. +%endif + +%prep +%autosetup -n %{pypi_name}-%{version} +# Remove bundled egg-info +rm -rf %{pypi_name}.egg-info + +%build +%py3_build + +%if %{with doc} +git init +git config --global user.email "devel@lists.fedoraproject.org" +git config --global user.name "Fedora Project" +git add . +git commit -m "%{version}" +git tag %{version} +cd doc +./build.sh +mv build html +cd .. +rm -rf .git +%endif + +%install +%py3_install + +%if %{with tests} +%check +%{__python3} setup.py test +%endif + +%files -n python3-%{pypi_name} +%license LICENSE +%doc README.rst +%{python3_sitelib}/%{pypi_name} +%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info + +%if %{with doc} +%files doc +%doc doc/html +%doc doc/source +%endif + +%changelog +* Fri Sep 04 2020 Lyes Saadi <fedora@lyes.eu> - 1.11.0-1 +- Initial package diff --git a/present/python-pyfiglet/python-pyfiglet.spec b/present/python-pyfiglet/python-pyfiglet.spec new file mode 100644 index 0000000..24388d0 --- /dev/null +++ b/present/python-pyfiglet/python-pyfiglet.spec @@ -0,0 +1,57 @@ +%global pypi_name pyfiglet + +Name: python-%{pypi_name} +Version: 0.8.post1 +Release: 1%{?dist} +Summary: Pure-python FIGlet implementation + +License: MIT +URL: https://github.com/pwaller/pyfiglet +Source0: %{pypi_source} +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3dist(setuptools) + +%global _description %{expand: +pyfiglet is a full port of FIGlet (http://www.figlet.org/) into pure python. It +takes ASCII text and renders it in ASCII art fonts (like the title above, which +is the 'block' font).} + +%description %{_description} + +%package -n python3-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} + +Requires: python3dist(setuptools) + +%description -n python3-%{pypi_name} %{_description} + +%prep +%autosetup -n %{pypi_name}-%{version} +# Remove bundled egg-info +rm -rf %{pypi_name}.egg-info + +%build +%py3_build + +%install +%py3_install + +# Resolve RPMLint errors +sed -i '1d' %{buildroot}%{python3_sitelib}/%{pypi_name}/{__init__,test}.py + +install -Dpm 0644 -t %{buildroot}%{_mandir}/man1/ doc/%{pypi_name}.1 + +%files -n python3-%{pypi_name} +%doc README doc/figfont.txt +%license LICENSE +%{_bindir}/%{pypi_name} +%{_mandir}/man1/%{pypi_name}.1.* +%{python3_sitelib}/%{pypi_name} +%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info + +%changelog +* Fri Sep 04 2020 Lyes Saadi <fedora@lyes.eu> - 0.8.post1-1 +- Initial package |