Python 2 binary package renamed to python2-alembic
This commit is contained in:
parent
593ca4a2a8
commit
cd6b849e57
@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
Name: python-alembic
|
Name: python-alembic
|
||||||
Version: 0.9.1
|
Version: 0.9.1
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
Summary: Database migration tool for SQLAlchemy
|
Summary: Database migration tool for SQLAlchemy
|
||||||
|
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
@ -29,21 +29,14 @@ BuildRequires: python-mako
|
|||||||
BuildRequires: python-setuptools
|
BuildRequires: python-setuptools
|
||||||
BuildRequires: python-mock
|
BuildRequires: python-mock
|
||||||
|
|
||||||
Requires: python-mako
|
|
||||||
Requires: python-setuptools
|
|
||||||
Requires: python-editor
|
|
||||||
|
|
||||||
# See if we're building for python earlier than 2.7
|
# See if we're building for python earlier than 2.7
|
||||||
%if 0%{?rhel} && 0%{?rhel} <= 6
|
%if 0%{?rhel} && 0%{?rhel} <= 6
|
||||||
BuildRequires: python-sqlalchemy0.7 >= 0.7.4
|
BuildRequires: python-sqlalchemy0.7 >= 0.7.4
|
||||||
BuildRequires: python-argparse
|
BuildRequires: python-argparse
|
||||||
BuildRequires: python-nose1.1
|
BuildRequires: python-nose1.1
|
||||||
Requires: python-sqlalchemy0.7 >= 0.7.4
|
|
||||||
Requires: python-argparse
|
|
||||||
%else
|
%else
|
||||||
BuildRequires: python-nose
|
BuildRequires: python-nose
|
||||||
BuildRequires: python-sqlalchemy >= 0.7.4
|
BuildRequires: python-sqlalchemy >= 0.7.4
|
||||||
Requires: python-sqlalchemy >= 0.7.4
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# Just for the tests
|
# Just for the tests
|
||||||
@ -61,43 +54,51 @@ BuildRequires: python3-mock
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%description
|
%global _description\
|
||||||
Alembic is a new database migrations tool, written by the author of
|
Alembic is a new database migrations tool, written by the author of\
|
||||||
SQLAlchemy. A migrations tool offers the following functionality:
|
SQLAlchemy. A migrations tool offers the following functionality:\
|
||||||
|
\
|
||||||
* Can emit ALTER statements to a database in order to change the structure
|
* Can emit ALTER statements to a database in order to change the structure\
|
||||||
of tables and other constructs.
|
of tables and other constructs.\
|
||||||
* Provides a system whereby "migration scripts" may be constructed; each script
|
* Provides a system whereby "migration scripts" may be constructed; each script\
|
||||||
indicates a particular series of steps that can "upgrade" a target database
|
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"
|
to a new version, and optionally a series of steps that can "downgrade"\
|
||||||
similarly, doing the same steps in reverse.
|
similarly, doing the same steps in reverse.\
|
||||||
* Allows the scripts to execute in some sequential manner.
|
* Allows the scripts to execute in some sequential manner.\
|
||||||
|
\
|
||||||
Documentation and status of Alembic is at http://readthedocs.org/docs/alembic/
|
Documentation and status of Alembic is at http://readthedocs.org/docs/alembic/
|
||||||
|
|
||||||
|
%description %_description
|
||||||
|
|
||||||
|
%package -n python2-alembic
|
||||||
|
Summary: %summary
|
||||||
|
|
||||||
|
# See if we're building for python earlier than 2.7
|
||||||
|
%if 0%{?rhel} && 0%{?rhel} <= 6
|
||||||
|
Requires: python-sqlalchemy0.7 >= 0.7.4
|
||||||
|
Requires: python-argparse
|
||||||
|
%else
|
||||||
|
Requires: python-sqlalchemy >= 0.7.4
|
||||||
|
%endif
|
||||||
|
|
||||||
|
Requires: python-editor
|
||||||
|
Requires: python-setuptools
|
||||||
|
Requires: python-mako
|
||||||
|
%{?python_provide:%python_provide python2-alembic}
|
||||||
|
|
||||||
|
%description -n python2-alembic %_description
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
%if 0%{?with_python3}
|
||||||
%package -n python3-alembic
|
%package -n python3-alembic
|
||||||
Summary: A database migration tool for SQLAlchemy
|
Summary: %summary
|
||||||
Group: Development/Libraries
|
|
||||||
|
|
||||||
Requires: python3-sqlalchemy >= 0.7.4
|
Requires: python3-sqlalchemy >= 0.7.4
|
||||||
Requires: python3-mako
|
Requires: python3-mako
|
||||||
Requires: python3-setuptools
|
Requires: python3-setuptools
|
||||||
Requires: python3-editor
|
Requires: python3-editor
|
||||||
|
%{?python_provide:%python_provide python3-alembic}
|
||||||
|
|
||||||
%description -n python3-alembic
|
%description -n python3-alembic %_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/
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
@ -181,7 +182,7 @@ install -m 0644 alembic.1 %{buildroot}%{_mandir}/man1/alembic.1
|
|||||||
#%endif
|
#%endif
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files -n python2-alembic
|
||||||
%doc README.rst LICENSE CHANGES docs
|
%doc README.rst LICENSE CHANGES docs
|
||||||
%{python2_sitelib}/%{modname}/
|
%{python2_sitelib}/%{modname}/
|
||||||
%{python2_sitelib}/%{modname}-%{version}*
|
%{python2_sitelib}/%{modname}-%{version}*
|
||||||
@ -203,6 +204,10 @@ install -m 0644 alembic.1 %{buildroot}%{_mandir}/man1/alembic.1
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Aug 08 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.9.1-3
|
||||||
|
- Python 2 binary package renamed to python2-alembic
|
||||||
|
See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
|
||||||
|
|
||||||
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.1-2
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.1-2
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user