From c0383cc86844939d8f88c14fed9a80141568536b Mon Sep 17 00:00:00 2001 From: Maja Massarini Date: Fri, 29 Nov 2024 14:54:48 +0100 Subject: [PATCH] Do not change package name --- python-APScheduler.spec | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/python-APScheduler.spec b/python-APScheduler.spec index 63dcfb1..dc4fca4 100644 --- a/python-APScheduler.spec +++ b/python-APScheduler.spec @@ -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