Compare commits

...
Sign in to create a new pull request.

11 commits

Author SHA1 Message Date
Tom Stellard
d87f9f3ebc packit: Use a temp dir for building the tarball
This was recommended in https://github.com/packit/packit-service/issues/2917#issuecomment-3718354275
in order to avoid running out of disk space on the packit machines.
2026-01-09 03:50:11 +00:00
Tom Stellard
673da0af20 Update to LLVM 21.1.8 2025-12-24 06:02:20 +00:00
Tom Stellard
45ad06554b Revert last two commits
These were accidentally pushed while testing packit.

This reverts commit 73609eba25.
This reverts commit 56646d19d6.
2025-12-16 23:05:42 +00:00
Tom Stellard
73609eba25 Update to 21.1.8 upstream release
- Resolves: rhbz#2422639

Commit authored by Packit automation (https://packit.dev/)
2025-12-16 22:57:21 +00:00
Tom Stellard
56646d19d6 Update to 21.1.8 upstream release
- Resolves: rhbz#2422639

Commit authored by Packit automation (https://packit.dev/)
2025-12-16 22:25:25 +00:00
Tom Stellard
24ea7850f4 Update to LLVM 21.1.7 2025-12-06 16:29:01 +00:00
Tom Stellard
98c82d1ed1 Update to LLVM 21.1.6 2025-11-20 16:49:01 +00:00
Konrad Kleine
308ad2f18d First remove left-overs and then build artifact
Otherwise the just built tarball would have been removed.

[skip changelog]
2025-11-13 11:55:06 +01:00
Konrad Kleine
a7c8015ab9 Prepare sources
This fixes and error when generating the SRPM for a snapshot.

The sources need to be retrieved and modified before packaging them.
This change does just that and turns on the `snapshot_build` build
condition with a define.

[skip changelog]
2025-11-13 09:58:19 +01:00
Konrad Kleine
0122d5398c Add snapshot build support and %autorelease + %autochangelog
When snapshot mode is enabled we download a daily txt file from github that looks like this:

```
%global llvm_test_suite_version 22.0.0
%global llvm_test_suite_date 20251109
%global llvm_test_suite_git_revision f302e7778e4a0bb58b40a3b0cabde719e33fb55e
%global llvm_test_suite_git_revision_short f302e7778e4a0b
%{error: No need to build today. llvm-test-suite's git revision (f302e7778e4a0b) and the LLVM version (22.0.0) were the same yesterday.}
```

We store it into `version.spec.inc`. The last line exists only in the case when we don't want to build another snapshot. The SRPM generation then automatically stops because in the Makefile we evaluate the `versions.spec.inc`. If we don't have this step, then fedpkg will fall back to download the release version:

```
Parsing specfile for used sources failed. Falling back to downloading all sources.
Downloading test-suite-21.1.4.src.fedora.tar.xz from https://src.fedoraproject.org/repo/pkgs
```

**Some changes in this PR:**

- When `snapshot_build` is enabled, automatically fetch the latest commit hash from upstream main branch using GitHub API
- Snapshot builds must be explicitly enabled with `--with snapshot_build`
- Replace `Release` field with `%autorelease`
- Replace `%changelog` section with `%autochangelog`
- Add fallback to include `changelog` file if `%autochangelog` is not defined
- Extract all existing changelog entries to separate `changelog` file
- Add `Source3` for the `changelog` file with `%{_sourcedir}` prefix
- Add `Source1000` for the `version.spec.inc` file with `%{_sourcedir}` prefix

This PR depends on https://github.com/fedora-llvm-team/llvm-snapshots/pull/1759 to be merged first. Ideally, this PR should be merged a few days later. Then we don't need to generate release assets for the [llvm-test-suite-version-sync](https://github.com/fedora-llvm-team/llvm-snapshots/releases/tag/llvm-test-suite-version-sync) release manually.

This PR is based on @nikic's work here:

https://src.fedoraproject.org/fork/nikic/rpms/llvm-test-suite/tree/upstream-snapshot
2025-11-12 12:52:08 +01:00
Tom Stellard
7fdcb23ab8 Update to LLVM 21.1.5 2025-11-06 19:19:13 +00:00
8 changed files with 467 additions and 364 deletions

39
.copr/Makefile Normal file
View file

@ -0,0 +1,39 @@
# See https://docs.pagure.org/copr.copr/user_documentation.html#make-srpm
# See for the --setopt option in the enabling of copr repo see:
# https://pagure.io/copr/copr/issue/184
COPR_USERNAME=$(shell rpm --eval %copr_username)
COPR_PROJECT=$(shell rpm --eval %copr_projectname)
YYYYMMDD=$(shell date +%Y%m%d)
required_packages=git tar xz curl fedpkg rpmautospec
outdir?=$(shell pwd)
spec?=llvm-test-suite.spec
.PHONY: srpm
srpm:
@echo "Check for required packages needed by snapshot-info.sh: $(required_packages)"
rpm -q $(required_packages) || dnf install -y $(required_packages) --setopt=install_weak_deps=False
@echo "Fetch information about today's snapshot"
YYYYMMDD=$(YYYYMMDD) ./.copr/snapshot-info.sh > version.spec.inc
@echo "Test that we wanna build a snapshot today by parsing the versions.spec.inc"
rpm --eval="$$(cat version.spec.inc)"
@echo "Remove left-over llvm-test-suite tarball and signature"
rm -vf $(shell pwd)/llvm-test-suite-*.tar.xz*
@echo "Prepare sources"
SNAPSHOT_BUILD=1 ./pkg_test_suite.sh
@echo "Preprocess for rpmautospec"
rpmautospec process-distgit $(spec) $(spec)
@echo "Finally build SRPM"
rpmbuild \
--with=snapshot_build \
--define "_srcrpmdir $(outdir)" \
--define "_sourcedir $(shell pwd)" \
--define "_disable_source_fetch 0" \
-bs $(spec)

16
.copr/snapshot-info.sh Executable file
View file

@ -0,0 +1,16 @@
#!/usr/bin/bash
set -ex
function loginfo() {
local msg=$1
>&2 echo "[INFO]" $msg
}
loginfo "Determine date in YYYYMMDD form"
llvm_snapshot_yyyymmdd=$(date +%Y%m%d)
[[ ! -z "${YYYYMMDD}" ]] && llvm_snapshot_yyyymmdd=$YYYYMMDD
version_url=https://github.com/fedora-llvm-team/llvm-snapshots/releases/download/llvm-test-suite-version-sync/llvm-test-suite-version-${llvm_snapshot_yyyymmdd}.txt
loginfo "Get the revision for today from $version_url"
curl -sLf $version_url

5
.gitignore vendored
View file

@ -1,3 +1,4 @@
version.spec.inc
/test-suite-7.0.1rc2.src.fedora.tar.xz
/test-suite-7.0.1.src.fedora.tar.xz
/test-suite-8.0.0rc1.src.fedora.tar.xz
@ -93,3 +94,7 @@
/test-suite-21.1.2.src.fedora.tar.xz
/test-suite-21.1.3.src.fedora.tar.xz
/test-suite-21.1.4.src.fedora.tar.xz
/test-suite-21.1.5.src.fedora.tar.xz
/test-suite-21.1.6.src.fedora.tar.xz
/test-suite-21.1.7.src.fedora.tar.xz
/test-suite-21.1.8.src.fedora.tar.xz

View file

@ -19,9 +19,14 @@ create_sync_note: false
actions:
prepare-files:
- bash -c "cp $PACKIT_DOWNSTREAM_REPO/llvm-test-suite.spec $PACKIT_DOWNSTREAM_REPO/release-keys.asc $PACKIT_DOWNSTREAM_REPO/pkg_test_suite.sh ."
- bash -c "./pkg_test_suite.sh $PACKIT_PROJECT_VERSION"
- bash -c "mv test-suite-$PACKIT_PROJECT_VERSION.src.fedora.tar.xz $PACKIT_DOWNSTREAM_REPO/"
- >-
bash -c "pushd $(mktemp -d); \
cp $PACKIT_DOWNSTREAM_REPO/llvm-test-suite.spec \
$PACKIT_DOWNSTREAM_REPO/release-keys.asc \
$PACKIT_DOWNSTREAM_REPO/pkg_test_suite.sh \
.; \
./pkg_test_suite.sh $PACKIT_PROJECT_VERSION; \
mv test-suite-$PACKIT_PROJECT_VERSION.src.fedora.tar.xz $PACKIT_DOWNSTREAM_REPO;"
jobs:
- job: pull_from_upstream

353
changelog Normal file
View file

@ -0,0 +1,353 @@
* Thu Nov 06 2025 Tom Stellard <tstellar@redhat.com> - 21.1.5-1
- Update to LLVM 21.1.5
* Fri Oct 24 2025 Tom Stellard <tstellar@redhat.com> - 21.1.4-1
- Update to LLVM 21.1.4
* Sat Oct 11 2025 Tom Stellard <tstellar@redhat.com> - 21.1.3-1
- Update to LLVM 21.1.3
* Thu Sep 25 2025 Tom Stellard <tstellar@redhat.com> - 21.1.2-1
- Update to LLVM 21.1.2
* Thu Sep 11 2025 Tom Stellard <tstellar@redhat.com> - 21.1.1-1
- Update to LLVM 21.1.1
* Thu Aug 28 2025 Tom Stellard <tstellar@redhat.com> - 21.1.0-1
- Update to LLVM 21.1.0
* Thu Jul 24 2025 Fedora Release Engineering <releng@fedoraproject.org> - 20.1.8-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
* Thu Jul 10 2025 Nikita Popov <npopov@redhat.com> - 20.1.8-1
- Update to LLVM 20.1.8
* Fri Jun 20 2025 Nikita Popov <npopov@redhat.com> - 20.1.7-1
- Update to LLVM 20.1.7
* Mon Jun 02 2025 Nikita Popov <npopov@redhat.com> - 20.1.6-1
- Update to LLVM 20.1.6
* Mon May 26 2025 Nikita Popov <npopov@redhat.com> - 20.1.5-1
- Update to LLVM 20.1.5
* Tue Apr 22 2025 Nikita Popov <npopov@redhat.com> - 20.1.3-1
- Update to LLVM 20.1.3
* Thu Apr 03 2025 Nikita Popov <npopov@redhat.com> - 20.1.2-1
- Update to LLVM 20.1.2
* Thu Mar 20 2025 Nikita Popov <npopov@redhat.com> - 20.1.1-1
- Update to LLVM 20.1.1
* Wed Mar 05 2025 Nikita Popov <npopov@redhat.com> - 20.1.0-1
- Update to LLVM 20.1.0
* Fri Jan 24 2025 Timm Bäder <tbaeder@redhat.com> - 19.1.7-2
- Backport upstream patch to fix typedef bool error with GCC 15
* Wed Jan 22 2025 Timm Bäder <tbaeder@redhat.com> - 19.1.7-1
- Update to 19.1.7
* Fri Jan 17 2025 Fedora Release Engineering <releng@fedoraproject.org> - 19.1.6-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
* Thu Jan 02 2025 Timm Bäder <tbaeder@redhat.com> - 19.1.6-1
- Update to 19.1.6
* Fri Dec 06 2024 Timm Bäder <tbaeder@redhat.com> - 19.1.5-1
- Update to 19.1.5
* Mon Nov 25 2024 Timm Bäder <tbaeder@redhat.com> - 19.1.4-1
- Update to 19.1.4
* Fri Nov 08 2024 Timm Bäder <tbaeder@redhat.com> - 19.1.3-1
- Update to 19.1.3
* Tue Oct 15 2024 Konrad Kleine <kkleine@redhat.com> - 19.1.0-3
- Remove MultiSource/Applications/ClamAV directory because of viruses in input files
* Wed Oct 09 2024 Konrad Kleine <kkleine@redhat.com> - 19.1.0-2
- Remove broken links in source tarball
* Thu Sep 19 2024 Timm Bäder <tbaeder@redhat.com> - 19.1.0-1
- Update to 19.1.0
* Tue Sep 17 2024 Timm Bäder <tbaeder@redhat.com> - 19.1.0~rc4-1
- Update to 19.1.0-rc4
* Mon Sep 02 2024 Miroslav Suchý <msuchy@redhat.com> - 18.1.8-3
- convert license to SPDX
* Thu Jul 18 2024 Fedora Release Engineering <releng@fedoraproject.org> - 18.1.8-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Fri Jul 12 2024 Jesus Checa Hidalgo <jchecahi@redhat.com> - 18.1.8-1
- 18.1.8 Release
* Fri Jun 14 2024 Tom Stellard <tstellar@redhat.com> - 18.1.7-1
- 18.1.7 Release
* Tue May 21 2024 Tom Stellard <tstellar@redhat.com> - 18.1.6-1
- 18.1.6 Release
* Sat May 04 2024 Tom Stellard <tstellar@redhat.com> - 18.1.4-1
- 18.1.4 Release
* Wed Apr 17 2024 Tom Stellard <tstellar@redhat.com> - 18.1.3-1
- 18.1.3 Release
* Fri Mar 22 2024 Tom Stellard <tstellar@redhat.com> - 18.1.2-1
- 18.1.2 Release
* Wed Mar 13 2024 Tom Stellard <tstellar@redhat.com> - 18.1.1-1
- 18.1.1 Release
* Thu Feb 29 2024 Tom Stellard <tstellar@redhat.com> - 18.1.0~rc4-1
- 18.1.0-rc4 Release
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 17.0.6-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 17.0.6-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Tue Nov 28 2023 Tulio Magno Quites Machado Filho <tuliom@redhat.com> - 17.0.6-1
- Update to LLVM 17.0.6
* Thu Nov 16 2023 Tulio Magno Quites Machado Filho <tuliom@redhat.com> - 17.0.5-1
- Update to LLVM 17.0.5
* Wed Nov 01 2023 Tulio Magno Quites Machado Filho <tuliom@redhat.com> - 17.0.4-1
- Update to LLVM 17.0.4
* Tue Oct 17 2023 Tulio Magno Quites Machado Filho <tuliom@redhat.com> - 17.0.3-1
- Update to LLVM 17.0.3
* Tue Oct 03 2023 Tulio Magno Quites Machado Filho <tuliom@redhat.com> - 17.0.2-1
- Update to LLVM 17.0.2
* Sat Sep 23 2023 Tulio Magno Quites Machado Filho <tuliom@redhat.com> - 17.0.1-1
- Update to LLVM 17.0.1
* Fri Sep 08 2023 Tulio Magno Quites Machado Filho <tuliom@redhat.com> - 17.0.0~rc4-1
- Update to LLVM 17.0.0 RC4
* Thu Aug 24 2023 Tulio Magno Quites Machado Filho <tuliom@redhat.com> - 17.0.0~rc3-1
- Update to LLVM 17.0.0 RC3
* Wed Aug 23 2023 Tulio Magno Quites Machado Filho <tuliom@redhat.com> - 17.0.0~rc2-1
- Update to LLVM 17.0.0 RC2
* Tue Aug 01 2023 Tulio Magno Quites Machado Filho <tuliom@redhat.com> - 17.0.0~rc1-1
- Update to LLVM 17.0.0 RC1
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 16.0.6-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Mon Jul 10 2023 Tulio Magno Quites Machado Filho <tuliom@redhat.com> - 16.0.6-1
- Update to LLVM 16.0.6
* Tue Jun 06 2023 Tulio Magno Quites Machado Filho <tuliom@redhat.com> - 16.0.5-1
- Update to LLVM 16.0.5
* Sat May 20 2023 Tulio Magno Quites Machado Filho <tuliom@redhat.com> - 16.0.4-1
- Update to LLVM 16.0.4
* Wed May 10 2023 Tulio Magno Quites Machado Filho <tuliom@redhat.com> - 16.0.3-1
- Update to LLVM 16.0.3
* Thu Apr 27 2023 Tulio Magno Quites Machado Filho <tuliom@redhat.com> - 16.0.2-1
- Update to LLVM 16.0.2
* Thu Apr 13 2023 Tulio Magno Quites Machado Filho <tuliom@redhat.com> - 16.0.1-1
- Update to LLVM 16.0.1
* Tue Mar 21 2023 Tulio Magno Quites Machado Filho <tuliom@redhat.com> - 16.0.0-1
- Update to LLVM 16.0.0
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 15.0.7-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Fri Jan 13 2023 Nikita Popov <npopov@redhat.com> - 15.0.7-1
- Update to LLVM 15.0.7
* Tue Dec 06 2022 Nikita Popov <npopov@redhat.com> - 15.0.6-1
- Update to LLVM 15.0.6
* Mon Nov 07 2022 Nikita Popov <npopov@redhat.com> - 15.0.4-1
- Update to LLVM 15.0.4
* Tue Sep 06 2022 Nikita Popov <npopov@redhat.com> - 15.0.0-1
- Update to LLVM 15.0.0
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 14.0.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Wed Mar 30 2022 Tom Stellard <tstellar@redhat.com> - 14.0.0-1
- 14.0.0 Release
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 13.0.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Fri Oct 01 2021 Tom Stellard <tstellar@redhat.com> - 13.0.0-1
- 13.0.0 Release
* Mon Aug 09 2021 Tom Stellard <tstellar@redhat.com> - 13.0.0~rc1-1
- 13.0.0-rc1 Release
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 12.0.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Wed Jul 14 2021 Tom Stellard <tstellar@redhat.com> - 12.0.1-1
- 12.0.1 Release
* Wed Jun 30 2021 Tom Stellard <tstellar@redhat.com> - 12.0.1~rc3-1
- 12.0.1-rc3 Release
* Thu Jun 03 2021 Tom Stellard <tstellar@redhat.com> - 12.0.1~rc1-1
- 12.0.1-rc1 Release
* Fri Apr 16 2021 Tom Stellard <tstellar@redhat.com> - 12.0.0-1
- 12.0.0 Release
* Thu Apr 08 2021 sguelton@redhat.com - 12.0.0-0.6.rc5
- New upstream release candidate
* Fri Apr 02 2021 sguelton@redhat.com - 12.0.0-0.5.rc4
- New upstream release candidate
* Thu Mar 11 2021 sguelton@redhat.com - 12.0.0-0.4.rc3
- LLVM 12.0.0 rc3
* Tue Mar 09 2021 sguelton@redhat.com - 12.0.0-0.3.rc2
- rebuilt
* Wed Feb 24 2021 sguelton@redhat.com - 12.0.0-0.2.rc2
- llvm 12.0.0-rc2 release
* Wed Feb 03 2021 sguelton@redhat.com - 12.0.0-0.1.rc1
- llvm 12.0.0-rc1 release
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 11.1.0-0.3.rc2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Fri Jan 22 2021 Serge Guelton - 11.1.0-0.2.rc2
- llvm 11.1.0-rc2 release
* Thu Jan 14 2021 Serge Guelton - 11.1.0-0.1.rc1
- 11.1.0-rc1 release
* Wed Jan 06 2021 Serge Guelton - 11.0.1-3
- LLVM 11.0.1 final
* Mon Dec 21 2020 sguelton@redhat.com - 11.0.1-2.rc2
- llvm 11.0.1-rc2
* Tue Dec 01 2020 sguelton@redhat.com - 11.0.1-1.rc1
- llvm 11.0.1-rc1
* Thu Oct 15 2020 sguelton@redhat.com - 11.0.0-1
- Fix NVR
* Mon Oct 12 2020 sguelton@redhat.com - 11.0.0-0.5
- llvm 11.0.0 - final release
* Thu Oct 08 2020 sguelton@redhat.com - 11.0.0-0.4.rc6
- 11.0.0-rc6
* Fri Oct 02 2020 sguelton@redhat.com - 11.0.0-0.3.rc5
- 11.0.0-rc5 Release
* Sun Sep 27 2020 sguelton@redhat.com - 11.0.0-0.2.rc3
- Fix NVR
* Thu Sep 24 2020 sguelton@redhat.com - 11.0.0-0.1.rc3
- 11.0.0-rc3 Release
* Tue Sep 01 2020 sguelton@redhat.com - 11.0.0-0.1.rc2
- 11.0.0-rc2 Release
* Wed Aug 19 2020 Tom Stellard <tstellar@redhat.com> - 11.0.0-0.2.rc1
- Fix build failure with clang 11
* Mon Aug 10 2020 Tom Stellard <tstellar@redhat.com> - 11.0.0-0.1.rc1
- 11.0.0-rc1 Release
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 10.0.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Thu Jun 18 2020 Tom Stellard <tstellar@redhat.com> - 10.0.0-2
- Fix build with newer glibc
* Mon Mar 30 2020 sguelton@redhat.com - 10.0.0-1
- 10.0.0 final
* Tue Mar 24 2020 sguelton@redhat.com - 10.0.0-0.6.rc6
- 10.0.0 rc6
* Sat Mar 21 2020 sguelton@redhat.com - 10.0.0-0.5.rc5
- 10.0.0 rc5
* Sat Mar 14 2020 sguelton@redhat.com - 10.0.0-0.4.rc4
- 10.0.0 rc4
* Thu Mar 05 2020 sguelton@redhat.com - 10.0.0-0.3.rc3
- 10.0.0 rc3
* Fri Feb 14 2020 sguelton@redhat.com - 10.0.0-0.2.rc2
- 10.0.0 rc2
* Fri Jan 31 2020 sguelton@redhat.com - 10.0.0-0.1.rc1
- 10.0.0 rc1
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 9.0.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Fri Sep 20 2019 Tom Stellard <tstellar@redhat.com> - 9.0.0-1
- 9.0.0 Release
* Wed Sep 11 2019 Tom Stellard <tstellar@redhat.com> - 9.0.0-0.1.rc4
- 9.0.0-rc4 Release
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 8.0.0-3.1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Wed May 29 2019 Tom Stellard <tstellar@redhat.com> - 8.0.0-3
- Fix python2 print statement in ABI-Testsuite
* Thu May 02 2019 Tom Stellard <tstellar@redhat.com> - 8.0.0-2
- Bump lit version requirement
* Wed Mar 20 2019 sguelton@redhat.com - 8.0.0-1
- 8.0.0 final
* Tue Mar 12 2019 sguelton@redhat.com - 8.0.0-0.4.rc4
- 8.0.0 Release candidate 4
* Mon Mar 4 2019 sguelton@redhat.com - 8.0.0-0.3.rc3
- 8.0.0 Release candidate 3
* Fri Feb 22 2019 sguelton@redhat.com - 8.0.0-0.2.rc2
- 8.0.0 Release candidate 2
* Mon Feb 11 2019 sguelton@redhat.com - 8.0.0-0.1.rc1
- 8.0.0 Release candidate 1
* Mon Feb 04 2019 sguelton@redhat.com - 7.0.1-4
- Fix Python3 dependency
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 7.0.1-3.1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Fri Dec 21 2018 Miro Hrončok <mhroncok@redhat.com> - 7.0.1-3
- Remove Python2 dependency
* Fri Dec 21 2018 Tom Stellard <tstellar@redhat.com> - 7.0.1-2
- Bump version of lit dependency
* Mon Dec 17 2018 sguelton@redhat.com - 7.0.1-1
- 7.0.1 Release
* Fri Oct 26 2018 Tom Stellard <tstellar@redhat.com> - 7.0.1-0.1.rc2
- 7.0.1-rc2 Release

View file

@ -1,12 +1,20 @@
%global _binaries_in_noarch_packages_terminate_build %{nil}
%global llvm_test_suite_version 21.1.4
%global llvm_test_suite_version 21.1.8
#global rc_ver 3
%global test_suite_srcdir test-suite-%{llvm_test_suite_version}%{?rc_ver:-rc%{rc_ver}}.src.fedora
%bcond_with snapshot_build
%if %{with snapshot_build}
%include %{_sourcedir}/version.spec.inc
%global llvm_test_suite_version_suffix pre%{llvm_test_suite_date}.g%{llvm_test_suite_git_revision_short}
%global test_suite_srcdir llvm-test-suite-%{llvm_test_suite_git_revision}.fedora
%endif
Name: llvm-test-suite
Version: %{llvm_test_suite_version}%{?rc_ver:~rc%{rc_ver}}
Release: 1%{?dist}
Version: %{llvm_test_suite_version}%{?rc_ver:~rc%{rc_ver}}%{?llvm_test_suite_version_suffix:~%{llvm_test_suite_version_suffix}}
Release: %autorelease
Summary: C/C++ Compiler Test Suite
License: NCSA AND BSD-3-Clause-LBNL AND BSD-4.3TAHOE AND dtoa AND GPL-1.0-only AND GPL-2.0-or-later AND GPL-2.0-only AND MIT AND PSF-2.0 AND LicenseRef-Fedora-Public-Domain AND LicenseRef-Fedora-UltraPermissive AND AML AND Rdisc AND Apache-2.0 AND LGPL-3.0-only
@ -19,12 +27,20 @@ URL: http://llvm.org
# this condition is set by ./pkg_test_suite.sh to retrieve original sources
%if 0%{?original_sources:1}
%if %{with snapshot_build}
Source0: https://github.com/llvm/llvm-test-suite/archive/%{llvm_test_suite_git_revision}.tar.gz
%else
Source0: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{llvm_test_suite_version}%{?rc_ver:-rc%{rc_ver}}/test-suite-%{llvm_test_suite_version}%{?rc_ver:-rc%{rc_ver}}.src.tar.xz
%endif
%else
Source0: %{test_suite_srcdir}.tar.xz
%endif
Source1: license-files.txt
Source2: pkg_test_suite.sh
Source3: changelog
%if %{with snapshot_build}
Source1000: version.spec.inc
%endif
BuildArch: noarch
# We need python3-devel for pathfix.py.
@ -45,7 +61,7 @@ suite can be run with any compiler, not just clang.
%prep
%autosetup -n %{test_suite_srcdir} -p1
%{__python3} %{_rpmconfigdir}/redhat/pathfix.py -i %{__python3} -pn \
%py3_shebang_fix \
ParseMultipleResults \
utils/*.py \
CollectDebugInfoUsingLLDB.py \
@ -80,353 +96,5 @@ cp -R %{_builddir}/%{test_suite_srcdir}/* %{buildroot}%{_datadir}/llvm-test-suit
%changelog
* Fri Oct 24 2025 Tom Stellard <tstellar@redhat.com> - 21.1.4-1
- Update to LLVM 21.1.4
* Sat Oct 11 2025 Tom Stellard <tstellar@redhat.com> - 21.1.3-1
- Update to LLVM 21.1.3
* Thu Sep 25 2025 Tom Stellard <tstellar@redhat.com> - 21.1.2-1
- Update to LLVM 21.1.2
* Thu Sep 11 2025 Tom Stellard <tstellar@redhat.com> - 21.1.1-1
- Update to LLVM 21.1.1
* Thu Aug 28 2025 Tom Stellard <tstellar@redhat.com> - 21.1.0-1
- Update to LLVM 21.1.0
* Thu Jul 24 2025 Fedora Release Engineering <releng@fedoraproject.org> - 20.1.8-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
* Thu Jul 10 2025 Nikita Popov <npopov@redhat.com> - 20.1.8-1
- Update to LLVM 20.1.8
* Fri Jun 20 2025 Nikita Popov <npopov@redhat.com> - 20.1.7-1
- Update to LLVM 20.1.7
* Mon Jun 02 2025 Nikita Popov <npopov@redhat.com> - 20.1.6-1
- Update to LLVM 20.1.6
* Mon May 26 2025 Nikita Popov <npopov@redhat.com> - 20.1.5-1
- Update to LLVM 20.1.5
* Tue Apr 22 2025 Nikita Popov <npopov@redhat.com> - 20.1.3-1
- Update to LLVM 20.1.3
* Thu Apr 03 2025 Nikita Popov <npopov@redhat.com> - 20.1.2-1
- Update to LLVM 20.1.2
* Thu Mar 20 2025 Nikita Popov <npopov@redhat.com> - 20.1.1-1
- Update to LLVM 20.1.1
* Wed Mar 05 2025 Nikita Popov <npopov@redhat.com> - 20.1.0-1
- Update to LLVM 20.1.0
* Fri Jan 24 2025 Timm Bäder <tbaeder@redhat.com> - 19.1.7-2
- Backport upstream patch to fix typedef bool error with GCC 15
* Wed Jan 22 2025 Timm Bäder <tbaeder@redhat.com> - 19.1.7-1
- Update to 19.1.7
* Fri Jan 17 2025 Fedora Release Engineering <releng@fedoraproject.org> - 19.1.6-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
* Thu Jan 02 2025 Timm Bäder <tbaeder@redhat.com> - 19.1.6-1
- Update to 19.1.6
* Fri Dec 06 2024 Timm Bäder <tbaeder@redhat.com> - 19.1.5-1
- Update to 19.1.5
* Mon Nov 25 2024 Timm Bäder <tbaeder@redhat.com> - 19.1.4-1
- Update to 19.1.4
* Fri Nov 08 2024 Timm Bäder <tbaeder@redhat.com> - 19.1.3-1
- Update to 19.1.3
* Tue Oct 15 2024 Konrad Kleine <kkleine@redhat.com> - 19.1.0-3
- Remove MultiSource/Applications/ClamAV directory because of viruses in input files
* Wed Oct 09 2024 Konrad Kleine <kkleine@redhat.com> - 19.1.0-2
- Remove broken links in source tarball
* Thu Sep 19 2024 Timm Bäder <tbaeder@redhat.com> - 19.1.0-1
- Update to 19.1.0
* Tue Sep 17 2024 Timm Bäder <tbaeder@redhat.com> - 19.1.0~rc4-1
- Update to 19.1.0-rc4
* Mon Sep 02 2024 Miroslav Suchý <msuchy@redhat.com> - 18.1.8-3
- convert license to SPDX
* Thu Jul 18 2024 Fedora Release Engineering <releng@fedoraproject.org> - 18.1.8-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Fri Jul 12 2024 Jesus Checa Hidalgo <jchecahi@redhat.com> - 18.1.8-1
- 18.1.8 Release
* Fri Jun 14 2024 Tom Stellard <tstellar@redhat.com> - 18.1.7-1
- 18.1.7 Release
* Tue May 21 2024 Tom Stellard <tstellar@redhat.com> - 18.1.6-1
- 18.1.6 Release
* Sat May 04 2024 Tom Stellard <tstellar@redhat.com> - 18.1.4-1
- 18.1.4 Release
* Wed Apr 17 2024 Tom Stellard <tstellar@redhat.com> - 18.1.3-1
- 18.1.3 Release
* Fri Mar 22 2024 Tom Stellard <tstellar@redhat.com> - 18.1.2-1
- 18.1.2 Release
* Wed Mar 13 2024 Tom Stellard <tstellar@redhat.com> - 18.1.1-1
- 18.1.1 Release
* Thu Feb 29 2024 Tom Stellard <tstellar@redhat.com> - 18.1.0~rc4-1
- 18.1.0-rc4 Release
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 17.0.6-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 17.0.6-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Tue Nov 28 2023 Tulio Magno Quites Machado Filho <tuliom@redhat.com> - 17.0.6-1
- Update to LLVM 17.0.6
* Thu Nov 16 2023 Tulio Magno Quites Machado Filho <tuliom@redhat.com> - 17.0.5-1
- Update to LLVM 17.0.5
* Wed Nov 01 2023 Tulio Magno Quites Machado Filho <tuliom@redhat.com> - 17.0.4-1
- Update to LLVM 17.0.4
* Tue Oct 17 2023 Tulio Magno Quites Machado Filho <tuliom@redhat.com> - 17.0.3-1
- Update to LLVM 17.0.3
* Tue Oct 03 2023 Tulio Magno Quites Machado Filho <tuliom@redhat.com> - 17.0.2-1
- Update to LLVM 17.0.2
* Sat Sep 23 2023 Tulio Magno Quites Machado Filho <tuliom@redhat.com> - 17.0.1-1
- Update to LLVM 17.0.1
* Fri Sep 08 2023 Tulio Magno Quites Machado Filho <tuliom@redhat.com> - 17.0.0~rc4-1
- Update to LLVM 17.0.0 RC4
* Thu Aug 24 2023 Tulio Magno Quites Machado Filho <tuliom@redhat.com> - 17.0.0~rc3-1
- Update to LLVM 17.0.0 RC3
* Wed Aug 23 2023 Tulio Magno Quites Machado Filho <tuliom@redhat.com> - 17.0.0~rc2-1
- Update to LLVM 17.0.0 RC2
* Tue Aug 01 2023 Tulio Magno Quites Machado Filho <tuliom@redhat.com> - 17.0.0~rc1-1
- Update to LLVM 17.0.0 RC1
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 16.0.6-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Mon Jul 10 2023 Tulio Magno Quites Machado Filho <tuliom@redhat.com> - 16.0.6-1
- Update to LLVM 16.0.6
* Tue Jun 06 2023 Tulio Magno Quites Machado Filho <tuliom@redhat.com> - 16.0.5-1
- Update to LLVM 16.0.5
* Sat May 20 2023 Tulio Magno Quites Machado Filho <tuliom@redhat.com> - 16.0.4-1
- Update to LLVM 16.0.4
* Wed May 10 2023 Tulio Magno Quites Machado Filho <tuliom@redhat.com> - 16.0.3-1
- Update to LLVM 16.0.3
* Thu Apr 27 2023 Tulio Magno Quites Machado Filho <tuliom@redhat.com> - 16.0.2-1
- Update to LLVM 16.0.2
* Thu Apr 13 2023 Tulio Magno Quites Machado Filho <tuliom@redhat.com> - 16.0.1-1
- Update to LLVM 16.0.1
* Tue Mar 21 2023 Tulio Magno Quites Machado Filho <tuliom@redhat.com> - 16.0.0-1
- Update to LLVM 16.0.0
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 15.0.7-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Fri Jan 13 2023 Nikita Popov <npopov@redhat.com> - 15.0.7-1
- Update to LLVM 15.0.7
* Tue Dec 06 2022 Nikita Popov <npopov@redhat.com> - 15.0.6-1
- Update to LLVM 15.0.6
* Mon Nov 07 2022 Nikita Popov <npopov@redhat.com> - 15.0.4-1
- Update to LLVM 15.0.4
* Tue Sep 06 2022 Nikita Popov <npopov@redhat.com> - 15.0.0-1
- Update to LLVM 15.0.0
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 14.0.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Wed Mar 30 2022 Tom Stellard <tstellar@redhat.com> - 14.0.0-1
- 14.0.0 Release
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 13.0.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Fri Oct 01 2021 Tom Stellard <tstellar@redhat.com> - 13.0.0-1
- 13.0.0 Release
* Mon Aug 09 2021 Tom Stellard <tstellar@redhat.com> - 13.0.0~rc1-1
- 13.0.0-rc1 Release
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 12.0.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Wed Jul 14 2021 Tom Stellard <tstellar@redhat.com> - 12.0.1-1
- 12.0.1 Release
* Wed Jun 30 2021 Tom Stellard <tstellar@redhat.com> - 12.0.1~rc3-1
- 12.0.1-rc3 Release
* Thu Jun 03 2021 Tom Stellard <tstellar@redhat.com> - 12.0.1~rc1-1
- 12.0.1-rc1 Release
* Fri Apr 16 2021 Tom Stellard <tstellar@redhat.com> - 12.0.0-1
- 12.0.0 Release
* Thu Apr 08 2021 sguelton@redhat.com - 12.0.0-0.6.rc5
- New upstream release candidate
* Fri Apr 02 2021 sguelton@redhat.com - 12.0.0-0.5.rc4
- New upstream release candidate
* Thu Mar 11 2021 sguelton@redhat.com - 12.0.0-0.4.rc3
- LLVM 12.0.0 rc3
* Tue Mar 09 2021 sguelton@redhat.com - 12.0.0-0.3.rc2
- rebuilt
* Wed Feb 24 2021 sguelton@redhat.com - 12.0.0-0.2.rc2
- llvm 12.0.0-rc2 release
* Wed Feb 03 2021 sguelton@redhat.com - 12.0.0-0.1.rc1
- llvm 12.0.0-rc1 release
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 11.1.0-0.3.rc2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Fri Jan 22 2021 Serge Guelton - 11.1.0-0.2.rc2
- llvm 11.1.0-rc2 release
* Thu Jan 14 2021 Serge Guelton - 11.1.0-0.1.rc1
- 11.1.0-rc1 release
* Wed Jan 06 2021 Serge Guelton - 11.0.1-3
- LLVM 11.0.1 final
* Mon Dec 21 2020 sguelton@redhat.com - 11.0.1-2.rc2
- llvm 11.0.1-rc2
* Tue Dec 01 2020 sguelton@redhat.com - 11.0.1-1.rc1
- llvm 11.0.1-rc1
* Thu Oct 15 2020 sguelton@redhat.com - 11.0.0-1
- Fix NVR
* Mon Oct 12 2020 sguelton@redhat.com - 11.0.0-0.5
- llvm 11.0.0 - final release
* Thu Oct 08 2020 sguelton@redhat.com - 11.0.0-0.4.rc6
- 11.0.0-rc6
* Fri Oct 02 2020 sguelton@redhat.com - 11.0.0-0.3.rc5
- 11.0.0-rc5 Release
* Sun Sep 27 2020 sguelton@redhat.com - 11.0.0-0.2.rc3
- Fix NVR
* Thu Sep 24 2020 sguelton@redhat.com - 11.0.0-0.1.rc3
- 11.0.0-rc3 Release
* Tue Sep 01 2020 sguelton@redhat.com - 11.0.0-0.1.rc2
- 11.0.0-rc2 Release
* Wed Aug 19 2020 Tom Stellard <tstellar@redhat.com> - 11.0.0-0.2.rc1
- Fix build failure with clang 11
* Mon Aug 10 2020 Tom Stellard <tstellar@redhat.com> - 11.0.0-0.1.rc1
- 11.0.0-rc1 Release
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 10.0.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Thu Jun 18 2020 Tom Stellard <tstellar@redhat.com> - 10.0.0-2
- Fix build with newer glibc
* Mon Mar 30 2020 sguelton@redhat.com - 10.0.0-1
- 10.0.0 final
* Tue Mar 24 2020 sguelton@redhat.com - 10.0.0-0.6.rc6
- 10.0.0 rc6
* Sat Mar 21 2020 sguelton@redhat.com - 10.0.0-0.5.rc5
- 10.0.0 rc5
* Sat Mar 14 2020 sguelton@redhat.com - 10.0.0-0.4.rc4
- 10.0.0 rc4
* Thu Mar 05 2020 sguelton@redhat.com - 10.0.0-0.3.rc3
- 10.0.0 rc3
* Fri Feb 14 2020 sguelton@redhat.com - 10.0.0-0.2.rc2
- 10.0.0 rc2
* Fri Jan 31 2020 sguelton@redhat.com - 10.0.0-0.1.rc1
- 10.0.0 rc1
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 9.0.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Fri Sep 20 2019 Tom Stellard <tstellar@redhat.com> - 9.0.0-1
- 9.0.0 Release
* Wed Sep 11 2019 Tom Stellard <tstellar@redhat.com> - 9.0.0-0.1.rc4
- 9.0.0-rc4 Release
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 8.0.0-3.1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Wed May 29 2019 Tom Stellard <tstellar@redhat.com> - 8.0.0-3
- Fix python2 print statement in ABI-Testsuite
* Thu May 02 2019 Tom Stellard <tstellar@redhat.com> - 8.0.0-2
- Bump lit version requirement
* Wed Mar 20 2019 sguelton@redhat.com - 8.0.0-1
- 8.0.0 final
* Tue Mar 12 2019 sguelton@redhat.com - 8.0.0-0.4.rc4
- 8.0.0 Release candidate 4
* Mon Mar 4 2019 sguelton@redhat.com - 8.0.0-0.3.rc3
- 8.0.0 Release candidate 3
* Fri Feb 22 2019 sguelton@redhat.com - 8.0.0-0.2.rc2
- 8.0.0 Release candidate 2
* Mon Feb 11 2019 sguelton@redhat.com - 8.0.0-0.1.rc1
- 8.0.0 Release candidate 1
* Mon Feb 04 2019 sguelton@redhat.com - 7.0.1-4
- Fix Python3 dependency
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 7.0.1-3.1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Fri Dec 21 2018 Miro Hrončok <mhroncok@redhat.com> - 7.0.1-3
- Remove Python2 dependency
* Fri Dec 21 2018 Tom Stellard <tstellar@redhat.com> - 7.0.1-2
- Bump version of lit dependency
* Mon Dec 17 2018 sguelton@redhat.com - 7.0.1-1
- 7.0.1 Release
* Fri Oct 26 2018 Tom Stellard <tstellar@redhat.com> - 7.0.1-0.1.rc2
- 7.0.1-rc2 Release
%{?autochangelog:%autochangelog}
%{!?autochangelog:%include %{_sourcedir}/changelog}

View file

@ -1,6 +1,9 @@
#!/bin/bash
set -ex
SNAPSHOT_BUILD=${SNAPSHOT_BUILD:-0}
tmpdir=`mktemp -d`
currentdir=`pwd`
version="$1"
@ -15,16 +18,30 @@ if [ -n "$version" ]; then
gpg --verify --homedir=$gpghome --keyring=./keyring.gpg $original_sources.sig $original_sources
rm -Rf $gpghome
else
spectool --define 'original_sources 1' -g -C . llvm-test-suite.spec | tee dl.log
original_sources=`tail -n1 dl.log | cut -d' ' -f2`
if [[ "${SNAPSHOT_BUILD}" == "1" ]]; then
spectool \
--define 'original_sources 1' \
--define "_sourcedir ${PWD}" \
--define "with_snapshot_build 1" \
-g \
-C . \
llvm-test-suite.spec \
| tee dl.log
else
spectool \
--define 'original_sources 1' \
-g \
-C . \
llvm-test-suite.spec \
| tee dl.log
fi
original_sources=`head -1 dl.log | sed 's/.*\///'`
rm dl.log
fi
tar -C $tmpdir -xJf $original_sources
test_suite_src=`echo $original_sources | cut -d . -f 1-4`
tar -C $tmpdir -xvf $original_sources > $tmpdir/tar_output
test_suite_src=`head -1 $tmpdir/tar_output | sed -e 's/\/.*//'`
pushd $tmpdir
test -d $test_suite_src

View file

@ -1 +1 @@
SHA512 (test-suite-21.1.4.src.fedora.tar.xz) = a0d9a54eb65987c9da23d81058e242f997f40fb68347dac0fcf1abf75c0b718fbbc84a44aa9edaf8083953d6c052d03e6ac16c49bf2d1c0f96a6d219b73e0c72
SHA512 (test-suite-21.1.8.src.fedora.tar.xz) = f53242fc0f2b218b1a245abb4eced88a5bc92f1e2817b8915edf04b75125275e2213d9dc31df97a84d4c1a557a83a6605780449c065ee62db9390e1f2948e4e3