Don’t build asyncmy extra package on x86 (32bit)
Signed-off-by: Nils Philippsen <nils@tiptoe.de>
This commit is contained in:
		
							parent
							
								
									201a78975d
								
							
						
					
					
						commit
						71b1cf9e3b
					
				| @ -1,5 +1,13 @@ | ||||
| # Mypy plugin is deprecated in 2.0. mypy is not in RHEL. | ||||
| %bcond mypy %{undefined rhel} | ||||
| 
 | ||||
| # The asyncmy Python package isn’t available in x86 (32bit) | ||||
| %ifnarch %ix86 | ||||
| %bcond asyncmy 1 | ||||
| %else | ||||
| %bcond asyncmy 0 | ||||
| %endif | ||||
| 
 | ||||
| # Tests crash when being run by pytest-xdist | ||||
| %bcond xdist 0 | ||||
| 
 | ||||
| @ -20,7 +28,7 @@ | ||||
|     aiomysql \ | ||||
|     aioodbc \ | ||||
|     aiosqlite \ | ||||
|     asyncmy | ||||
|     %{?with_asyncmy:asyncmy} | ||||
| 
 | ||||
| Name:           python-%{canonicalname} | ||||
| Version:        2.0.26 | ||||
| @ -57,6 +65,9 @@ domain. | ||||
| 
 | ||||
| %package -n python3-sqlalchemy | ||||
| Summary:        %{summary} | ||||
| %if %{without asyncmy} | ||||
| Obsoletes:      python3-sqlalchemy+asyncmy < %{version}-%{release} | ||||
| %endif | ||||
| 
 | ||||
| %description -n python3-sqlalchemy | ||||
| SQLAlchemy is an Object Relational Mapper (ORM) that provides a flexible, | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user