From 89f260971e82c2b928e9bb7d155362ae192d6819 Mon Sep 17 00:00:00 2001 From: Miro Hrončok Date: Jan 04 2019 14:50:51 +0000 Subject: Subpackage python2-migrate has been removed --- diff --git a/python-migrate.spec b/python-migrate.spec index b151b9e..5dcc6df 100644 --- a/python-migrate.spec +++ b/python-migrate.spec @@ -1,14 +1,12 @@ %global srcname sqlalchemy-migrate -%{!?python2_shortver: %global python2_shortver %(%{__python2} -c 'import sys; print(str(sys.version_info.major) + "." + str(sys.version_info.minor))')} %if 0%{?fedora} -%global with_python3 1 %{!?python3_shortver: %global python3_shortver %(%{__python3} -c 'import sys; print(str(sys.version_info.major) + "." + str(sys.version_info.minor))')} %endif Name: python-migrate Version: 0.11.0 -Release: 9%{?dist} +Release: 10%{?dist} Summary: Schema migration tools for SQLAlchemy License: MIT @@ -18,24 +16,6 @@ Source0: https://pypi.io/packages/source/s/%{srcname}/%{srcname}-%{version}.tar. Patch100: python-migrate-sqlalchemy-migrate.patch BuildArch: noarch -BuildRequires: python2-devel -BuildRequires: python2-sqlalchemy >= 0.7.8 -BuildRequires: python2-setuptools -BuildRequires: python2-nose -BuildRequires: python2-sphinx -BuildRequires: python2-decorator -BuildRequires: python2-tempita >= 0.4 -BuildRequires: python2-pbr >= 1.3.0 -BuildRequires: python2-six >= 1.9.0 -BuildRequires: python2-sqlparse - -# for testsuite -BuildRequires: python2-scripttest -BuildRequires: python2-testtools - -%if 0%{?rhel} && 0%{?rhel} < 7 -BuildRequires: python-unittest2 -%endif %global _description\ Schema migration tools for SQLAlchemy designed to support an agile approach\ @@ -45,20 +25,6 @@ database change sets and database repository versioning. %description %_description -%package -n python2-migrate -Summary: %summary -Requires: python2-sqlalchemy >= 0.7.8 -Requires: python2-setuptools -Requires: python2-decorator -Requires: python2-tempita >= 0.4 -Requires: python2-pbr >= 1.3.0 -Requires: python2-six >= 1.9.0 -Requires: python2-sqlparse -%{?python_provide:%python_provide python2-migrate} - -%description -n python2-migrate %_description - -%if 0%{?with_python3} %package -n python3-migrate Summary: Schema migration tools for SQLAlchemy @@ -86,7 +52,6 @@ Schema migration tools for SQLAlchemy designed to support an agile approach to database design and make it easier to keep development and production databases in sync as schema changes are required. It allows you to manage database change sets and database repository versioning. -%endif %prep %setup -q -n %{srcname}-%{version} @@ -100,34 +65,10 @@ sed -i "s/import unittest2/import unittest as unittest2/g" \ %endif %build -%py2_build -%if 0%{?with_python3} %py3_build -%endif %install -%if 0%{?with_python3} %py3_install -for bin in sqlalchemy-migrate{,-repository}; do - mv %{buildroot}/%{_bindir}/$bin %{buildroot}/%{_bindir}/python3-$bin -done -%endif -%py2_install - -# rename binaries, make compat symlinks -pushd %{buildroot}%{_bindir} -for bin in sqlalchemy-migrate{,-repository}; do - ln -s $bin $bin-2 - ln -s $bin $bin-%{python2_shortver} -done - -%if 0%{?with_python3} -for bin in sqlalchemy-migrate{,-repository}; do - ln -s python3-$bin $bin-3 - ln -s python3-$bin $bin-%{python3_shortver} -done -%endif -popd %check # Need to set PATH for two reasons: @@ -141,27 +82,19 @@ export PYTHONPATH echo 'sqlite:///__tmp__' > test_db.cfg # Disable temporarily until tests are adjusted to support testtools >= 0.9.36 -#nosetests +#nosetests-3 -%files -n python2-migrate +%files -n python3-migrate %doc README.rst doc/ %{_bindir}/sqlalchemy-migrate %{_bindir}/sqlalchemy-migrate-repository -%{_bindir}/sqlalchemy-migrate-2* -%{_bindir}/sqlalchemy-migrate-repository-2* -%{python2_sitelib}/* - -%if 0%{?with_python3} -%files -n python3-migrate -%doc README.rst doc/ -%{_bindir}/python3-sqlalchemy-migrate -%{_bindir}/python3-sqlalchemy-migrate-repository -%{_bindir}/sqlalchemy-migrate-3* -%{_bindir}/sqlalchemy-migrate-repository-3* %{python3_sitelib}/* -%endif %changelog +* Fri Jan 04 2019 Miro Hrončok - 0.11.0-10 +- Subpackage python2-migrate has been removed + See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal + * Sat Jul 14 2018 Fedora Release Engineering - 0.11.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild