diff --git a/.fmf/version b/.fmf/version deleted file mode 100644 index d00491f..0000000 --- a/.fmf/version +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/.gitignore b/.gitignore index 2e1918a..e69de29 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +0,0 @@ -/package-notes-0.4.tar.gz -/redhat-package-notes diff --git a/changelog b/changelog deleted file mode 100644 index 5545385..0000000 --- a/changelog +++ /dev/null @@ -1,57 +0,0 @@ -* Tue Aug 16 2022 Zbigniew Jędrzejewski-Szmek - 0.5-3 -- Switch to --package-metadata also with lld (#2051597) - -* Tue Aug 09 2022 Luca Boccassi - 0.5-1 -- Switch to --package-metadata (#2055863, #2083878, #2099999, #2059858, #2055458) - -* Sat Aug 06 2022 Tom Stellard - 0.4-17 -- Add CI test - -* Fri Jul 22 2022 Fedora Release Engineering - 0.4-16 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild - -* Sat Mar 26 2022 Luca Boccassi - 0.4-15 -- Fix wrong binary fields on big endian - -* Tue Jan 25 2022 Zbigniew Jędrzejewski-Szmek - 0.4-14 -- Disable notes when clang toolchain is used on arm - -* Mon Jan 24 2022 Zbigniew Jędrzejewski-Szmek - 0.4-13 -- Disable notes with linkers other than bfd - -* Mon Jan 24 2022 Zbigniew Jędrzejewski-Szmek - 0.4-12 -- Add --insert-after param to the note generation script - -* Sat Jan 22 2022 Zbigniew Jędrzejewski-Szmek - 0.4-11 -- Add %%_package_note_linker and document everything (rhbz#2043178, - rhbz#2043368) - -* Sat Jan 22 2022 Zbigniew Jędrzejewski-Szmek - 0.4-10 -- Allow unsetting %%_package_note_readonly to drop the READONLY attribute - -* Fri Jan 21 2022 Zbigniew Jędrzejewski-Szmek - 0.4-9 -- Use %%{buildsubdir} in %%_package_note_file if defined - -* Fri Jan 21 2022 Zbigniew Jędrzejewski-Szmek - 0.4-8 -- Also voidify the macros if we're on a noarch build - -* Fri Jan 21 2022 Zbigniew Jędrzejewski-Szmek - 0.4-7 -- Use $RPM_PACKAGE_VERSION variable to refer to the package version - -* Fri Jan 21 2022 Zbigniew Jędrzejewski-Szmek - 0.4-6 -- Make _generate_package_note_file always recreate the file - -* Fri Jan 21 2022 Zbigniew Jędrzejewski-Szmek - 0.4-5 -- Conditionalize all macros on %%_package_note_file being defined - -* Thu Jan 20 2022 Fedora Release Engineering - 0.4-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild - -* Fri Jan 14 2022 Zbigniew Jędrzejewski-Szmek - 0.4-3 -- Rename srpm macros file - -* Fri Jan 14 2022 Zbigniew Jędrzejewski-Szmek - 0.4-2 -- Add package-notes-srpm-macros subpackage to configure rpm builds - -* Tue Nov 16 2021 Zbigniew Jędrzejewski-Szmek - 0.4-1 -- Version 0.4 diff --git a/package-notes.spec b/package-notes.spec index dd0b59d..9b2f309 100644 --- a/package-notes.spec +++ b/package-notes.spec @@ -1,3 +1,13 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.6.5) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 13; + base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); + print(release_number + base_release_number - 1); +}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} +## END: Set by rpmautospec + Name: package-notes Version: 0.5 Release: %autorelease @@ -43,4 +53,95 @@ install -m0644 -Dt %{buildroot}%{_rpmmacrodir}/ %{SOURCE1} %{_rpmmacrodir}/macros.package-notes-srpm %changelog -%autochangelog +## START: Generated by rpmautospec +* Tue Oct 29 2024 Troy Dawson - 0.5-13 +- Bump release for October 2024 mass rebuild: + +* Mon Jun 24 2024 Troy Dawson - 0.5-12 +- Bump release for June 2024 mass rebuild + +* Thu Jan 25 2024 Fedora Release Engineering - 0.5-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Jan 21 2024 Fedora Release Engineering - 0.5-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Thu Jul 20 2023 Fedora Release Engineering - 0.5-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Sat May 20 2023 Zbigniew Jędrzejewski-Szmek - 0.5-8 +- Make sure redhat-package-notes spec is skipped if _package_note_flags is + undefined (rbhz#2184553) + +* Thu Jan 19 2023 Fedora Release Engineering - 0.5-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sat Sep 03 2022 Luca Boccassi - 0.5-6 +- test: run clang build too + +* Mon Aug 29 2022 Luca Boccassi - 0.5-5 +- Disable by default with lld + +* Tue Aug 16 2022 Benjamin A. Beasley - 0.5-4 +- Fix regression due to typo in _package_note_status +- Fixes RHBZ#2118722 + +* Tue Aug 16 2022 Zbigniew Jędrzejewski-Szmek - 0.5-3 +- Switch to --package-metadata also with lld (#2051597) + +* Tue Aug 09 2022 Luca Boccassi - 0.5-1 +- Switch to --package-metadata (#2055863, #2083878, #2099999, #2059858, #2055458) + +* Sat Aug 06 2022 Tom Stellard - 0.4-17 +- Add CI test + +* Fri Jul 22 2022 Fedora Release Engineering - 0.4-16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Sat Mar 26 2022 Luca Boccassi - 0.4-15 +- Fix wrong binary fields on big endian + +* Tue Jan 25 2022 Zbigniew Jędrzejewski-Szmek - 0.4-14 +- Disable notes when clang toolchain is used on arm + +* Mon Jan 24 2022 Zbigniew Jędrzejewski-Szmek - 0.4-13 +- Disable notes with linkers other than bfd + +* Mon Jan 24 2022 Zbigniew Jędrzejewski-Szmek - 0.4-12 +- Add --insert-after param to the note generation script + +* Sat Jan 22 2022 Zbigniew Jędrzejewski-Szmek - 0.4-11 +- Add %%_package_note_linker and document everything (rhbz#2043178, + rhbz#2043368) + +* Sat Jan 22 2022 Zbigniew Jędrzejewski-Szmek - 0.4-10 +- Allow unsetting %%_package_note_readonly to drop the READONLY attribute + +* Fri Jan 21 2022 Zbigniew Jędrzejewski-Szmek - 0.4-9 +- Use %%{buildsubdir} in %%_package_note_file if defined + +* Fri Jan 21 2022 Zbigniew Jędrzejewski-Szmek - 0.4-8 +- Also voidify the macros if we're on a noarch build + +* Fri Jan 21 2022 Zbigniew Jędrzejewski-Szmek - 0.4-7 +- Use $RPM_PACKAGE_VERSION variable to refer to the package version + +* Fri Jan 21 2022 Zbigniew Jędrzejewski-Szmek - 0.4-6 +- Make _generate_package_note_file always recreate the file + +* Fri Jan 21 2022 Zbigniew Jędrzejewski-Szmek - 0.4-5 +- Conditionalize all macros on %%_package_note_file being defined + +* Thu Jan 20 2022 Fedora Release Engineering - 0.4-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jan 14 2022 Zbigniew Jędrzejewski-Szmek - 0.4-3 +- Rename srpm macros file + +* Fri Jan 14 2022 Zbigniew Jędrzejewski-Szmek - 0.4-2 +- Add package-notes-srpm-macros subpackage to configure rpm builds + +* Tue Nov 16 2021 Zbigniew Jędrzejewski-Szmek - 0.4-1 +- Version 0.4 + +## END: Generated by rpmautospec diff --git a/plans/basic.fmf b/plans/basic.fmf deleted file mode 100644 index c1627f9..0000000 --- a/plans/basic.fmf +++ /dev/null @@ -1,5 +0,0 @@ -summary: Basic smoke test -discover: - how: fmf -execute: - how: tmt diff --git a/sources b/sources deleted file mode 100644 index e69de29..0000000 diff --git a/tests/build-gating.fmf b/tests/build-gating.fmf deleted file mode 100644 index a40b6a8..0000000 --- a/tests/build-gating.fmf +++ /dev/null @@ -1,4 +0,0 @@ -discover: - how: fmf -exexute: - how: tmt diff --git a/tests/simple-rpm/main.fmf b/tests/simple-rpm/main.fmf deleted file mode 100644 index 25ad4f8..0000000 --- a/tests/simple-rpm/main.fmf +++ /dev/null @@ -1,6 +0,0 @@ -summary: Test build a simple RPM package to ensure package notes are working -require: - - dnf - - dnf-plugins-core - - rpm-build -test: ./runtest.sh diff --git a/tests/simple-rpm/runtest.sh b/tests/simple-rpm/runtest.sh deleted file mode 100755 index d911a2b..0000000 --- a/tests/simple-rpm/runtest.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash - -set -ex - -dnf -y build-dep test.spec -rpmbuild --define '_sourcedir .' --define '_builddir .' -bb test.spec -dnf -y build-dep test.spec -D "_with_ld_lld 1" -rpmbuild --with ld_lld --define '_sourcedir .' --define '_builddir .' -bb test.spec -dnf -y build-dep test.spec -D "_with_clang 1" -rpmbuild --with clang --define '_sourcedir .' --define '_builddir .' -bb test.spec diff --git a/tests/simple-rpm/test.spec b/tests/simple-rpm/test.spec deleted file mode 100644 index 155a352..0000000 --- a/tests/simple-rpm/test.spec +++ /dev/null @@ -1,50 +0,0 @@ -%bcond_with ld_lld -%bcond_with clang - -%if %{with ld_lld} -%global extra_ldflags -fuse-ld=lld -%global _package_note_linker lld -%endif -%if %{with clang} -%global toolchain clang -%endif - -Name: test -Version: 1 -Release: 1 -Summary: Test package for checking package notes -License: MIT - -%if %{with clang} -BuildRequires: clang -%else -BuildRequires: gcc -%endif -# For %check -BuildRequires: binutils -BuildRequires: jq -%if %{with ld_lld} -BuildRequires: lld -%endif - -%description -Test package for checking package notes - -%build -echo 'int main(int argc, char **argv) { return 0; }' | %{build_cc} ${CFLAGS} -x c -c - -o main.o -%{build_cc} -Werror ${LDFLAGS} %{?extra_ldflags} main.o -o main - -# Package notes not supported with clang, so the the build succeeding is enough. -%if %{without clang} -%check -# avoid any attempt to access the network by readelf -export DEBUGINFOD_URLS= - -readelf --notes ./main | sed -r -n 's/.*Packaging Metadata: (.*)/\1/p' | tee package-note.text - -test "`cat package-note.text | jq -r '[.type,.name,.version,.architecture]|join(" ")'`" == "rpm %{name} %{version}-%{release} %{_arch}" -%endif - -%changelog -* Sat Aug 6 2022 Jane Doe - 1-1 -- Dummy