|
|
|
@ -27,18 +27,18 @@
|
|
|
|
|
%if 0%{?fedora} || 0%{?rhel} >= 8 |
|
|
|
|
# Python v2 Support dropped |
|
|
|
|
%global with_python2 0 |
|
|
|
|
%endif # fedora and/or rhel7 |
|
|
|
|
%endif |
|
|
|
|
|
|
|
|
|
%if 0%{?_module_build} |
|
|
|
|
%bcond_with tests |
|
|
|
|
%else |
|
|
|
|
# When bootstrapping Python, we cannot test this yet |
|
|
|
|
%bcond_without tests |
|
|
|
|
%endif # module_build |
|
|
|
|
%endif |
|
|
|
|
|
|
|
|
|
%if 0%{?rhel} && 0%{?rhel} <= 7 |
|
|
|
|
%global with_python3 0 |
|
|
|
|
%endif # using rhel7 |
|
|
|
|
%endif |
|
|
|
|
|
|
|
|
|
%global pypi_name apprise |
|
|
|
|
|
|
|
|
@ -55,7 +55,7 @@ SendGrid, SimplePush, Slack, Super Toasty, Stride, Syslog, Techulus Push,
|
|
|
|
|
Telegram, Twilio, Twitter, Twist, XBMC, XMPP, Webex Teams} |
|
|
|
|
|
|
|
|
|
Name: python-%{pypi_name} |
|
|
|
|
Version: 0.8.1 |
|
|
|
|
Version: 0.8.2 |
|
|
|
|
Release: 1%{?dist} |
|
|
|
|
Summary: A simple wrapper to many popular notification services used today |
|
|
|
|
License: MIT |
|
|
|
@ -86,7 +86,7 @@ BuildRequires: python-yaml
|
|
|
|
|
%else |
|
|
|
|
BuildRequires: python2-babel |
|
|
|
|
BuildRequires: python2-yaml |
|
|
|
|
%endif # using rhel7 |
|
|
|
|
%endif |
|
|
|
|
|
|
|
|
|
Requires: python-requests |
|
|
|
|
Requires: python2-requests-oauthlib |
|
|
|
@ -96,17 +96,17 @@ Requires: python-markdown
|
|
|
|
|
Requires: python-yaml |
|
|
|
|
%else |
|
|
|
|
Requires: python2-yaml |
|
|
|
|
%endif # using rhel7 |
|
|
|
|
%endif |
|
|
|
|
|
|
|
|
|
%if %{with tests} |
|
|
|
|
BuildRequires: python-mock |
|
|
|
|
BuildRequires: python2-pytest-runner |
|
|
|
|
BuildRequires: python2-pytest |
|
|
|
|
|
|
|
|
|
%endif # with_tests |
|
|
|
|
%endif |
|
|
|
|
|
|
|
|
|
%description -n python2-%{pypi_name} %{common_description} |
|
|
|
|
%endif # with_python2 |
|
|
|
|
%endif |
|
|
|
|
|
|
|
|
|
%package -n %{pypi_name} |
|
|
|
|
Summary: Apprise CLI Tool |
|
|
|
@ -114,12 +114,12 @@ Summary: Apprise CLI Tool
|
|
|
|
|
%if 0%{?with_python3} |
|
|
|
|
Requires: python%{python3_pkgversion}-click >= 5.0 |
|
|
|
|
Requires: python%{python3_pkgversion}-%{pypi_name} = %{version}-%{release} |
|
|
|
|
%endif # with_python3 |
|
|
|
|
%endif |
|
|
|
|
|
|
|
|
|
%if 0%{?with_python2} |
|
|
|
|
Requires: python2-click >= 5.0 |
|
|
|
|
Requires: python2-%{pypi_name} = %{version}-%{release} |
|
|
|
|
%endif # with_python2 |
|
|
|
|
%endif |
|
|
|
|
|
|
|
|
|
%description -n %{pypi_name} |
|
|
|
|
An accompanied CLI tool that can be used as part of Apprise |
|
|
|
@ -149,33 +149,33 @@ Requires: python%{python3_pkgversion}-yaml
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-mock |
|
|
|
|
BuildRequires: python%{python3_pkgversion}-pytest |
|
|
|
|
BuildRequires: python%{python3_pkgversion}-pytest-runner |
|
|
|
|
%endif # with_tests |
|
|
|
|
%endif |
|
|
|
|
|
|
|
|
|
%description -n python%{python3_pkgversion}-%{pypi_name} %{common_description} |
|
|
|
|
%endif # with_python3 |
|
|
|
|
%endif |
|
|
|
|
|
|
|
|
|
%prep |
|
|
|
|
%setup -q -n %{pypi_name}-%{version} |
|
|
|
|
%if 0%{?rhel} && 0%{?rhel} <= 7 |
|
|
|
|
# rhel7 older package work-arounds |
|
|
|
|
%patch0 -p1 |
|
|
|
|
%endif # using rhel7 |
|
|
|
|
%endif |
|
|
|
|
|
|
|
|
|
%build |
|
|
|
|
%if 0%{?with_python2} |
|
|
|
|
%py2_build |
|
|
|
|
%endif # with_python2 |
|
|
|
|
%endif |
|
|
|
|
%if 0%{?with_python3} |
|
|
|
|
%py3_build |
|
|
|
|
%endif # with_python3 |
|
|
|
|
%endif |
|
|
|
|
|
|
|
|
|
%install |
|
|
|
|
%if 0%{?with_python2} |
|
|
|
|
%py2_install |
|
|
|
|
%endif # with_python2 |
|
|
|
|
%endif |
|
|
|
|
%if 0%{?with_python3} |
|
|
|
|
%py3_install |
|
|
|
|
%endif # with_python3 |
|
|
|
|
%endif |
|
|
|
|
|
|
|
|
|
install -p -D -T -m 0644 packaging/man/%{pypi_name}.1 \ |
|
|
|
|
%{buildroot}%{_mandir}/man1/%{pypi_name}.1 |
|
|
|
@ -184,11 +184,11 @@ install -p -D -T -m 0644 packaging/man/%{pypi_name}.1 \
|
|
|
|
|
%check |
|
|
|
|
%if 0%{?with_python2} |
|
|
|
|
LANG=C.UTF-8 PYTHONPATH=%{buildroot}%{python2_sitelib} py.test |
|
|
|
|
%endif # with_python2 |
|
|
|
|
%endif |
|
|
|
|
%if 0%{?with_python3} |
|
|
|
|
LANG=C.UTF-8 PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} |
|
|
|
|
%endif # with_python3 |
|
|
|
|
%endif # with_tests |
|
|
|
|
%endif |
|
|
|
|
%endif |
|
|
|
|
|
|
|
|
|
%if 0%{?with_python2} |
|
|
|
|
%files -n python2-%{pypi_name} |
|
|
|
@ -197,7 +197,7 @@ LANG=C.UTF-8 PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version
|
|
|
|
|
%{python2_sitelib}/%{pypi_name} |
|
|
|
|
%exclude %{python2_sitelib}/%{pypi_name}/cli.* |
|
|
|
|
%{python2_sitelib}/*.egg-info |
|
|
|
|
%endif # with_python2 |
|
|
|
|
%endif |
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3} |
|
|
|
|
%files -n python%{python3_pkgversion}-%{pypi_name} |
|
|
|
@ -206,7 +206,7 @@ LANG=C.UTF-8 PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version
|
|
|
|
|
%{python3_sitelib}/%{pypi_name} |
|
|
|
|
%exclude %{python3_sitelib}/%{pypi_name}/cli.* |
|
|
|
|
%{python3_sitelib}/*.egg-info |
|
|
|
|
%endif # with_python3 |
|
|
|
|
%endif |
|
|
|
|
|
|
|
|
|
%files -n %{pypi_name} |
|
|
|
|
%{_bindir}/%{pypi_name} |
|
|
|
@ -214,13 +214,16 @@ LANG=C.UTF-8 PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3} |
|
|
|
|
%{python3_sitelib}/%{pypi_name}/cli.* |
|
|
|
|
%endif # with_python3 |
|
|
|
|
%endif |
|
|
|
|
|
|
|
|
|
%if 0%{?with_python2} |
|
|
|
|
%{python2_sitelib}/%{pypi_name}/cli.* |
|
|
|
|
%endif # with_python2 |
|
|
|
|
%endif |
|
|
|
|
|
|
|
|
|
%changelog |
|
|
|
|
* Mon Nov 25 2019 Chris Caron <lead2gold@gmail.com> - 0.8.2-1 |
|
|
|
|
- Updated to v0.8.2 |
|
|
|
|
|
|
|
|
|
* Sun Oct 13 2019 Chris Caron <lead2gold@gmail.com> - 0.8.1-1 |
|
|
|
|
- Updated to v0.8.1 |
|
|
|
|
|
|
|
|
|