From 52325fb8c0f0c5368bedf4b49d7252e82946fe54 Mon Sep 17 00:00:00 2001 From: Troy Dawson Date: Wed, 14 Oct 2020 16:47:36 -0700 Subject: [PATCH] RHEL 9.0.0 Alpha bootstrap The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/python-alembic#f7f8044ee3ad42f83cae494dc87e1d35fb413e80 --- .build-0.7.6-1.fc23.log | 7 ++ .gitignore | 30 +++++++ python-alembic.spec | 194 ++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 232 insertions(+) create mode 100644 .build-0.7.6-1.fc23.log create mode 100644 python-alembic.spec create mode 100644 sources diff --git a/.build-0.7.6-1.fc23.log b/.build-0.7.6-1.fc23.log new file mode 100644 index 0000000..9072654 --- /dev/null +++ b/.build-0.7.6-1.fc23.log @@ -0,0 +1,7 @@ +error: Failed build dependencies: + help2man is needed by python-alembic-0.7.6-1.fc23.noarch + python-mock is needed by python-alembic-0.7.6-1.fc23.noarch + python3-mock is needed by python-alembic-0.7.6-1.fc23.noarch + python3-sqlalchemy >= 0.7.4 is needed by python-alembic-0.7.6-1.fc23.noarch + + diff --git a/.gitignore b/.gitignore index e69de29..0f1feca 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,30 @@ +/alembic-0.3.4.tar.gz +/alembic-0.4.2.tar.gz +/alembic-0.5.0.tar.gz +/alembic-0.6.2.tar.gz +/alembic-0.6.3.tar.gz +/alembic-0.6.5.tar.gz +/alembic-0.6.6.tar.gz +/alembic-0.7.4.tar.gz +/alembic-0.7.6.tar.gz +/alembic-0.8.2.tar.gz +/alembic-0.8.3.tar.gz +/alembic-0.8.5.tar.gz +/alembic-0.8.6.tar.gz +/alembic-0.8.7.tar.gz +/alembic-0.8.8.tar.gz +/alembic-0.8.9.tar.gz +/alembic-0.8.10.tar.gz +/alembic-0.9.0.tar.gz +/alembic-0.9.1.tar.gz +/alembic-0.9.7.tar.gz +/alembic-1.0.0.tar.gz +/alembic-1.0.7.tar.gz +/alembic-1.0.8.tar.gz +/alembic-1.0.10.tar.gz +/alembic-1.0.11.tar.gz +/alembic-1.1.0.tar.gz +/alembic-1.2.1.tar.gz +/alembic-1.3.1.tar.gz +/alembic-1.4.0.tar.gz +/alembic-1.4.2.tar.gz diff --git a/python-alembic.spec b/python-alembic.spec new file mode 100644 index 0000000..fe349b0 --- /dev/null +++ b/python-alembic.spec @@ -0,0 +1,194 @@ +%global modname alembic + +Name: python-alembic +Version: 1.4.2 +Release: 5%{?dist} +Summary: Database migration tool for SQLAlchemy + +License: MIT +URL: https://pypi.io/project/alembic +Source0: %pypi_source alembic + +BuildArch: noarch + +BuildRequires: help2man + +BuildRequires: python3-devel +BuildRequires: python3-sqlalchemy >= 1.1 +BuildRequires: python3-mako +BuildRequires: python3-nose +BuildRequires: python3-setuptools +BuildRequires: python3-mock +BuildRequires: python3-dateutil +BuildRequires: python3-editor +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/ + +%description %_description + + +%package -n python3-alembic +Summary: %summary + +Requires: python3-sqlalchemy >= 1.1 +Requires: python3-mako +Requires: python3-setuptools +Requires: python3-editor +Requires: python3-dateutil +%{?python_provide:%python_provide python3-alembic} + + +%description -n python3-alembic %_description + +%prep +%autosetup -p1 -n %{modname}-%{version} + + +%build +%py3_build + +%{__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 + + +%install + +install -d -m 0755 %{buildroot}%{_mandir}/man1 + +%py3_install +mv %{buildroot}/%{_bindir}/%{modname} %{buildroot}/%{_bindir}/%{modname}-3 +ln -s %{modname}-3 %{buildroot}/%{_bindir}/%{modname}-%{python3_version} +install -m 0644 alembic.1 %{buildroot}%{_mandir}/man1/alembic-3.1 +ln -s alembic-3.1 %{buildroot}%{_mandir}/man1/alembic-%{python3_version}.1 + +ln -s %{modname}-%{python3_version} %{buildroot}/%{_bindir}/%{modname} +ln -s alembic-%{python3_version}.1 %{buildroot}%{_mandir}/man1/alembic.1 + + +%check +py.test-3 + + +%files -n python3-%{modname} +%doc LICENSE README.rst CHANGES docs +%{python3_sitelib}/%{modname}/ +%{python3_sitelib}/%{modname}-%{version}-* +%{_bindir}/%{modname} +%{_mandir}/man1/alembic.1* +%{_bindir}/%{modname}-3 +%{_bindir}/%{modname}-%{python3_version} +%{_mandir}/man1/alembic-3.1* +%{_mandir}/man1/alembic-%{python3_version}.1* + + +%changelog +* Thu Aug 20 2020 Merlin Mathesius - 1.4.2-5 +- Correct macro usage to fix Rawhide and ELN FTBFS errors + +* Sat Aug 01 2020 Fedora Release Engineering - 1.4.2-4 +- Second attempt - Rebuilt for + https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue Jul 28 2020 Fedora Release Engineering - 1.4.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Sun May 24 2020 Miro Hrončok - 1.4.2-2 +- Rebuilt for Python 3.9 + +* Sun Mar 22 2020 Carl George - 1.4.2-1 +- Latest upstream rhbz#1808866 + +* Wed Feb 19 2020 Randy Barlow - 1.4.0-1 +- Update to 1.4.0 (#1784129). +- https://alembic.sqlalchemy.org/en/latest/changelog.html#change-1.4.0 + +* Thu Jan 30 2020 Fedora Release Engineering - 1.3.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Mon Nov 18 2019 Randy Barlow - 1.3.1-1 +- Update to 1.3.1 (#1767518). +- https://alembic.sqlalchemy.org/en/latest/changelog.html#change-1.3.1 + +* Fri Sep 27 2019 Randy Barlow - 1.2.1-1 +- Update to 1.2.1 (#1754016). +- https://alembic.sqlalchemy.org/en/latest/changelog.html#change-1.2.1 + +* Tue Sep 17 2019 Randy Barlow - 1.1.0-2 +- Drop python2-alembic (#1751088). + +* Tue Sep 03 2019 Randy Barlow - 1.1.0-1 +- Upgrade to 1.1.0 (#1747053). +- https://alembic.sqlalchemy.org/en/latest/changelog.html#change-1.1.0 + +* Sun Aug 18 2019 Miro Hrončok - 1.0.11-3 +- Rebuilt for Python 3.8 + +* Mon Jul 22 2019 Petr Viktorin - 1.0.11-2 +- Make /usr/bin/alembic point to alembic-3 on Fedora 31+ + See https://fedoraproject.org/wiki/Changes/Python_means_Python3 +- Avoid absolute symlinks +- Conditionalize the Python 2/Python 3 parts with bcond + +* Sun Jun 30 2019 Kevin Fenzi - 1.0.11-1 +- Update to 1.0.11. Fixes bug #1723981 + +* Wed Jun 19 2019 Troy Dawson - 1.0.10-1.1 +- Make python2 optional +- Do not build python2 on RHEL8 + +* Wed Jun 05 2019 Randy Barlow - 1.0.10-1 +- Update to 1.0.10 (#1700050). +- https://alembic.sqlalchemy.org/en/latest/changelog.html#change-1.0.10 + +* Thu Mar 28 2019 Randy Barlow - 1.0.8-1 +- Update to 1.0.8 (#1685262). +- https://alembic.sqlalchemy.org/en/latest/changelog.html#change-1.0.8 + +* Tue Feb 05 2019 Alfredo Moralejo - 1.0.7-1 +- Update to 1.0.7 + +* Sat Feb 02 2019 Fedora Release Engineering - 1.0.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Wed Jul 25 2018 Pierre-Yves Chibon - 1.0.0-1 +- Update to 1.0.0 + +* Fri Jul 13 2018 Fedora Release Engineering - 0.9.7-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Tue Jun 19 2018 Miro Hrončok - 0.9.7-6 +- Rebuilt for Python 3.7 + +* Sun Jun 17 2018 Miro Hrončok - 0.9.7-5 +- Rebuilt for Python 3.7 + +* Wed Feb 21 2018 Iryna Shcherbina - 0.9.7-4 +- Update Python 2 dependency declarations to new packaging standards + (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) + +* Thu Feb 08 2018 Randy Barlow - 0.9.7-3 +- The python3-alembic package now provides only alembic-3 and alembic-3.y. +- The python2-alembic package now provides alembic, alembic-2, and alembic-2.y. + +* Sat Jan 27 2018 Ralph Bean - 0.9.7-2 +- The python3-alembic package now provides the alembic executable. + +* Thu Jan 18 2018 Ralph Bean - 0.9.7-1 +- new version +- New dependency on python-dateutil. diff --git a/sources b/sources new file mode 100644 index 0000000..bd1213c --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (alembic-1.4.2.tar.gz) = 82bdfe442c19033aa2b802ec49edd13ed265c00a2b5a048490a83ffa8e53587c56a90b64d554e746a9189923419c528482cb7a7c950c210e0de47b32fa7c270e