Do not change package name

This commit is contained in:
Maja Massarini 2024-11-29 14:54:48 +01:00
commit c0383cc868

View file

@ -1,4 +1,3 @@
%global srcname apscheduler
%global _description %{expand:
Advanced Python Scheduler (APScheduler) is a Python library that lets you
schedule your Python code to be executed later, either just once or
@ -8,31 +7,31 @@ scheduler restarts and maintain their state. When the scheduler is
restarted, it will then run all the jobs it should have run while it was
offline.}
Name: python-%{srcname}
Name: python-APScheduler
Version: 3.11.0
Release: %autorelease
Summary: In-process task scheduler with Cron-like capabilities
License: MIT
URL: https://pypi.org/project/APScheduler/
Source0: %{pypi_source %{srcname}}
Source0: %{pypi_source apscheduler}
BuildArch: noarch
%description %_description
%package -n python3-%{srcname}
%package -n python3-APScheduler
Summary: %{summary}
BuildRequires: python3-devel
%description -n python3-%{srcname} %_description
%description -n python3-APScheduler %_description
%prep
%autosetup -n %{srcname}-%{version} -p1
%autosetup -n apscheduler-%{version} -p1
# Remove that test as it require services (redis, zookeeper, ...)
# up and running. Upstream provides a docker compose to spawn
# services before running these tests.
rm tests/test_jobstores.py
# Skip missing dependencies in Fedora 4
# Skip missing dependencies in Fedora 42
sed -i 's/ "anyio >= 4.5.2",//' pyproject.toml
sed -i 's/,rethinkdb//' pyproject.toml
@ -51,7 +50,7 @@ sed -i 's/,rethinkdb//' pyproject.toml
export TZ=UTC
%pytest
%files -n python3-%{srcname} -f %{pyproject_files}
%files -n python3-APScheduler -f %{pyproject_files}
%doc README.rst
%changelog