# Created by pyp2rpm-3.3.2 # Enable auto-generation of runtime dependencies %{?python_enable_dependency_generator} %global pypi_name notify2 Name: python-%{pypi_name} Version: 0.3.1 Release: 1%{?dist} Summary: Python interface to DBus notifications License: BSD URL: https://bitbucket.org/takluyver/pynotify2 Source0: https://files.pythonhosted.org/packages/source/n/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(setuptools) BuildRequires: %{_bindir}/sphinx-build-3 %description This is a pure-python replacement for notify-python, using python-dbus to communicate with the notifications server directly. It's compatible with Python 2 and 3, and its callbacks can work with Gtk or Qt applications. %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} # Requires aren't properly stated for dbus-python, so they aren't generated properly Requires: python3-dbus %description -n python3-%{pypi_name} This is a pure-python replacement for notify-python, using python-dbus to communicate with the notifications server directly. It's compatible with Python 2 and 3, and its callbacks can work with Gtk or Qt applications. %package -n python-%{pypi_name}-doc Summary: notify2 documentation %description -n python-%{pypi_name}-doc Documentation for notify2 %prep %autosetup -n %{pypi_name}-%{version} %build %py3_build # generate html docs PYTHONPATH=${PWD} sphinx-build-3 docs html # remove the sphinx-build leftovers rm -rf html/.{doctrees,buildinfo} %install %py3_install %files -n python3-%{pypi_name} %license docs/license.rst LICENSE %{python3_sitelib}/__pycache__/* %{python3_sitelib}/%{pypi_name}.py %{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info %files -n python-%{pypi_name}-doc %doc html %license docs/license.rst LICENSE %changelog * Sun Dec 16 2018 Neal Gompa - 0.3.1-1 - Initial packaging for Fedora (#1659833)