Drop obsolete spec file macros, and use appropriate newer ones
This commit is contained in:
parent
9163dfd707
commit
923682ec6b
@ -7,7 +7,7 @@ Summary: Database migration tool for SQLAlchemy
|
||||
|
||||
License: MIT
|
||||
URL: https://pypi.io/project/alembic
|
||||
Source0: %pypi_source alembic
|
||||
Source0: %{pypi_source alembic}
|
||||
|
||||
# Alembic fails with Python 3.10.0b2 due to DeprecationWarnings treated as an error.
|
||||
# Downstream report: https://bugzilla.redhat.com/show_bug.cgi?id=1958159
|
||||
@ -25,19 +25,19 @@ BuildRequires: python3-dateutil
|
||||
BuildRequires: python3-pytest
|
||||
|
||||
|
||||
%global _description\
|
||||
Alembic is a new database migrations tool, written by the author of\
|
||||
SQLAlchemy. A migrations tool offers the following functionality:\
|
||||
\
|
||||
* Can emit ALTER statements to a database in order to change the structure\
|
||||
of tables and other constructs.\
|
||||
* Provides a system whereby "migration scripts" may be constructed; each script\
|
||||
indicates a particular series of steps that can "upgrade" a target database\
|
||||
to a new version, and optionally a series of steps that can "downgrade"\
|
||||
similarly, doing the same steps in reverse.\
|
||||
* Allows the scripts to execute in some sequential manner.\
|
||||
\
|
||||
Documentation and status of Alembic is at http://readthedocs.org/docs/alembic/
|
||||
%global _description %{expand:
|
||||
Alembic is a new database migrations tool, written by the author of
|
||||
SQLAlchemy. A migrations tool offers the following functionality:
|
||||
|
||||
* Can emit ALTER statements to a database in order to change the structure
|
||||
of tables and other constructs.
|
||||
* Provides a system whereby "migration scripts" may be constructed; each script
|
||||
indicates a particular series of steps that can "upgrade" a target database
|
||||
to a new version, and optionally a series of steps that can "downgrade"
|
||||
similarly, doing the same steps in reverse.
|
||||
* Allows the scripts to execute in some sequential manner.
|
||||
|
||||
Documentation and status of Alembic is at http://readthedocs.org/docs/alembic/}
|
||||
|
||||
%description %_description
|
||||
|
||||
@ -45,9 +45,6 @@ Documentation and status of Alembic is at http://readthedocs.org/docs/alembic/
|
||||
%package -n python3-alembic
|
||||
Summary: %summary
|
||||
|
||||
%{?python_provide:%python_provide python3-alembic}
|
||||
|
||||
|
||||
%description -n python3-alembic %_description
|
||||
|
||||
%prep
|
||||
@ -57,8 +54,8 @@ Summary: %summary
|
||||
%build
|
||||
%py3_build
|
||||
|
||||
%{__mkdir_p} bin
|
||||
echo 'python3 -c "import alembic.config; alembic.config.main()" $*' > bin/alembic
|
||||
mkdir -p bin
|
||||
echo '%{python3} -c "import alembic.config; alembic.config.main()" $*' > bin/alembic
|
||||
chmod 0755 bin/alembic
|
||||
help2man --version-string %{version} --no-info -s 1 bin/alembic > alembic.1
|
||||
|
||||
@ -78,7 +75,7 @@ ln -s alembic-%{python3_version}.1 %{buildroot}%{_mandir}/man1/alembic.1
|
||||
|
||||
|
||||
%check
|
||||
py.test-3
|
||||
%pytest
|
||||
|
||||
|
||||
%files -n python3-%{modname}
|
||||
@ -97,6 +94,7 @@ py.test-3
|
||||
* Sat Feb 04 2023 Benjamin A. Beasley <code@musicinmybrain.net> - 1.8.1-3
|
||||
- Drop conditionals for EPEL8 (which has setuptools too old for this version
|
||||
anyway)
|
||||
- Drop obsolete spec file macros, and use appropriate newer ones
|
||||
|
||||
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.1-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||
|
Loading…
Reference in New Issue
Block a user