Blame python-simpleline.spec

af3a4e
%global srcname simpleline
af3a4e
af3a4e
Name: python-%{srcname}
af3a4e
Summary: A Python library for creating text UI
af3a4e
Url: https://github.com/rhinstaller/python-%{srcname}
30d3ac
Version: 1.7
5ba4f8
Release: 2%{?dist}
af3a4e
# This tarball was created from upstream git:
af3a4e
#   git clone https://github.com/rhinstaller/python-simpleline
af3a4e
#   cd python-simpleline && make archive
30d3ac
Source0: https://github.com/rhinstaller/python-%{srcname}/releases/download/%{srcname}-%{version}/%{srcname}-%{version}.tar.gz
af3a4e
30d3ac
License: LGPLv3+
af3a4e
BuildArch: noarch
af3a4e
BuildRequires: python3-devel
af3a4e
BuildRequires: gettext
af3a4e
BuildRequires: python3-setuptools
af3a4e
BuildRequires: intltool
5691b9
BuildRequires: python3-gobject-base
af3a4e
af3a4e
%description
af3a4e
Simpleline is a Python library for creating text UI.
af3a4e
It is designed to be used with line-based machines
af3a4e
and tools (e.g. serial console) so that every new line
af3a4e
is appended to the bottom of the screen.
af3a4e
Printed lines are never rewritten!
af3a4e
af3a4e
af3a4e
%package -n python3-%{srcname}
af3a4e
Summary: A Python3 library for creating text UI
af3a4e
Requires: rpm-python3
af3a4e
af3a4e
%{?python_provide:%python_provide python3-%{srcname}}
af3a4e
af3a4e
%description -n python3-%{srcname}
af3a4e
Simpleline is a Python3 library for creating text UI.
af3a4e
It is designed to be used with line-based machines
af3a4e
and tools (e.g. serial console) so that every new line
af3a4e
is appended to the bottom of the screen.
af3a4e
Printed lines are never rewritten!
af3a4e
af3a4e
%prep
af3a4e
%setup -q -n %{srcname}-%{version}
af3a4e
af3a4e
%build
af3a4e
%make_build
af3a4e
af3a4e
%install
af3a4e
make DESTDIR=%{buildroot} install
af3a4e
%find_lang python-%{srcname}
af3a4e
af3a4e
%check
af3a4e
make test
af3a4e
af3a4e
af3a4e
%files -n python3-%{srcname} -f python-%{srcname}.lang
30d3ac
%license LICENSE.md
af3a4e
%doc ChangeLog README.md
af3a4e
%{python3_sitelib}/*
af3a4e
af3a4e
%changelog
5ba4f8
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.7-2
5ba4f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
5ba4f8
30d3ac
* Fri Jun 26 2020 Jiri Konecny <jkonecny@redhat.com> - 1.7-1
30d3ac
- new upstream release: 1.7
30d3ac
533e39
* Sun May 24 2020 Miro Hrončok <mhroncok@redhat.com> - 1.6-4
533e39
- Rebuilt for Python 3.9
533e39
4c64af
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.6-3
4c64af
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
4c64af
79ea25
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.6-2
79ea25
- Rebuilt for Python 3.8.0rc1 (#1748018)
79ea25
0bcfe4
* Thu Aug 22 2019 Jiri Konecny <jkonecny@redhat.com> - 1.6-1
0bcfe4
- Always close the password dialog (vponcova)
0bcfe4
- Remove unnecessary pass statements (jkonecny)
0bcfe4
297748
* Sat Aug 17 2019 Miro Hrončok <mhroncok@redhat.com> - 1.5-3
297748
- Rebuilt for Python 3.8
297748
571896
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-2
571896
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
571896
d5fb57
* Mon May 13 2019 Jiri Konecny <jkonecny@redhat.com> - 1.5-1
d5fb57
- Update spec file from the downstream (jkonecny)
d5fb57
- Fix translation issue for lt language (jkonecny)
d5fb57
14f502
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-2
14f502
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
14f502
cba817
* Mon Nov 19 2018 Jiri Konecny <jkonecny@redhat.com> - 1.4-1
cba817
- Fix and add tests for the new changes (#1646568) (jkonecny)
cba817
- Add should_run_with_empty_stack configuration (#1646568) (jkonecny)
cba817
- Remove wrong line in password_function conf (jkonecny)
cba817
- Tweak date lang settings in make bumpver command (jkonecny)
cba817
- Drop python-pocketlint build dependency (jkonecny)
cba817
- Update spec file from Fedora (jkonecny)
cba817
9b0e4d
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-5
9b0e4d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
9b0e4d
e399f8
* Mon Jul 02 2018 Miro Hrončok <mhroncok@redhat.com> - 1.3-4
e399f8
- Rebuilt for Python 3.7
e399f8
39d963
* Wed Jun 20 2018 Jiri Konecny <jkonecny@redhat.com> - 1.3-3
39d963
- Drop python-pocketlint dependency
39d963
efe0c7
* Mon Jun 18 2018 Miro Hrončok <mhroncok@redhat.com> - 1.3-2
efe0c7
- Rebuilt for Python 3.7
efe0c7
e71954
* Mon Jun 11 2018 Jiri Konecny <jkonecny@redhat.com> - 1.3-1
e71954
- Fix pylint errors raised by new pylint version (jkonecny)
e71954
- Setup logging handler properly for a library (jkonecny)
e71954
03fbfa
* Tue May 29 2018 Jiri Konecny <jkonecny@redhat.com> - 1.2-1
03fbfa
- Document GlobalConfiguration class (jkonecny)
03fbfa
- Add advanced input processing section to docs (jkonecny)
03fbfa
- Make makefile zanata check more robust (jkonecny)
03fbfa
- Add missing newline characters at the end (jkonecny)
03fbfa
- Abstract widget buffer extensions (jkonecny)
03fbfa
- Use python 3 sphinx module (jkonecny)
03fbfa
c6d970
* Tue Apr 10 2018 Jiri Konecny <jkonecny@redhat.com> - 1.1-1
c6d970
- Add global configuration initialize test (jkonecny)
c6d970
- Use default password function from GlobalConfiguration (jkonecny)
c6d970
- Add tests for GlobalConfiguration class (jkonecny)
c6d970
- Move default width to GlobalConfiguration class (jkonecny)
c6d970
- Add GlobalConfiguration object (jkonecny)
c6d970
- Fix a missing article in docs. (jkonecny)
c6d970
- Add tests for UIScreen get_user_input method (jkonecny)
c6d970
- Only InputManager is used to get input in UIScreen (jkonecny)
c6d970
- Move emit of InputReadySignal to InputRequest (jkonecny)
c6d970
- Get only last input on concurrent input (jkonecny)
c6d970
- Add concurrency tests for InputHandler (jkonecny)
c6d970
- Add requester source to the InputHandler (#1557472) (jkonecny)
c6d970
- Use InputManager as screen helper not in ScreenScheduler (#1557472) (jkonecny)
c6d970
- Add test to check InputThreadManager after initialization (jkonecny)
c6d970
- Reinitialize InputThreadManager when app is initialized (jkonecny)
c6d970
- Input requests are now handled by InputThreadManager (jkonecny)
c6d970
- Remove io_manager property from ScreenScheduler (jkonecny)
c6d970
- Rename io_manager to input_manager (jkonecny)
c6d970
- Change IOManager to InputManager (jkonecny)
c6d970
- Move draw from IOManager to ScreenScheduler (jkonecny)
c6d970
- Separate password input to PasswordInputHandler (jkonecny)
c6d970
- Add DEFAULT_WIDTH constant (jkonecny)
c6d970
- Add tests for InputHandler (jkonecny)
c6d970
- Replace get_input_without_check by new property (jkonecny)
c6d970
- Separate input to a new module (jkonecny)
c6d970
ffbc98
* Wed Feb 28 2018 Jiri Konecny <jkonecny@redhat.com> - 1.0-1
ffbc98
- Fix docs based on the new PROCESSED feature (jkonecny)
ffbc98
- Use new PROCESS_AND* in examples (jkonecny)
ffbc98
- Add tests for PROCESSED_AND_{CLOSE|REDRAW} (jkonecny)
ffbc98
- Use new PROCESSED_AND_{CLOSE|REDRAW} in advanced widgets (jkonecny)
ffbc98
- Support PROCESSED_AND_CLOSE UserInputState (jkonecny)
ffbc98
- Rename UserInputResult to UserInputAction (jkonecny)
ffbc98
- Support PROCESSED_AND_REDRAW (jkonecny)
ffbc98
- Fix link to the documentation in README (jkonecny)
ffbc98
- Add link to the documentation (jkonecny)
ffbc98
- Write documentation for Simpleline (jkonecny)
ffbc98
- Disable pylint error for doc copyright variable (jkonecny)
ffbc98
- Add new example used in the documentation (jkonecny)
ffbc98
- Mock modules for readthedocs (jkonecny)
ffbc98
- Do a small fixes to improve documentation (jkonecny)
ffbc98
- Get version from the spec file (jkonecny)
ffbc98
- Add documentation skeleton (jkonecny)
ffbc98
693b36
* Thu Oct 19 2017 Jiri Konecny <jkonecny@redhat.com> - 0.8-1
693b36
- Test clean-up (jkonecny)
693b36
- Move and rename force_quit loop (jkonecny)
693b36
- Add dump screen stack method (jkonecny)
693b36
3d69ee
* Tue Oct 17 2017 Jiri Konecny <jkonecny@redhat.com> - 0.7-1
3d69ee
- Fix crash when container callback is not set (jkonecny)
3d69ee
- Add EntryWidget to show item title and value (jkonecny)
3d69ee
- Add GetPasswordInputScreen for getting passwords (jkonecny)
3d69ee
- UIScreen can have hidden input (jkonecny)
3d69ee
- Move getpass func inside locks (jkonecny)
3d69ee
- Implement GetInputScreen (jkonecny)
3d69ee
- Do not print new line with empty container (jkonecny)
3d69ee
- Add no_separator to UIScreen (jkonecny)
3d69ee
- Fix HelpScreen title (jkonecny)
3d69ee
- Remove original classes from GLib tests (jkonecny)
3d69ee
- Fix test case name (jkonecny)
3d69ee
- Move tests to subfolder (jkonecny)
3d69ee
- Move base widgets as second example (jkonecny)
3d69ee
- Add example with basic widgets usage (jkonecny)
3d69ee
- Improve README.md (jkonecny)
3d69ee
- Improve example starting script (jkonecny)
3d69ee
- Add glib loop example (jkonecny)
3d69ee
- Add prefixes to examples to impress difficulty (jkonecny)
3d69ee
- Add comments to the examples (jkonecny)
3d69ee
- Update examples to use new features (jkonecny)
3d69ee
5691b9
* Fri Sep 08 2017 Jiri Konecny <jkonecny@redhat.com> - 0.6-1
5691b9
- Implement the force quit all loops feature (jkonecny)
5691b9
- Improved GLib event loop testing (jkonecny)
5691b9
- Handle GLib event loop exceptions better (jkonecny)
5691b9
- Support for GLib event loop (jkonecny)
5691b9
- Wrap exceptions from handlers as ExceptionSignal (jkonecny)
5691b9
- Only highest priority events are processed in one iteration (jkonecny)
5691b9
- Move parts from MainLoop to AbstractEventLoop (jkonecny)
5691b9
- MainLoop won't wait in busy loop anymore (jkonecny)
5691b9
- Don't block loop when waiting on user input (jkonecny)
5691b9
- Fix user input lock (jkonecny)
5691b9
a57c62
* Mon Sep 04 2017 Jiri Konecny <jkonecny@redhat.com> - 0.5-1
a57c62
- Fix exception in Screen input caused infinite loop (jkonecny)
a57c62
- Add test if app is initialized (jkonecny)
a57c62
- Redraw on first scheduled screen (#1487326) (jkonecny)
a57c62
- Redraw after YesNoDialog modal window close (jkonecny)
a57c62
43fbd0
* Fri Aug 18 2017 Jiri Konecny <jkonecny@redhat.com> - 0.4-1
43fbd0
- Screen scheduling is moved to ScreenHandler (jkonecny)
43fbd0
- Remove merge commits from changelog (jkonecny)
43fbd0
c70e49
* Thu Aug 17 2017 Jiri Konecny <jkonecny@redhat.com> - 0.3-1
c70e49
- Remove merge commits from changelog (jkonecny)
c70e49
- Fix bad input processing for list containers (jkonecny)
c70e49
- Rename quit callback and add args there. (jkonecny)
c70e49
- Add tests for new container feature (jkonecny)
c70e49
- List containers take max width if not specified (jkonecny)
c70e49
- Remove leftover print in containers parsing input (jkonecny)
c70e49
b2214b
* Mon Aug 14 2017 Jiri Konecny <jkonecny@redhat.com> - 0.2-1
b2214b
- Merge pull request #26 from jkonecny12/master-fix-ExitMainLoop-exception (jkonecny)
b2214b
- Merge pull request #28 from jkonecny12/master-fix-container-callback (jkonecny)
b2214b
- Fix docs for container callbacks (jkonecny)
b2214b
- Merge pull request #25 from jkonecny12/master-fix-big-screen-printing (jkonecny)
b2214b
- Remove missed test helper for local testing (jkonecny)
b2214b
- The ExitMainLoop exception should kill whole app (jkonecny)
b2214b
- Do not run an old event queue from modal screen (jkonecny)
b2214b
- Merge pull request #23 from jkonecny12/master-add-possibility-to-end-loop-politely (jkonecny)
b2214b
- Merge pull request #24 from jkonecny12/master-fix-compatibility (jkonecny)
b2214b
- Add possibility to end loop politely (jkonecny)
b2214b
- Merge pull request #22 from jkonecny12/master-add-logging (jkonecny)
b2214b
- Fix printing issues for bigger screens (jkonecny)
b2214b
- Set default screen height to 30 (jkonecny)
b2214b
- Keep backward compatibility for UIScreen args (jkonecny)
b2214b
- Add logging to the Simpleline (jkonecny)
b2214b
- Merge pull request #19 from jkonecny12/master-rework-wait-on-input (jkonecny)
b2214b
- Merge pull request #21 from jkonecny12/master-fix-adv-widgets (jkonecny)
b2214b
- Merge pull request #20 from jkonecny12/master-move-InputState (jkonecny)
b2214b
- Wait on input thread to finish (jkonecny)
b2214b
- return_after don't skip signals in recursion (jkonecny)
b2214b
- Add TicketMachine helper class (jkonecny)
b2214b
- Return user input in the signal handler (jkonecny)
b2214b
- Merge pull request #16 from jkonecny12/master-modify-exception-handling (jkonecny)
b2214b
- Merge pull request #18 from jkonecny12/master-ignore-pylint-with-lock (jkonecny)
b2214b
- Reflect changes in adv_widgets (jkonecny)
b2214b
- Move InputState next to UIScreen (jkonecny)
b2214b
- Break App's cyclic imports (jkonecny)
b2214b
- Add temporal pylint-disable for with Lock (jkonecny)
b2214b
- Re-raise exception only if no handler is registered (jkonecny)
b2214b
- Merge pull request #15 from jkonecny12/master-thread-safe-eventqueue (jkonecny)
b2214b
- Merge pull request #11 from jkonecny12/master-add-args-to-scheduler-shortcut (jkonecny)
b2214b
- Make the EventQueue thread safe (jkonecny)
b2214b
- Merge pull request #13 from jkonecny12/master-enhance-WindowContainer-add (jkonecny)
b2214b
- Merge pull request #12 from jkonecny12/master-fix-ready-collision (jkonecny)
b2214b
- Add args param to the scheduler_handler shortcuts (jkonecny)
b2214b
- Fix bad param name for scheduling methods (jkonecny)
b2214b
- Merge pull request #10 from jkonecny12/master-add-hidden-user-input (jkonecny)
b2214b
- Merge pull request #8 from jkonecny12/master-remove-base-file (jkonecny)
b2214b
- Merge pull request #9 from jkonecny12/master-remove-quit-message (jkonecny)
b2214b
- Add method add_with_separator to WindowContainer (jkonecny)
b2214b
- Fix `ready` property collision with Anaconda (jkonecny)
b2214b
- Add hidden parameter to UIScreen get input (jkonecny)
b2214b
- Remove unused quit message (jkonecny)
b2214b
- Move App from base to __init__.py (jkonecny)
b2214b
- Merge pull request #6 from jkonecny12/fix-make-potfile-generation (jkonecny)
b2214b
- Merge pull request #7 from jkonecny12/master-fix-make-archive (jkonecny)
b2214b
- Fix make archive (jkonecny)
b2214b
- Fix potfile generation (jkonecny)
b2214b
- Merge pull request #5 from jkonecny12/master-add-containers (jkonecny)
b2214b
- Examples now using WindowContainer (jkonecny)
b2214b
- Fix error when getting input directly (jkonecny)
b2214b
- Add WindowContainer and use it in UIScreen (jkonecny)
b2214b
- Add SeparatorWidget (jkonecny)
b2214b
- Add input processing to containers (jkonecny)
b2214b
- Add containers numbering (jkonecny)
b2214b
- Add containers, checkbox and center widget tests (jkonecny)
b2214b
- Add row and column list containers (jkonecny)
b2214b
- Merge pull request #4 from jkonecny12/master-split-renderer (jkonecny)
b2214b
- Fix setup.py modules (jkonecny)
b2214b
- Change INPUT_PROCESSED and INPUT_DISCARDED to Enum (jkonecny)
b2214b
- Rename renderer and event_loop in App class (jkonecny)
b2214b
- Add scheduler_handler and rename switch_screen (jkonecny)
b2214b
- Process signals when waiting on user input (jkonecny)
b2214b
- Move draw screen to the InOutManager (jkonecny)
b2214b
- Change UIScreen properties (jkonecny)
b2214b
- Move input processing to the InOutManager class (jkonecny)
b2214b
- Move SignalHandler to the screen module (jkonecny)
b2214b
- Move ui_screen to the screen module (jkonecny)
b2214b
- Rename Renderer to ScreenScheduler (jkonecny)
b2214b
- Merge pull request #3 from jkonecny12/master-change-close-to-signal (jkonecny)
b2214b
- Change separator tests to reflect close as signal (jkonecny)
b2214b
- Close screen is now signal (jkonecny)
b2214b
- Rename emit_draw_signal to redraw (jkonecny)
b2214b
- Merge pull request #2 from jkonecny12/master-fix-modal (jkonecny)
b2214b
- Add missing doc for EventQueue and ScreeStack (jkonecny)
b2214b
- Add tests for event queue (jkonecny)
b2214b
- Modal screens are now executing new event loop (jkonecny)
b2214b
- Separator should be printed just before show_all() (jkonecny)
b2214b
- Move screen scheduling tests to new file (jkonecny)
b2214b
- Merge pull request #1 from jkonecny12/master-refactorization (jkonecny)
b2214b
- Implement small fixes and tweaks (jkonecny)
b2214b
- Move ScreenStack to render module (jkonecny)
b2214b
- Add SimplelineError as base class for Exceptions (jkonecny)
b2214b
- Clean up unused code and do a small tweaks (jkonecny)
b2214b
- Fix pylint errors (jkonecny)
b2214b
- Modify examples to reflect new changes (jkonecny)
b2214b
- Add emit_draw_signal to the SignalHandler (jkonecny)
b2214b
- Do not call draw when prompt is not present (jkonecny)
b2214b
- Remove old INPUT_* constants (jkonecny)
b2214b
- Do not redraw when input was processed (jkonecny)
b2214b
- Add license to all test classes (jkonecny)
b2214b
- Add new tests for render_screen, renderer, widgets (jkonecny)
b2214b
- Remove hubQ (jkonecny)
b2214b
- Split input from drawing (jkonecny)
b2214b
- Fix rendering errors by removing _redraw variable (jkonecny)
b2214b
- Replace array with priority by Signal ordering (jkonecny)
b2214b
- Add tests for SignalHandler (jkonecny)
b2214b
- Use SignalHandler (jkonecny)
b2214b
- Add screen rendering tests (jkonecny)
b2214b
- Raise exceptions instead of silently quitting (jkonecny)
b2214b
- Reflect code changes in tests (jkonecny)
b2214b
- Fix missing super().__init__() in Signals (jkonecny)
b2214b
- Fix modal screen by removing execute_new_loop (jkonecny)
b2214b
- Fail when UIScreen is not closing itself (jkonecny)
b2214b
- Add constants INPUT_PROCESSED and INPUT_DISCARDED (jkonecny)
b2214b
- Fix issues in Renderer and MainLoop (jkonecny)
b2214b
- Use RenderScreenSignal signal for rendering (jkonecny)
b2214b
- Add App.run as a shortcut to start application (jkonecny)
b2214b
- Move widgets and adv_widgets to render module (jkonecny)
b2214b
- Fix cosmetic bugs in widgets (jkonecny)
b2214b
- Move prompt to render module (jkonecny)
b2214b
- Modify ScreenStack tests to reflect UIScreen changes (jkonecny)
b2214b
- Modify UIScreen to use new App class structure (jkonecny)
b2214b
- Fix renderer tests after moving the Renderer class (jkonecny)
b2214b
- Move renderer to separate file renderer.py (jkonecny)
b2214b
- Add quit_callback to the event loop abstract class (jkonecny)
b2214b
- Add tests for the App class (jkonecny)
b2214b
- Change base class to singleton like class (jkonecny)
b2214b
- Add tests for event loop processing (jkonecny)
b2214b
- Implementation of defualt event loop and signals (jkonecny)
b2214b
- Add abstract base classes for EventLoop and Event (jkonecny)
b2214b
- Remove ScheduleScreen tests (jkonecny)
b2214b
- Add tests for renderer (jkonecny)
b2214b
- Extract renderer from App class to render directory (jkonecny)
b2214b
- Add tests for new ScreenStack and ScreenData (jkonecny)
b2214b
- Extract screen stack to its own object and data class (jkonecny)
b2214b
- Modify comments in the spec file (jkonecny)
b2214b
- Package is named python-simpleline (jkonecny)
b2214b
- Fix spec file (jkonecny)
b2214b
- Fix summary in the spec file (jkonecny)
b2214b
- Fix names according to tagging (jkonecny)
b2214b
af3a4e
* Fri May 5 2017 Jiri Konecny <jkonecny@redhat.com> - 0.1-3
af3a4e
- Modify comments in the spec file
af3a4e
af3a4e
* Thu May 4 2017 Jiri Konecny <jkonecny@redhat.com> - 0.1-2
af3a4e
- Drop clean section
af3a4e
- Drop Group, it is not needed
af3a4e
- Use make_build macro
af3a4e
- Reorder check and install sections
af3a4e
- Rename package to python-simpleline but rpm will be python3-simpleline
af3a4e
af3a4e
* Fri Dec 16 2016 Jiri Konecny <jkonecny@redhat.com> - 0.1-1
af3a4e
- Initial package