Blame SPECS/python-slip.spec

7bd2ce
Name:       python-slip
7bd2ce
Version:    0.6.4
25db28
Release:    13%{?dist}
7bd2ce
Summary:    Convenience, extension and workaround code for Python
7bd2ce
7bd2ce
Group:      System Environment/Libraries
7bd2ce
License:    GPLv2+
7bd2ce
URL:        https://github.com/nphilipp/python-slip
7bd2ce
Source0:    https://github.com/nphilipp/python-slip/releases/download/python-slip-%{version}/python-slip-%{version}.tar.bz2
7bd2ce
BuildArch:  noarch
7bd2ce
25db28
# Make firewalld to not log errors when running commands as root,
25db28
# when polkitd is not present
25db28
# Fixed upstream: https://github.com/nphilipp/python-slip/commit/39787d6773f628119876dd88bb0106e77a65201e
25db28
# Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2076606
25db28
Patch0:     fix-firewalld-logging.patch
25db28
7bd2ce
BuildRequires:  python3
7bd2ce
BuildRequires:  python3-devel
7bd2ce
7bd2ce
%global _description\
7bd2ce
The Simple Library for Python 2 packages contain miscellaneous code for\
7bd2ce
convenience, extension and workaround purposes.\
7bd2ce
\
7bd2ce
This package provides the "slip" and the "slip.util" modules.
7bd2ce
7bd2ce
%description %_description
7bd2ce
7bd2ce
%package -n python3-slip
7bd2ce
Summary:    Convenience, extension and workaround code for Python 3.x
7bd2ce
Group:      System Environment/Libraries
7bd2ce
Requires:   python3-libselinux
7bd2ce
7bd2ce
%description -n python3-slip
7bd2ce
The Simple Library for Python 3.x packages contain miscellaneous code for
7bd2ce
convenience, extension and workaround purposes.
7bd2ce
7bd2ce
This package provides the "slip" and the "slip.util" modules.
7bd2ce
7bd2ce
%package -n python3-slip-dbus
7bd2ce
Summary:    Convenience functions for dbus services in Python 3.x
7bd2ce
Group:      System Environment/Libraries
7bd2ce
Requires:   python3-slip = %{?epoch:%{epoch}:}%{version}-%{release}
7bd2ce
Requires:   python3-dbus >= 0.80
7bd2ce
# Don't require any of pygobject2/3 because slip.dbus works with either one. In
7bd2ce
# theory users of slip.dbus should require one or the other anyway to use the
7bd2ce
# main loop.
7bd2ce
#
7bd2ce
# No hard requirement on polkit to allow minimal installs without polkit and
7bd2ce
# its dependencies.
7bd2ce
Conflicts:  PolicyKit < 0.8-3
7bd2ce
Requires:   python3-decorator
7bd2ce
Requires:   python3-six
7bd2ce
%{?python_provide:%python_provide python3-slip-dbus}
7bd2ce
7bd2ce
%description -n python3-slip-dbus
7bd2ce
The Simple Library for Python 3.x packages contain miscellaneous code for
7bd2ce
convenience, extension and workaround purposes.
7bd2ce
7bd2ce
This package provides slip.dbus.service.Object, which is a dbus.service.Object
7bd2ce
derivative that ends itself after a certain time without being used and/or if
7bd2ce
there are no clients anymore on the message bus, as well as convenience
7bd2ce
functions and decorators for integrating a dbus service with PolicyKit.
7bd2ce
7bd2ce
# No python3-slip-gtk because there is no pygtk2 for Python 3.x
7bd2ce
7bd2ce
%prep
7bd2ce
%setup -q
25db28
%patch0 -p1
7bd2ce
7bd2ce
find . -name '*.py' -o -name '*.py.in' | xargs sed -i '1s|^#!/usr/bin/python|#!%{__python3}|'
7bd2ce
7bd2ce
7bd2ce
%build
7bd2ce
make PYTHON=%{__python3} %{?_smp_mflags}
7bd2ce
7bd2ce
%install
7bd2ce
7bd2ce
make install PYTHON=%{__python3} DESTDIR=%buildroot
7bd2ce
7bd2ce
%files -n python3-slip
7bd2ce
%defattr(-,root,root,-)
7bd2ce
%doc COPYING doc/dbus
7bd2ce
%dir %{python3_sitelib}/slip/
7bd2ce
%{python3_sitelib}/slip/__pycache__
7bd2ce
%{python3_sitelib}/slip/__init__.py*
7bd2ce
%{python3_sitelib}/slip/util
7bd2ce
%{python3_sitelib}/slip/_wrappers
7bd2ce
%{python3_sitelib}/slip-%{version}-py%{python3_version}.egg-info
7bd2ce
7bd2ce
%files -n python3-slip-dbus
7bd2ce
%defattr(-,root,root,-)
7bd2ce
%doc doc/dbus/*
7bd2ce
%{python3_sitelib}/slip/dbus
7bd2ce
%{python3_sitelib}/slip.dbus-%{version}-py%{python3_version}.egg-info
7bd2ce
7bd2ce
%changelog
25db28
* Tue May 03 2022 Charalampos Stratakis <cstratak@redhat.com> - 0.6.4-13
25db28
- Release bump
25db28
25db28
* Tue Apr 26 2022 Charalampos Stratakis <cstratak@redhat.com> - 0.6.4-12
25db28
- Make firewalld to not log errors when running commands as root
25db28
  in the absence of polkitd.
25db28
Resolves: rhbz#2076606
25db28
7bd2ce
* Tue Jun 05 2018 Petr Viktorin <pviktori@redhat.com> - 0.6.4-11
7bd2ce
- Remove the Python 2 subpackages
7bd2ce
  https://bugzilla.redhat.com/show_bug.cgi?id=1566681
7bd2ce
7bd2ce
* Tue Mar 20 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.6.4-10
7bd2ce
- Also rename python-slip-dbus and python-slip-gtk to python2-*
7bd2ce
- Add missing %%python_provide macros
7bd2ce
- Use new python2- names in dependencies
7bd2ce
7bd2ce
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.4-9
7bd2ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
7bd2ce
7bd2ce
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.6.4-8
7bd2ce
- Python 2 binary package renamed to python2-slip
7bd2ce
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
7bd2ce
7bd2ce
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.4-7
7bd2ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
7bd2ce
7bd2ce
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.4-6
7bd2ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
7bd2ce
7bd2ce
* Fri Dec 09 2016 Charalampos Stratakis <cstratak@redhat.com> - 0.6.4-5
7bd2ce
- Rebuild for Python 3.6
7bd2ce
7bd2ce
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.4-4
7bd2ce
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
7bd2ce
7bd2ce
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.4-3
7bd2ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
7bd2ce
7bd2ce
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.4-2
7bd2ce
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
7bd2ce
7bd2ce
* Fri Sep 18 2015 Nils Philippsen <nils@redhat.com> - 0.6.4-1
7bd2ce
- util.files.overwrite_safely(): preserve ownership
7bd2ce
7bd2ce
* Mon Aug 17 2015 Nils Philippsen <nils@redhat.com> - 0.6.3-1
7bd2ce
- wrap up GObject -> GLib change (#1254077)
7bd2ce
- fix URLs
7bd2ce
- remove some obsolete RPM building cruft
7bd2ce
7bd2ce
* Thu Aug 13 2015 Nils Philippsen <nils@redhat.com> - 0.6.2-1
7bd2ce
- dbus: listen less aggressively on NameOwnerChanged signals
7bd2ce
- use GLib instead of GObject for wrapper functions (#1202554)
7bd2ce
7bd2ce
* Thu Apr 16 2015 Nils Philippsen <nils@redhat.com> - 0.6.1-1
7bd2ce
- fix detection of imported gobject flavor (#1194235)
7bd2ce
7bd2ce
* Tue Oct 22 2013 Nils Philippsen <nils@redhat.com> - 0.6.0-1
7bd2ce
- version 0.6.0
7bd2ce
  - support Python 3.x
7bd2ce
  - fix util.hookable hashing, add Hookable.add_hook_hookable()
7bd2ce
- remove our own age-old python directory macros
7bd2ce
- fix changelog date
7bd2ce
7bd2ce
* Fri Mar 08 2013 Nils Philippsen <nils@redhat.com> - 0.4.0-1
7bd2ce
- version 0.4.0:
7bd2ce
  - get rid of (ancient) PolicyKit-0.x support
7bd2ce
  - add basic (experimental, unstable) dbus introspection support
7bd2ce
  - learn to cope with polkitd being restarted
7bd2ce
7bd2ce
* Mon Nov 12 2012 Nils Philippsen <nils@redhat.com> - 0.2.24-1
7bd2ce
- dbus.polkit: fall back to unix uids if polkit is not available
7bd2ce
7bd2ce
* Fri Nov 09 2012 Nils Philippsen <nils@redhat.com> - 0.2.23-1
7bd2ce
- default to classic gobject if available
7bd2ce
- actually distribute gobject wrapper code
7bd2ce
7bd2ce
* Fri Nov 09 2012 Nils Philippsen <nils@redhat.com> - 0.2.22-1
7bd2ce
- dbus: work with either gobject or gi.repository.GObject (pygobject2/3)
7bd2ce
7bd2ce
* Mon Oct 22 2012 Nils Philippsen <nils@redhat.com> - 0.2.21-1
7bd2ce
- add slip.util.files.symlink_atomically()
7bd2ce
7bd2ce
* Fri Nov 04 2011 Nils Philippsen <nils@redhat.com> - 0.2.20-1
7bd2ce
- revert "preserve signature, docstrings, etc. of decorated methods" (#757517)
7bd2ce
7bd2ce
* Thu Nov 03 2011 Nils Philippsen <nils@redhat.com> - 0.2.19-1
7bd2ce
- allow service object methods to be called locally
7bd2ce
- preserve signature, docstrings, etc. of decorated methods
7bd2ce
7bd2ce
* Wed Oct 19 2011 Nils Philippsen <nils@redhat.com> - 0.2.18-1
7bd2ce
- actually use persistent value in Object constructor
7bd2ce
7bd2ce
* Mon Jun 27 2011 Nils Philippsen <nils@redhat.com> - 0.2.17-1
7bd2ce
- fix default timeouts of None in bus objects (#716620)
7bd2ce
- reduce proxy method calling overhead a bit more
7bd2ce
7bd2ce
* Tue Jun 21 2011 Nils Philippsen <nils@redhat.com> - 0.2.16-1
7bd2ce
- actually distribute slip.dbus.constants module (#714980)
7bd2ce
7bd2ce
* Mon Jun 20 2011 Nils Philippsen <nils@redhat.com> - 0.2.15-1
7bd2ce
- reduce proxy method call overhead
7bd2ce
- fix magic value for infinite timeouts (#708761)
7bd2ce
7bd2ce
* Mon Oct 11 2010 Nils Philippsen <nils@redhat.com> - 0.2.14-1
7bd2ce
- use plain "raise" in some places to ease debugging
7bd2ce
7bd2ce
* Tue Aug 31 2010 Nils Philippsen <nils@redhat.com> - 0.2.13-1
7bd2ce
- revert "use tempfile.mkstemp"
7bd2ce
7bd2ce
* Tue Aug 24 2010 Nils Philippsen <nils@redhat.com> - 0.2.12-1
7bd2ce
- use os.path.abspath instead of .realpath (#615819)
7bd2ce
- use tempfile.mkstemp
7bd2ce
- don't use hardcoded file ext separator
7bd2ce
7bd2ce
* Wed Jun 30 2010 Nils Philippsen <nils@redhat.com> - 0.2.11-1
7bd2ce
- fix re-raising exceptions
7bd2ce
- add slip.util.files.overwrite_safely()
7bd2ce
7bd2ce
* Fri Jun 11 2010 Nils Philippsen <nils@redhat.com> - 0.2.10-1
7bd2ce
- add pygobject2 requirement to dbus subpackage
7bd2ce
7bd2ce
* Mon Mar 22 2010 Nils Philippsen <nils@redhat.com> - 0.2.9-1
7bd2ce
- fix throwing auth fail exceptions
7bd2ce
7bd2ce
* Thu Mar 11 2010 Nils Philippsen <nils@redhat.com> - 0.2.8-1
7bd2ce
- improve polkit.enable_proxy decorator
7bd2ce
7bd2ce
* Thu Feb 11 2010 Nils Philippsen <nils@redhat.com>
7bd2ce
- deprecate IsSystemBusNameAuthorized()
7bd2ce
7bd2ce
* Tue Sep 29 2009 Nils Philippsen <nils@redhat.com> - 0.2.7-1
7bd2ce
- fix persistent service objects
7bd2ce
7bd2ce
* Mon Sep 28 2009 Nils Philippsen <nils@redhat.com> - 0.2.6-1
7bd2ce
- ship all slip.dbus modules (#525790)
7bd2ce
7bd2ce
* Thu Sep 24 2009 Nils Philippsen <nils@redhat.com> - 0.2.5-1
7bd2ce
- make polkit checks in dbus services non-blocking
7bd2ce
7bd2ce
* Mon Sep 14 2009 Nils Philippsen <nils@redhat.com>
7bd2ce
- improve example documentation
7bd2ce
7bd2ce
* Tue Sep 08 2009 Nils Philippsen <nils@redhat.com> - 0.2.4-1
7bd2ce
- fix dbus example
7bd2ce
7bd2ce
* Tue Sep 01 2009 Nils Philippsen <nils@redhat.com> - 0.2.3-1
7bd2ce
- add issamefile(), linkfile(), linkorcopyfile() to slip.util.files
7bd2ce
7bd2ce
* Tue Sep 01 2009 Nils Philippsen <nils@redhat.com> - 0.2.2-1
7bd2ce
- add slip.util.files
7bd2ce
7bd2ce
* Tue Aug 25 2009 Nils Philippsen <nils@redhat.com> - 0.2.1-1
7bd2ce
- ship slip.gtk.tools
7bd2ce
7bd2ce
* Mon Aug 24 2009 Nils Philippsen <nils@redhat.com> - 0.2.0-1
7bd2ce
- use PolicyKit version 1.0 if possible (#518996)
7bd2ce
- update and ship dbus README
7bd2ce
7bd2ce
* Fri Aug 21 2009 Nils Philippsen <nils@redhat.com>
7bd2ce
- require polkit >= 0.94 from F-12 on
7bd2ce
7bd2ce
* Thu Nov 27 2008 Nils Philippsen 
7bd2ce
- use fedorahosted.org URLs
7bd2ce
7bd2ce
* Tue Oct 14 2008 Nils Philippsen <nphilipp@redhat.com> - 0.1.15
7bd2ce
- add slip.dbus.polkit.AreAuthorizationsObtainable()
7bd2ce
7bd2ce
* Mon Sep 15 2008 Nils Philippsen <nphilipp@redhat.com> - 0.1.14
7bd2ce
- clarify examples a bit
7bd2ce
7bd2ce
* Tue Sep 09 2008 Nils Philippsen <nphilipp@redhat.com> - 0.1.13
7bd2ce
- add working examples
7bd2ce
7bd2ce
* Fri Aug 29 2008 Nils Philippsen <nphilipp@redhat.com> - 0.1.12
7bd2ce
- make slip.dbus.service.Object persistence overridable per object
7bd2ce
7bd2ce
* Tue Aug 05 2008 Nils Philippsen <nphilipp@redhat.com> - 0.1.11
7bd2ce
- implement freezing/thawing hooks
7bd2ce
7bd2ce
* Tue Aug 05 2008 Nils Philippsen <nphilipp@redhat.com> - 0.1.10
7bd2ce
- implement disabling/enabling hooks
7bd2ce
7bd2ce
* Tue Aug 05 2008 Nils Philippsen <nphilipp@redhat.com> - 0.1.9
7bd2ce
- make slip.util.hookable more flexible, easier extendable
7bd2ce
7bd2ce
* Mon Aug 04 2008 Nils Philippsen <nphilipp@redhat.com> - 0.1.8
7bd2ce
- add slip.util.hookable
7bd2ce
7bd2ce
* Thu Jul 24 2008 Nils Philippsen <nphilipp@redhat.com> - 0.1.7
7bd2ce
- fix import error (#456511)
7bd2ce
7bd2ce
* Wed Jul 23 2008 Nils Philippsen <nphilipp@redhat.com> - 0.1.6
7bd2ce
- move proxy.polkit_enable to polkit.enable_proxy
7bd2ce
- rename polkit.NotAuthorized to NotAuthorizedException, polkit.auth_required
7bd2ce
  to require_auth
7bd2ce
7bd2ce
* Tue Jul 22 2008 Nils Philippsen <nphilipp@redhat.com> - 0.1.5
7bd2ce
- don't reset timeout on failed polkit authorizations
7bd2ce
7bd2ce
* Mon Jul 21 2008 Nils Philippsen <nphilipp@redhat.com> - 0.1.4
7bd2ce
- implement PolicyKit convenience functions and decorators
7bd2ce
- rename slip.dbus.service.TimeoutObject -> slip.dbus.service.Object
7bd2ce
7bd2ce
* Fri Jul 11 2008 Nils Philippsen <nphilipp@redhat.com> - 0.1.3
7bd2ce
- BR: python-devel
7bd2ce
7bd2ce
* Fri Jul 11 2008 Nils Philippsen <nphilipp@redhat.com> - 0.1.2
7bd2ce
- fix more inconsistent tabs/spaces
7bd2ce
7bd2ce
* Fri Jul 11 2008 Nils Philippsen <nphilipp@redhat.com> - 0.1.1
7bd2ce
- fix inconsistent tabs/spaces
7bd2ce
7bd2ce
* Tue May 27 2008 Nils Philippsen <nphilipp@redhat.com> - 0.1
7bd2ce
- move gtk.py -> gtk/__init__.py
7bd2ce
- rename gtk.set_autowrap () -> gtk.label_autowrap ()
7bd2ce
7bd2ce
* Mon May 26 2008 Nils Philippsen <nphilipp@redhat.com>
7bd2ce
- initial build