Blame SPECS/python-slip.spec

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