mirror of
https://github.com/caronc/apprise.git
synced 2025-12-15 10:04:06 +08:00
build environment improvements (#1385)
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
## Packaging
|
||||
This directory contains any supporting files to grant usage of Apprise in various distributions.
|
||||
|
||||
Let me know if you'd like to help me host on more platforms or can offer to do it yourself!
|
||||
|
||||
### RPM Based Packages
|
||||
* [EPEL](https://fedoraproject.org/wiki/EPEL) based distributions are only supported if they are of v9 or higher. This includes:
|
||||
* Red Hat 9.x (or higher)
|
||||
@@ -17,7 +19,17 @@ Provided you are connected to the [EPEL repositories](https://fedoraproject.org/
|
||||
dnf install python3-apprise apprise
|
||||
```
|
||||
|
||||
Let me know if you'd like to help me host on more platforms or can offer to do it yourself!
|
||||
You can build your own rpm packges with the following:
|
||||
```bash
|
||||
# EPEL9 (CentOS/Rocky/RedHat/Oracle Linux)
|
||||
tox -e build-el9-rpm
|
||||
|
||||
# Fedora 42
|
||||
tox -e build-f42-rpm
|
||||
|
||||
# Fedora Rawhide
|
||||
tox -e build-rawhide-rpm
|
||||
```
|
||||
|
||||
## Man Pages Information
|
||||
The man page were generated using [Ronn](http://github.com/rtomayko/ronn/tree/0.7.3).
|
||||
|
||||
@@ -79,7 +79,7 @@ notification services. It supports sending alerts to platforms such as: \
|
||||
|
||||
Name: python-%{pypi_name}
|
||||
Version: 1.9.4
|
||||
Release: 1%{?dist}
|
||||
Release: 3%{?dist}
|
||||
Summary: A simple wrapper to many popular notification services used today
|
||||
License: BSD-2-Clause
|
||||
URL: https://github.com/caronc/%{pypi_name}
|
||||
@@ -147,17 +147,7 @@ BuildRequires: python%{python3_pkgversion}-pytest-cov
|
||||
%description -n python%{python3_pkgversion}-%{pypi_name} %{common_description}
|
||||
|
||||
%prep
|
||||
%setup -q -n %{pypi_name}-%{version}
|
||||
|
||||
# 2023.08.27: This test fails for some uknown reason only during the test
|
||||
# section of this RPM, but works completley fine under all other circumstances.
|
||||
# As a workaround, just remove the file so it doesn't hold up the RPM
|
||||
# Preparation
|
||||
%{__rm} tests/test_plugin_bulksms.py
|
||||
|
||||
# 2023.08.27: rawhide does not install translationfiles for some reason
|
||||
# at this time; remove failing test until this is resolved
|
||||
%{__rm} tests/test_apprise_translations.py
|
||||
%autosetup -n %{pypi_name}-%{version}
|
||||
|
||||
%build
|
||||
%if %{legacy_python_build}
|
||||
@@ -167,13 +157,13 @@ BuildRequires: python%{python3_pkgversion}-pytest-cov
|
||||
%pyproject_wheel
|
||||
%endif
|
||||
|
||||
|
||||
%install
|
||||
%if %{legacy_python_build}
|
||||
# backwards compatible
|
||||
%py3_install
|
||||
%else
|
||||
%pyproject_install
|
||||
%pyproject_save_files apprise
|
||||
%endif
|
||||
|
||||
%{__install} -p -D -T -m 0644 packaging/man/%{pypi_name}.1 \
|
||||
@@ -205,7 +195,7 @@ LANG=C.UTF-8 PYTHONPATH=%{buildroot}%{python3_sitelib}:%{_builddir}/%{name}-%{ve
|
||||
%endif
|
||||
|
||||
# Localised Files
|
||||
%lang(en) %{python3_sitelib}/%{pypi_name}/i18n/en/LC_MESSAGES/messages.mo
|
||||
%lang(en) %{python3_sitelib}/%{pypi_name}/i18n/en/LC_MESSAGES/apprise.mo
|
||||
|
||||
%files -n %{pypi_name}
|
||||
%{_bindir}/%{pypi_name}
|
||||
@@ -214,6 +204,12 @@ LANG=C.UTF-8 PYTHONPATH=%{buildroot}%{python3_sitelib}:%{_builddir}/%{name}-%{ve
|
||||
%{python3_sitelib}/%{pypi_name}/__pycache__/cli*.py?
|
||||
|
||||
%changelog
|
||||
* Sat Aug 16 2025 Chris Caron <lead2gold@gmail.com> - 1.9.4-3
|
||||
- Spec file modernization BZ2377453
|
||||
|
||||
* Fri Aug 15 2025 Python Maint <python-maint@redhat.com> - 1.9.4-2
|
||||
- Rebuilt for Python 3.14.0rc2 bytecode
|
||||
|
||||
* Sat Aug 2 2025 Chris Caron <lead2gold@gmail.com> - 1.9.4
|
||||
- Updated to v1.9.4
|
||||
|
||||
|
||||
Reference in New Issue
Block a user