Blame SPECS/python-slip.spec

eb4604
# sitelib for noarch packages, sitearch for others (remove the unneeded one)
eb4604
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(0)")}
eb4604
%{!?python_version: %global python_version %(%{__python} -c "from distutils.sysconfig import get_python_version; print get_python_version()")}
eb4604
eb4604
Name:       python-slip
eb4604
Version:    0.4.0
f5ffae
Release:    4%{?dist}
eb4604
Summary:    Miscellaneous convenience, extension and workaround code for Python
eb4604
eb4604
Group:      System Environment/Libraries
eb4604
License:    GPLv2+
f5ffae
URL:        https://github.com/nphilipp/python-slip
f5ffae
Source0:    https://github.com/nphilipp/%{name}/releases/download/%{name}-%{version}/%{name}-%{version}.tar.bz2
eb4604
BuildRoot:  %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
eb4604
BuildArch:  noarch
eb4604
f5ffae
# Make firewalld to not log errors when running commands as root,
f5ffae
# when polkitd is not present
f5ffae
# Fixed upstream: https://github.com/nphilipp/python-slip/commit/39787d6773f628119876dd88bb0106e77a65201e
f5ffae
# Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1393488
f5ffae
Patch0: fix-firwalld-logging.patch
f5ffae
eb4604
BuildRequires:  python
eb4604
BuildRequires:  python-devel
eb4604
eb4604
Requires: libselinux-python
eb4604
eb4604
%description
eb4604
The Simple Library for Python packages contain miscellaneous code for
eb4604
convenience, extension and workaround purposes.
eb4604
eb4604
This package provides the "slip" and the "slip.util" modules.
eb4604
eb4604
%package dbus
eb4604
Summary:    Convenience functions for dbus services
eb4604
Group:      System Environment/Libraries
eb4604
Requires:   %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
eb4604
Requires:   dbus-python >= 0.80
eb4604
# Don't require any of pygobject2/3 because slip.dbus works with either one. In
eb4604
# theory users of slip.dbus should require one or the other anyway to use the
eb4604
# main loop.
eb4604
#
eb4604
# No hard requirement on polkit to allow minimal installs without polkit and
eb4604
# its dependencies.
eb4604
Conflicts:  PolicyKit < 0.8-3
eb4604
Requires:   python-decorator
eb4604
eb4604
%description dbus
eb4604
The Simple Library for Python packages contain miscellaneous code for
eb4604
convenience, extension and workaround purposes.
eb4604
eb4604
This package provides slip.dbus.service.Object, which is a dbus.service.Object
eb4604
derivative that ends itself after a certain time without being used and/or if
eb4604
there are no clients anymore on the message bus, as well as convenience
eb4604
functions and decorators for integrating a dbus service with PolicyKit.
eb4604
eb4604
%package gtk
eb4604
Summary:    Code to make auto-wrapping gtk labels
eb4604
Group:      System Environment/Libraries
eb4604
Requires:   %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
eb4604
Requires:   pygtk2
eb4604
eb4604
%description gtk
eb4604
The Simple Library for Python packages contain miscellaneous code for
eb4604
convenience, extension and workaround purposes.
eb4604
eb4604
This package provides slip.gtk.set_autowrap(), a convenience function which
eb4604
lets gtk labels be automatically re-wrapped upon resizing.
eb4604
eb4604
%prep
eb4604
%setup -q
f5ffae
%patch0 -p1
eb4604
eb4604
%build
eb4604
make %{?_smp_mflags}
eb4604
eb4604
%install
eb4604
rm -rf %buildroot
eb4604
make install DESTDIR=%buildroot
eb4604
eb4604
%clean
eb4604
rm -rf %buildroot
eb4604
eb4604
%files
eb4604
%defattr(-,root,root,-)
eb4604
%doc COPYING doc/dbus
eb4604
%dir %{python_sitelib}/slip/
eb4604
%{python_sitelib}/slip/__init__.py*
eb4604
%{python_sitelib}/slip/util
eb4604
%{python_sitelib}/slip/_wrappers
eb4604
%{python_sitelib}/slip-%{version}-py%{python_version}.egg-info
eb4604
eb4604
%files dbus
eb4604
%defattr(-,root,root,-)
eb4604
%doc doc/dbus/*
eb4604
%{python_sitelib}/slip/dbus
eb4604
%{python_sitelib}/slip.dbus-%{version}-py%{python_version}.egg-info
eb4604
eb4604
%files gtk
eb4604
%defattr(-,root,root,-)
eb4604
%{python_sitelib}/slip/gtk
eb4604
%{python_sitelib}/slip.gtk-%{version}-py%{python_version}.egg-info
eb4604
eb4604
%changelog
f5ffae
* Mon Oct 16 2017 Charalampos Stratakis <cstratak@redhat.com> - 0.4.0-4
f5ffae
- Fix upstream and source URL's
f5ffae
Resolves: rhbz#1502397
f5ffae
f5ffae
* Wed Sep 13 2017 Charalampos Stratakis <cstratak@redhat.com> - 0.4.0-3
f5ffae
- Make firewalld to not log errors when running commands as root
f5ffae
in the absence of polkitd.
f5ffae
Resolves: rhbz#1393488
f5ffae
ca82d2
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.4.0-2
ca82d2
- Mass rebuild 2013-12-27
ca82d2
eb4604
* Fri Mar 08 2013 Nils Philippsen <nils@redhat.com> - 0.4.0-1
eb4604
- version 0.4.0:
eb4604
  - get rid of (ancient) PolicyKit-0.x support
eb4604
  - add basic (experimental, unstable) dbus introspection support
eb4604
  - learn to cope with polkitd being restarted
eb4604
eb4604
* Mon Nov 12 2012 Nils Philippsen <nils@redhat.com> - 0.2.24-1
eb4604
- dbus.polkit: fall back to unix uids if polkit is not available
eb4604
eb4604
* Fri Nov 09 2012 Nils Philippsen <nils@redhat.com> - 0.2.23-1
eb4604
- default to classic gobject if available
eb4604
- actually distribute gobject wrapper code
eb4604
eb4604
* Fri Nov 09 2012 Nils Philippsen <nils@redhat.com> - 0.2.22-1
eb4604
- dbus: work with either gobject or gi.repository.GObject (pygobject2/3)
eb4604
eb4604
* Mon Oct 22 2012 Nils Philippsen <nils@redhat.com> - 0.2.21-1
eb4604
- add slip.util.files.symlink_atomically()
eb4604
eb4604
* Fri Nov 28 2011 Nils Philippsen <nils@redhat.com> - 0.2.20-1
eb4604
- revert "preserve signature, docstrings, etc. of decorated methods" (#757517)
eb4604
eb4604
* Thu Nov 03 2011 Nils Philippsen <nils@redhat.com> - 0.2.19-1
eb4604
- allow service object methods to be called locally
eb4604
- preserve signature, docstrings, etc. of decorated methods
eb4604
eb4604
* Wed Oct 19 2011 Nils Philippsen <nils@redhat.com> - 0.2.18-1
eb4604
- actually use persistent value in Object constructor
eb4604
eb4604
* Mon Jun 27 2011 Nils Philippsen <nils@redhat.com> - 0.2.17-1
eb4604
- fix default timeouts of None in bus objects (#716620)
eb4604
- reduce proxy method calling overhead a bit more
eb4604
eb4604
* Tue Jun 21 2011 Nils Philippsen <nils@redhat.com> - 0.2.16-1
eb4604
- actually distribute slip.dbus.constants module (#714980)
eb4604
eb4604
* Mon Jun 20 2011 Nils Philippsen <nils@redhat.com> - 0.2.15-1
eb4604
- reduce proxy method call overhead
eb4604
- fix magic value for infinite timeouts (#708761)
eb4604
eb4604
* Mon Oct 11 2010 Nils Philippsen <nils@redhat.com> - 0.2.14-1
eb4604
- use plain "raise" in some places to ease debugging
eb4604
eb4604
* Tue Aug 31 2010 Nils Philippsen <nils@redhat.com> - 0.2.13-1
eb4604
- revert "use tempfile.mkstemp"
eb4604
eb4604
* Tue Aug 24 2010 Nils Philippsen <nils@redhat.com> - 0.2.12-1
eb4604
- use os.path.abspath instead of .realpath (#615819)
eb4604
- use tempfile.mkstemp
eb4604
- don't use hardcoded file ext separator
eb4604
eb4604
* Wed Jun 30 2010 Nils Philippsen <nils@redhat.com> - 0.2.11-1
eb4604
- fix re-raising exceptions
eb4604
- add slip.util.files.overwrite_safely()
eb4604
eb4604
* Fri Jun 11 2010 Nils Philippsen <nils@redhat.com> - 0.2.10-1
eb4604
- add pygobject2 requirement to dbus subpackage
eb4604
eb4604
* Mon Mar 22 2010 Nils Philippsen <nils@redhat.com> - 0.2.9-1
eb4604
- fix throwing auth fail exceptions
eb4604
eb4604
* Thu Mar 11 2010 Nils Philippsen <nils@redhat.com> - 0.2.8-1
eb4604
- improve polkit.enable_proxy decorator
eb4604
eb4604
* Thu Feb 11 2010 Nils Philippsen <nils@redhat.com>
eb4604
- deprecate IsSystemBusNameAuthorized()
eb4604
eb4604
* Tue Sep 29 2009 Nils Philippsen <nils@redhat.com> - 0.2.7-1
eb4604
- fix persistent service objects
eb4604
eb4604
* Mon Sep 28 2009 Nils Philippsen <nils@redhat.com> - 0.2.6-1
eb4604
- ship all slip.dbus modules (#525790)
eb4604
eb4604
* Thu Sep 24 2009 Nils Philippsen <nils@redhat.com> - 0.2.5-1
eb4604
- make polkit checks in dbus services non-blocking
eb4604
eb4604
* Mon Sep 14 2009 Nils Philippsen <nils@redhat.com>
eb4604
- improve example documentation
eb4604
eb4604
* Tue Sep 08 2009 Nils Philippsen <nils@redhat.com> - 0.2.4-1
eb4604
- fix dbus example
eb4604
eb4604
* Tue Sep 01 2009 Nils Philippsen <nils@redhat.com> - 0.2.3-1
eb4604
- add issamefile(), linkfile(), linkorcopyfile() to slip.util.files
eb4604
eb4604
* Tue Sep 01 2009 Nils Philippsen <nils@redhat.com> - 0.2.2-1
eb4604
- add slip.util.files
eb4604
eb4604
* Tue Aug 25 2009 Nils Philippsen <nils@redhat.com> - 0.2.1-1
eb4604
- ship slip.gtk.tools
eb4604
eb4604
* Mon Aug 24 2009 Nils Philippsen <nils@redhat.com> - 0.2.0-1
eb4604
- use PolicyKit version 1.0 if possible (#518996)
eb4604
- update and ship dbus README
eb4604
eb4604
* Fri Aug 21 2009 Nils Philippsen <nils@redhat.com>
eb4604
- require polkit >= 0.94 from F-12 on
eb4604
eb4604
* Thu Nov 27 2008 Nils Philippsen 
eb4604
- use fedorahosted.org URLs
eb4604
eb4604
* Tue Oct 14 2008 Nils Philippsen <nphilipp@redhat.com> - 0.1.15
eb4604
- add slip.dbus.polkit.AreAuthorizationsObtainable()
eb4604
eb4604
* Mon Sep 15 2008 Nils Philippsen <nphilipp@redhat.com> - 0.1.14
eb4604
- clarify examples a bit
eb4604
eb4604
* Tue Sep 09 2008 Nils Philippsen <nphilipp@redhat.com> - 0.1.13
eb4604
- add working examples
eb4604
eb4604
* Fri Aug 29 2008 Nils Philippsen <nphilipp@redhat.com> - 0.1.12
eb4604
- make slip.dbus.service.Object persistence overridable per object
eb4604
eb4604
* Tue Aug 05 2008 Nils Philippsen <nphilipp@redhat.com> - 0.1.11
eb4604
- implement freezing/thawing hooks
eb4604
eb4604
* Tue Aug 05 2008 Nils Philippsen <nphilipp@redhat.com> - 0.1.10
eb4604
- implement disabling/enabling hooks
eb4604
eb4604
* Tue Aug 05 2008 Nils Philippsen <nphilipp@redhat.com> - 0.1.9
eb4604
- make slip.util.hookable more flexible, easier extendable
eb4604
eb4604
* Mon Aug 04 2008 Nils Philippsen <nphilipp@redhat.com> - 0.1.8
eb4604
- add slip.util.hookable
eb4604
eb4604
* Thu Jul 24 2008 Nils Philippsen <nphilipp@redhat.com> - 0.1.7
eb4604
- fix import error (#456511)
eb4604
eb4604
* Wed Jul 23 2008 Nils Philippsen <nphilipp@redhat.com> - 0.1.6
eb4604
- move proxy.polkit_enable to polkit.enable_proxy
eb4604
- rename polkit.NotAuthorized to NotAuthorizedException, polkit.auth_required
eb4604
  to require_auth
eb4604
eb4604
* Tue Jul 22 2008 Nils Philippsen <nphilipp@redhat.com> - 0.1.5
eb4604
- don't reset timeout on failed polkit authorizations
eb4604
eb4604
* Mon Jul 21 2008 Nils Philippsen <nphilipp@redhat.com> - 0.1.4
eb4604
- implement PolicyKit convenience functions and decorators
eb4604
- rename slip.dbus.service.TimeoutObject -> slip.dbus.service.Object
eb4604
eb4604
* Fri Jul 11 2008 Nils Philippsen <nphilipp@redhat.com> - 0.1.3
eb4604
- BR: python-devel
eb4604
eb4604
* Fri Jul 11 2008 Nils Philippsen <nphilipp@redhat.com> - 0.1.2
eb4604
- fix more inconsistent tabs/spaces
eb4604
eb4604
* Fri Jul 11 2008 Nils Philippsen <nphilipp@redhat.com> - 0.1.1
eb4604
- fix inconsistent tabs/spaces
eb4604
eb4604
* Tue May 27 2008 Nils Philippsen <nphilipp@redhat.com> - 0.1
eb4604
- move gtk.py -> gtk/__init__.py
eb4604
- rename gtk.set_autowrap () -> gtk.label_autowrap ()
eb4604
eb4604
* Mon May 26 2008 Nils Philippsen <nphilipp@redhat.com>
eb4604
- initial build