3 %bcond_without python2 # CPython 2.x modules
4 %bcond_without python3 # CPython 3.x modules
6 Summary: Miscellaneous convenience, extension and workaround code for Python 2
7 Summary(pl.UTF-8): Kod różnych udogodnień, rozszerzeń i obejść dla Pythona 2
12 Group: Development/Languages/Python
13 Source0: https://fedorahosted.org/released/python-slip/%{name}-%{version}.tar.bz2
14 # Source0-md5: fb3299d75af1a67ca6679d96ce839da6
15 URL: https://fedorahosted.org/python-slip/
17 BuildRequires: python >= 2
18 BuildRequires: python-devel >= 2
21 BuildRequires: python3 >= 3.2
22 BuildRequires: python3-modules >= 3.2
24 BuildRequires: rpmbuild(macros) >= 1.710
25 Requires: python-selinux
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 The Simple Library for Python packages contain miscellaneous code for
32 convenience, extension and workaround purposes.
34 This package provides the "slip" and the "slip.util" modules for
37 %description -l pl.UTF-8
38 Pakiety Simple Library for Python (prostej biblioteki dla Pythona)
39 zawierają kod różnych udogodnień, rozszerzeń i obejść.
41 Ten pakiet dostarcza moduły "slip" oraz "slip.util" dla Pythona 2.
44 Summary: Convenience Python 2 functions for dbus services
45 Summary(pl.UTF-8): Wygodne funkcje Pythona 2 dla usług dbus
47 Requires: %{name} = %{version}-%{release}
48 Requires: python-dbus >= 0.80
49 Requires: python-decorator
50 # pygobject2 or pygobject3 actually (using slip._wrapper._gobject)
51 Requires: python-pygobject >= 2
53 Suggests: polkit >= 0.94
54 Conflicts: PolicyKit < 0.8-3
55 Conflicts: polkit < 0.94
58 The Simple Library for Python packages contain miscellaneous code for
59 convenience, extension and workaround purposes.
61 This package provides slip.dbus.service.Object, which is a
62 dbus.service.Object derivative that ends itself after a certain time
63 without being used and/or if there are no clients anymore on the
64 message bus, as well as convenience functions and decorators for
65 integrating a dbus service with PolicyKit.
67 %description dbus -l pl.UTF-8
68 Pakiety Simple Library for Python (prostej biblioteki dla Pythona)
69 zawierają kod różnych udogodnień, rozszerzeń i obejść.
71 Ten pakiet dostarcza slip.dbus.service.Object, będący pochodną
72 dbus.service.Object kończącą się po określonym czasie bezużyteczności
73 i/lub kiedy nie ma już klientów magistrali komunikatów, a także
74 wygodne funkcje i dekoratory służące integracji usług dbus z systemem
78 Summary: Code to make auto-wrapping GTK+ labels
79 Summary(pl.UTF-8): Kod do tworzenia automatycznie zawijanych etykiet GTK+
81 Requires: %{name} = %{version}-%{release}
82 Requires: python-pygtk-gtk >= 2:2
85 The Simple Library for Python packages contain miscellaneous code for
86 convenience, extension and workaround purposes.
88 This package provides slip.gtk.set_autowrap(), a convenience function
89 which lets GTK+ labels be automatically re-wrapped upon resizing.
91 %description gtk -l pl.UTF-8
92 Pakiety Simple Library for Python (prostej biblioteki dla Pythona)
93 zawierają kod różnych udogodnień, rozszerzeń i obejść.
95 Ten pakiet dostarcza slip.gtk.set_autowrap() - wygodną funkcję
96 pozwalającą na automatyczne zawijanie etykiet GTK+ przy zmianie
99 %package -n python3-slip
100 Summary: Miscellaneous convenience, extension and workaround code for Python 3
101 Summary(pl.UTF-8): Kod różnych udogodnień, rozszerzeń i obejść dla Pythona 3
102 Group: Development/Languages/Python
103 Requires: python3-modules >= 3.2
105 %description -n python3-slip
106 The Simple Library for Python packages contain miscellaneous code for
107 convenience, extension and workaround purposes.
109 This package provides the "slip" and the "slip.util" modules for
112 %description -n python3-slip -l pl.UTF-8
113 Pakiety Simple Library for Python (prostej biblioteki dla Pythona)
114 zawierają kod różnych udogodnień, rozszerzeń i obejść.
116 Ten pakiet dostarcza moduły "slip" oraz "slip.util" dla Pythona 3.
118 %package -n python3-slip-dbus
119 Summary: Convenience Python 3 functions for dbus services
120 Summary(pl.UTF-8): Wygodne funkcje Pythona 3 dla usług dbus
122 Requires: python3-dbus >= 0.80
123 Requires: python3-decorator
124 Requires: python3-pygobject3 >= 3
125 Requires: python3-six
126 Requires: python3-slip = %{version}-%{release}
127 Suggests: polkit >= 0.94
128 Conflicts: PolicyKit < 0.8-3
129 Conflicts: polkit < 0.94
131 %description -n python3-slip-dbus
132 The Simple Library for Python packages contain miscellaneous code for
133 convenience, extension and workaround purposes.
135 This package provides slip.dbus.service.Object, which is a
136 dbus.service.Object derivative that ends itself after a certain time
137 without being used and/or if there are no clients anymore on the
138 message bus, as well as convenience functions and decorators for
139 integrating a dbus service with PolicyKit.
141 %description -n python3-slip-dbus -l pl.UTF-8
142 Pakiety Simple Library for Python (prostej biblioteki dla Pythona)
143 zawierają kod różnych udogodnień, rozszerzeń i obejść.
145 Ten pakiet dostarcza slip.dbus.service.Object, będący pochodną
146 dbus.service.Object kończącą się po określonym czasie bezużyteczności
147 i/lub kiedy nie ma już klientów magistrali komunikatów, a także
148 wygodne funkcje i dekoratory służące integracji usług dbus z systemem
155 %{__make} $(pwd)/setup.py
166 rm -rf $RPM_BUILD_ROOT
178 install -d $RPM_BUILD_ROOT%{_examplesdir}
179 cp -pr doc/dbus/example $RPM_BUILD_ROOT%{_examplesdir}/%{name}-dbus-%{version}
182 rm -rf $RPM_BUILD_ROOT
186 %defattr(644,root,root,755)
188 %dir %{py_sitescriptdir}/slip
189 %{py_sitescriptdir}/slip/__init__.py[co]
190 %{py_sitescriptdir}/slip/_wrappers
191 %{py_sitescriptdir}/slip/util
192 %{py_sitescriptdir}/slip-%{version}-py*.egg-info
195 %defattr(644,root,root,755)
197 %{py_sitescriptdir}/slip/dbus
198 %{py_sitescriptdir}/slip.dbus-%{version}-py*.egg-info
199 %{_examplesdir}/%{name}-dbus-%{version}
202 %defattr(644,root,root,755)
203 %{py_sitescriptdir}/slip/gtk
204 %{py_sitescriptdir}/slip.gtk-%{version}-py*.egg-info
208 %files -n python3-slip
209 %defattr(644,root,root,755)
211 %dir %{py3_sitescriptdir}/slip
212 %{py3_sitescriptdir}/slip/__init__.py
213 %{py3_sitescriptdir}/slip/__pycache__
214 %{py3_sitescriptdir}/slip/_wrappers
215 %{py3_sitescriptdir}/slip/util
216 %{py3_sitescriptdir}/slip-%{version}-py*.egg-info
218 %files -n python3-slip-dbus
219 %defattr(644,root,root,755)
221 %{py3_sitescriptdir}/slip/dbus
222 %{py3_sitescriptdir}/slip.dbus-%{version}-py*.egg-info