This repository has been archived by the owner on Jun 21, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsignalslot.spec
68 lines (45 loc) · 1.62 KB
/
signalslot.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
%global _basename signalslot
Name: python2-%{_basename}
Version: 0.1.1
Release: 1
Summary: Simple Signal/Slot implementation
Group: Applications/Multimedia
License: MIT
URL: https://github.com/numergy/signalslot
Source0: %{_basename}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python2-contexter
BuildRequires: python2-devel
BuildRequires: python2-eventlet
BuildRequires: python2-mock
BuildRequires: python2-pytest
BuildRequires: python-pytest-cov
BuildRequires: python-pytest-pep8
BuildRequires: python-six
BuildRequires: python2-weakrefmethod
Requires: python2-contexter
Requires: python-six
Requires: python2-weakrefmethod
%description
This package provides a simple and stupid implementation of the Signal/Slot pattern for Python.
Wikipedia has a nice introduction:
> Signals and slots is a language construct introduced in Qt for communication between objects
> which makes it easy to implement the Observer pattern while avoiding boilerplate code.
Rationale against Signal/Slot is detailed in the “Pattern” section of the documentation.
%prep
%autosetup -n %{_basename}-%{version}
%build
%py2_build
%check
PYTHONPATH=%{buildroot}%{python2_sitelib} py.test build
%install
%py2_install
%files
%doc README.rst
%{python2_sitelib}/%{_basename}/
%{python2_sitelib}/%{_basename}-%{version}-py2.7.egg-info/
%changelog
* Sun Jan 29 2017 Christopher Antila <christopher.antila@ncodamusic.org> - 0.1.1-2
- Test suite works.
* Sun Jan 29 2017 Christopher Antila <christopher.antila@ncodamusic.org> - 0.1.1-1
- Initial packaging.