From 766d6d7f41660d92025bf65eac379d26a615adfc Mon Sep 17 00:00:00 2001 From: rdobuilder Date: Feb 05 2024 12:39:00 +0000 Subject: Update to 1.4.51 Related-to: https://review.rdoproject.org/r/q/I8f1b8064c84ecf21662e3671a31983203c45a47c --- diff --git a/.python-sqlalchemy.metadata b/.python-sqlalchemy.metadata index ac3e837..98f5208 100644 --- a/.python-sqlalchemy.metadata +++ b/.python-sqlalchemy.metadata @@ -1 +1 @@ -5dbf0699e958e06ed330268154d418ecf1f187e5 SOURCES/SQLAlchemy-1.4.50.tar.gz +2834399f23fcd3530cc08d79904447c5b1176416 SOURCES/SQLAlchemy-1.4.51.tar.gz diff --git a/SPECS/python-sqlalchemy.spec b/SPECS/python-sqlalchemy.spec index c5b66bf..434bf72 100644 --- a/SPECS/python-sqlalchemy.spec +++ b/SPECS/python-sqlalchemy.spec @@ -2,7 +2,7 @@ ## (rpmautospec version 0.5.1) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: - release_number = 3; + release_number = 2; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} @@ -26,7 +26,7 @@ aiosqlite Name: python-sqlalchemy -Version: 1.4.50 +Version: 1.4.51 # cope with pre-release versions containing tildes %global srcversion %{lua: srcversion, num = rpm.expand("%{version}"):gsub("~", ""); print(srcversion);} Release: %autorelease @@ -36,6 +36,8 @@ License: MIT URL: https://www.sqlalchemy.org/ Source0: %{pypi_source %{srcname} %{srcversion}} +BuildRequires: coreutils +BuildRequires: findutils BuildRequires: gcc BuildRequires: python3-devel >= 3.6 BuildRequires: python3-greenlet >= 1.0 @@ -86,8 +88,23 @@ Documentation for SQLAlchemy. %install %py3_install +install -d %{buildroot}%{_pkgdocdir} +cp -a doc %{buildroot}%{_pkgdocdir}/ # remove unnecessary scripts for building documentation -rm -rf doc/build +rm -rf %{buildroot}%{_pkgdocdir}/doc/build +find %{buildroot}%{_pkgdocdir}/doc | while read long; do + short="${long#%{buildroot}}" + if [ -d "$long" ]; then + echo "%%doc %%dir $short" + else + if [ "$short" != "${short/copyright/}" ]; then + echo "%%license $short" + else + echo "%%doc $short" + fi + fi +done > doc-files.txt + %check %pytest test \ @@ -96,8 +113,8 @@ rm -rf doc/build %endif -%files doc -%doc doc examples +%files doc -f doc-files.txt +%doc examples %files -n python3-sqlalchemy %license LICENSE @@ -107,6 +124,12 @@ rm -rf doc/build %changelog ## START: Generated by rpmautospec +* Fri Jan 26 2024 Fedora Release Engineering - 1.4.51-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jan 19 2024 Nils Philippsen - 1.4.51-1 +- Update to 1.4.51 + * Thu Jan 18 2024 Nils Philippsen - 1.4.50-3 - Reintroduce aiomysql version requirement