460cf85
# Created by pyp2rpm-3.3.2
460cf85
460cf85
# Enable auto-generation of runtime dependencies
460cf85
%{?python_enable_dependency_generator}
460cf85
460cf85
%global pypi_name notify2
460cf85
460cf85
Name:           python-%{pypi_name}
460cf85
Version:        0.3.1
8bc7ae9
Release:        9%{?dist}
460cf85
Summary:        Python interface to DBus notifications
460cf85
460cf85
License:        BSD
460cf85
URL:            https://bitbucket.org/takluyver/pynotify2
460cf85
Source0:        https://files.pythonhosted.org/packages/source/n/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
460cf85
BuildArch:      noarch
460cf85
23c4388
BuildRequires:  python%{python3_pkgversion}-devel
23c4388
BuildRequires:  python%{python3_pkgversion}-setuptools
460cf85
BuildRequires:  %{_bindir}/sphinx-build-3
460cf85
460cf85
%description
460cf85
This is a pure-python replacement for notify-python, using python-dbus
460cf85
to communicate with the notifications server directly.
460cf85
460cf85
It's compatible with Python 2 and 3, and its callbacks can work with
460cf85
Gtk or Qt applications.
460cf85
460cf85
23c4388
%package -n     python%{python3_pkgversion}-%{pypi_name}
460cf85
Summary:        %{summary}
23c4388
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}}
460cf85
# Requires aren't properly stated for dbus-python, so they aren't generated properly
23c4388
Requires:       python%{python3_pkgversion}-dbus
460cf85
23c4388
%description -n python%{python3_pkgversion}-%{pypi_name}
460cf85
This is a pure-python replacement for notify-python, using python-dbus
460cf85
to communicate with the notifications server directly.
460cf85
460cf85
It's compatible with Python 2 and 3, and its callbacks can work with
460cf85
Gtk or Qt applications.
460cf85
460cf85
%package -n python-%{pypi_name}-doc
460cf85
Summary:        notify2 documentation
460cf85
%description -n python-%{pypi_name}-doc
460cf85
Documentation for notify2
460cf85
460cf85
%prep
460cf85
%autosetup -n %{pypi_name}-%{version}
460cf85
460cf85
%build
460cf85
%py3_build
460cf85
# generate html docs
460cf85
PYTHONPATH=${PWD} sphinx-build-3 docs html
460cf85
# remove the sphinx-build leftovers
460cf85
rm -rf html/.{doctrees,buildinfo}
460cf85
460cf85
%install
460cf85
%py3_install
460cf85
23c4388
%files -n python%{python3_pkgversion}-%{pypi_name}
460cf85
%license docs/license.rst LICENSE
460cf85
%{python3_sitelib}/__pycache__/*
460cf85
%{python3_sitelib}/%{pypi_name}.py
50e33cd
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
460cf85
460cf85
%files -n python-%{pypi_name}-doc
460cf85
%doc html
460cf85
%license docs/license.rst LICENSE
460cf85
460cf85
%changelog
8bc7ae9
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-9
8bc7ae9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
8bc7ae9
6f5497f
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.3.1-8
6f5497f
- Rebuilt for Python 3.9
6f5497f
a156be6
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-7
a156be6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
a156be6
0faa527
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.3.1-6
0faa527
- Rebuilt for Python 3.8.0rc1 (#1748018)
0faa527
69ac0e3
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.3.1-5
69ac0e3
- Rebuilt for Python 3.8
69ac0e3
59789a9
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-4
59789a9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
59789a9
23c4388
* Mon Mar 04 2019 Scott K Logan <logans@cottsay.net> - 0.3.1-3
23c4388
- Add support for building for EPEL7 (#1685288)
23c4388
eb4934a
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-2
eb4934a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
eb4934a
460cf85
* Sun Dec 16 2018 Neal Gompa <ngompa13@gmail.com> - 0.3.1-1
460cf85
- Initial packaging for Fedora (#1659833)