Add support for building from git snapshots for packit
This commit is contained in:
		
							parent
							
								
									d57538e7d2
								
							
						
					
					
						commit
						1b69c1e456
					
				| @ -41,6 +41,10 @@ BuildRequires:  elfutils-devel | |||||||
| BuildRequires:  libkdumpfile-devel | BuildRequires:  libkdumpfile-devel | ||||||
| BuildRequires:  zlib-devel | BuildRequires:  zlib-devel | ||||||
| BuildRequires:  xz-devel | BuildRequires:  xz-devel | ||||||
|  | # These are needed when building from git snapshots | ||||||
|  | BuildRequires:  autoconf | ||||||
|  | BuildRequires:  automake | ||||||
|  | BuildRequires:  libtool | ||||||
| 
 | 
 | ||||||
| %description %{_description} | %description %{_description} | ||||||
| 
 | 
 | ||||||
| @ -70,6 +74,10 @@ sed -r \ | |||||||
|     -e 's|https://docs.python.org/3|%{_docdir}/python3-docs/html|' \ |     -e 's|https://docs.python.org/3|%{_docdir}/python3-docs/html|' \ | ||||||
|     -i docs/conf.py |     -i docs/conf.py | ||||||
| %endif | %endif | ||||||
|  | # Ensure version is always set, even when building from git snapshots | ||||||
|  | if [ ! -f drgn/internal/version.py ]; then | ||||||
|  |   echo '__version__ = "%{version}"' > drgn/internal/version.py | ||||||
|  | fi | ||||||
| 
 | 
 | ||||||
| %build | %build | ||||||
| # verbose build | # verbose build | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user