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