Compare commits
	
		
			No commits in common. "c8s-stream-rhel8" and "c8-stream-rhel8" have entirely different histories.
		
	
	
		
			c8s-stream
			...
			c8-stream-
		
	
		
							
								
								
									
										2
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							| @ -1 +1 @@ | |||||||
| SOURCES/lit-15.0.7.tar.gz | SOURCES/lit-18.1.8.tar.gz | ||||||
| @ -1 +1 @@ | |||||||
| 7ac9291376fcdf25330d3c1700b78f6a32be5803 SOURCES/lit-15.0.7.tar.gz | ce25d4b0b089e4751192d20c2e94421f1cd6ccd0 SOURCES/lit-18.1.8.tar.gz | ||||||
|  | |||||||
| @ -1,18 +1,39 @@ | |||||||
| %global lit_version 15.0.7 | %bcond_with snapshot_build | ||||||
| #global rc_ver 1 | 
 | ||||||
| #%%global post_ver 1 | %if %{with snapshot_build} | ||||||
|  | # Unlock LLVM Snapshot LUA functions | ||||||
|  | %{llvm_sb_verbose} | ||||||
|  | %{llvm_sb} | ||||||
|  | %endif | ||||||
|  | 
 | ||||||
|  | %global lit_version 18.1.8 | ||||||
|  | #global rc_ver 4 | ||||||
|  | #global post_ver 0 | ||||||
|  | 
 | ||||||
|  | %global python_lit_srcdir %{srcname}-%{version}%{?rc_ver:rc%{rc_ver}}%{?post_ver:.post%{post_ver}} | ||||||
|  | 
 | ||||||
|  | %if %{with snapshot_build} | ||||||
|  | %undefine rc_ver | ||||||
|  | %global lit_version %{llvm_snapshot_version} | ||||||
|  | %global python_lit_srcdir llvm-%{lit_version}.src/utils/lit | ||||||
|  | %endif | ||||||
| 
 | 
 | ||||||
| %bcond_without check | %bcond_without check | ||||||
| 
 | 
 | ||||||
| Name: python-lit | Name: python-lit | ||||||
| Version: %{lit_version}%{?rc_ver:~rc%{rc_ver}} | Version: %{lit_version}%{?rc_ver:~rc%{rc_ver}}%{?llvm_snapshot_version_suffix:~%{llvm_snapshot_version_suffix}} | ||||||
| Release: 1%{?dist} | Release: 1%{?dist} | ||||||
| BuildArch: noarch | BuildArch: noarch | ||||||
| 
 | 
 | ||||||
| License: NCSA | License: NCSA | ||||||
| Summary: Tool for executing llvm test suites | Summary: Tool for executing llvm test suites | ||||||
| URL: https://pypi.python.org/pypi/lit | URL: https://pypi.python.org/pypi/lit | ||||||
|  | %if %{without snapshot_build} | ||||||
| Source0: %{pypi_source lit %{lit_version}%{?rc_ver:rc%{rc_ver}}%{?post_ver:.post%{post_ver}}} | Source0: %{pypi_source lit %{lit_version}%{?rc_ver:rc%{rc_ver}}%{?post_ver:.post%{post_ver}}} | ||||||
|  | %else | ||||||
|  | Source0:  %{llvm_snapshot_source_prefix}llvm-%{llvm_snapshot_yyyymmdd}.src.tar.xz | ||||||
|  | %{llvm_snapshot_extra_source_tags} | ||||||
|  | %endif | ||||||
| 
 | 
 | ||||||
| # for file check | # for file check | ||||||
| %if %{with check} | %if %{with check} | ||||||
| @ -28,12 +49,17 @@ lit is a tool used by the LLVM project for executing its test suites. | |||||||
| Summary: LLVM lit test runner for Python 3 | Summary: LLVM lit test runner for Python 3 | ||||||
| 
 | 
 | ||||||
| Requires: python3-setuptools | Requires: python3-setuptools | ||||||
|  | Recommends: python3-psutil | ||||||
| 
 | 
 | ||||||
| %description -n python3-lit | %description -n python3-lit | ||||||
| lit is a tool used by the LLVM project for executing its test suites. | lit is a tool used by the LLVM project for executing its test suites. | ||||||
| 
 | 
 | ||||||
| %prep | %prep | ||||||
|  | %if %{with snapshot_build} | ||||||
|  | %autosetup -n %{python_lit_srcdir} -p4 | ||||||
|  | %else | ||||||
| %autosetup -n lit-%{lit_version}%{?rc_ver:rc%{rc_ver}}%{?post_ver:.post%{post_ver}} -p4 | %autosetup -n lit-%{lit_version}%{?rc_ver:rc%{rc_ver}}%{?post_ver:.post%{post_ver}} -p4 | ||||||
|  | %endif | ||||||
| 
 | 
 | ||||||
| %build | %build | ||||||
| %py3_build | %py3_build | ||||||
| @ -44,18 +70,36 @@ lit is a tool used by the LLVM project for executing its test suites. | |||||||
| # Strip out #!/usr/bin/env python | # Strip out #!/usr/bin/env python | ||||||
| sed -i -e '1{\@^#!/usr/bin/env python@d}' %{buildroot}%{python3_sitelib}/lit/*.py | sed -i -e '1{\@^#!/usr/bin/env python@d}' %{buildroot}%{python3_sitelib}/lit/*.py | ||||||
| 
 | 
 | ||||||
| %if %{with check} | %if %{with check} && %{without snapshot_build} | ||||||
| %check | %check | ||||||
| %{__python3} lit.py -v tests | %{__python3} lit.py -v tests | ||||||
| %endif | %endif | ||||||
| 
 | 
 | ||||||
| %files -n python3-lit | %files -n python3-lit | ||||||
| %license LICENSE.TXT | %license LICENSE.TXT | ||||||
| %doc README.txt | %doc README.rst | ||||||
| %{python3_sitelib}/* | %{python3_sitelib}/* | ||||||
| %{_bindir}/lit | %{_bindir}/lit | ||||||
| 
 | 
 | ||||||
| %changelog | %changelog | ||||||
|  | * Tue Jul 09 2024 Tom Stellard <tstellar@redhat.com> - 18.1.8-1 | ||||||
|  | - 18.1.8 Release | ||||||
|  | 
 | ||||||
|  | * Thu Mar 21 2024 Tom Stellard <tstellar@redhat.com> - 18.1.2-1 | ||||||
|  | - 18.1.2 Release | ||||||
|  | 
 | ||||||
|  | * Wed Nov 29 2023 Nikita Popov <npopov@redhat.com> - 17.0.6-1 | ||||||
|  | - Update to LLVM 17.0.6 | ||||||
|  | 
 | ||||||
|  | * Wed Oct 04 2023 Nikita Popov <npopov@redhat.com> - 17.0.2-1 | ||||||
|  | - Update to LLVM 17.0.2 | ||||||
|  | 
 | ||||||
|  | * Sat Jun 17 2023 Tom Stellard <tstellar@redhat.com> - 16.0.6-1 | ||||||
|  | - 16.0.6 Release | ||||||
|  | 
 | ||||||
|  | * Thu Apr 27 2023 Tom Stellard <tstellar@redhat.com> - 16.0.0-1 | ||||||
|  | - 16.0.0 Release | ||||||
|  | 
 | ||||||
| * Thu Jan 19 2023 Tom Stellard <tstellar@redhat.com> - 15.0.7-1 | * Thu Jan 19 2023 Tom Stellard <tstellar@redhat.com> - 15.0.7-1 | ||||||
| - Update to lit 15.0.7 | - Update to lit 15.0.7 | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user