diff --git a/.gitignore b/.gitignore index cf72d41..199cd2a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,9 @@ /libvarlink-15.tar.gz /libvarlink-17.tar.gz /libvarlink-18.tar.gz +/libvarlink-19.tar.gz +/libvarlink-20.tar.gz +/libvarlink-21.tar.gz +/libvarlink-22.tar.gz +/libvarlink-23.tar.gz +/libvarlink-24.tar.gz diff --git a/.packit.yaml b/.packit.yaml new file mode 100644 index 0000000..bd2274c --- /dev/null +++ b/.packit.yaml @@ -0,0 +1,22 @@ +# See the documentation for more information: +# https://packit.dev/docs/configuration/ + +specfile_path: libvarlink.spec + +# add or remove files that should be synced +files_to_sync: + - libvarlink.spec + - .packit.yaml + +# name in upstream package repository/registry (e.g. in PyPI) +upstream_package_name: libvarlink +upstream_project_url: https://github.com/varlink/libvarlink + +copy_upstream_release_description: true + +# downstream (Fedora) RPM package name +downstream_package_name: libvarlink + +dist_git_branches: + rawhide: + fast_forward_merge_into: [fedora-branched] diff --git a/README.packit b/README.packit new file mode 100644 index 0000000..43b1d81 --- /dev/null +++ b/README.packit @@ -0,0 +1,3 @@ +This repository is maintained by packit. +https://packit.dev/ +The file was generated using packit 0.43.1.dev2+gbb34d4b. diff --git a/changelog b/changelog new file mode 100644 index 0000000..5412337 --- /dev/null +++ b/changelog @@ -0,0 +1,125 @@ +* Fri Jan 17 2025 Fedora Release Engineering - 23-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + +* Thu Jul 18 2024 Fedora Release Engineering - 23-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Fri May 17 2024 Davide Cavalca - 23-8 +- Convert license tag to SPDX +- Update spec to the latest packaging guidelines +- Disable broken test on ppc64le; Fixes: RHBZ#2261345 + +* Thu Jan 25 2024 Fedora Release Engineering - 23-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Jan 21 2024 Fedora Release Engineering - 23-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Thu Jul 20 2023 Fedora Release Engineering - 23-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Thu Jan 19 2023 Fedora Release Engineering - 23-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Thu Jul 21 2022 Fedora Release Engineering - 23-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Thu Jan 20 2022 Fedora Release Engineering - 23-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Thu Jul 22 2021 Fedora Release Engineering - 22-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Tue Mar 02 2021 Packit Service - 22-1 +- version 22 +- libvarlink now includes and passes most of the JSONTestSuite tests. + +* Tue Feb 23 2021 Harald Hoyer - 21-2 +- fixed changelog date inserted by packit with de_DE locale + +* Tue Feb 23 2021 Harald Hoyer - 21-1 +- ci: add .packit.yaml (Harald Hoyer) +- version 21 (Harald Hoyer) +- fix: use strtod_l (Harald Hoyer) +- fix: return VARLINK_ERROR_PANIC on float Inf or NaN (Harald Hoyer) +- tests: add test with de_DE.UTF-8 locale (Harald Hoyer) +- ci: install de_DE.UTF-8 locale (Harald Hoyer) +- fix: correct the float number parsing for some locales (Harald Hoyer) +- tests: print error log on `make check` (Harald Hoyer) +- docs: update README.md (Harald Hoyer) + +* Thu Feb 18 2021 Harald Hoyer - 20-1 +- libvarlink 20 + +* Tue Jan 26 2021 Fedora Release Engineering - 19-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Thu Dec 10 2020 Stephen Gallagher - 19-4 +- Fix builds when git is present in the buildroot +- Fixes https://github.com/varlink/libvarlink/issues/22 + +* Tue Jul 28 2020 Fedora Release Engineering - 19-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue Jun 30 2020 Jeff Law - 19-2 +Disable LTO + +* Fri Mar 06 2020 Harald Hoyer - 19-1 +- libvarlink 19 + +* Wed Jan 29 2020 Fedora Release Engineering - 18-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Jul 25 2019 Fedora Release Engineering - 18-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Wed May 22 2019 Harald Hoyer - 18-1 +- libvarlink 18 + +* Fri Feb 15 2019 Harald Hoyer - 17-1 +- libvarlink 17 + +* Fri Feb 01 2019 Fedora Release Engineering - 15-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Tue Oct 9 2018 15-1 +- libvarlink 15 + +* Mon Oct 8 2018 14-1 +- libvarlink 14 + +* Mon Jul 16 2018 - 12-1 +- libvarlink 12 + +* Fri Jul 13 2018 Fedora Release Engineering - 11-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Sun Jun 17 2018 +- libvarlink 11 + +* Sat May 12 2018 +- libvarlink 10 + +* Fri Apr 13 2018 +- libvarlink 9 + +* Thu Apr 12 2018 +- libvarlink 8 + +* Mon Mar 26 2018 +- libvarlink 7 + +* Mon Mar 26 2018 +- libvarlink 6 + +* Fri Mar 23 2018 +- libvarlink 5 + +* Wed Feb 07 2018 Fedora Release Engineering - 1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Fri Feb 02 2018 Harald Hoyer - 1-2 +- bump release + +* Fri Feb 2 2018 +- libvarlink 1 diff --git a/gating.yaml b/gating.yaml new file mode 100644 index 0000000..af6eb32 --- /dev/null +++ b/gating.yaml @@ -0,0 +1,16 @@ +--- !Policy +product_versions: + - fedora-* +decision_context: bodhi_update_push_testing +subject_type: koji_build +rules: + - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional} + +--- !Policy +product_versions: + - fedora-* +decision_context: bodhi_update_push_stable +subject_type: koji_build +rules: + - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional} + diff --git a/libvarlink.spec b/libvarlink.spec index 9c2aece..00f1e4c 100644 --- a/libvarlink.spec +++ b/libvarlink.spec @@ -1,14 +1,16 @@ %global _hardened_build 1 Name: libvarlink -Version: 18 -Release: 3%{?dist} +Version: 24 +Release: %autorelease Summary: Varlink C Library -License: ASL 2.0 +License: Apache-2.0 AND BSD-3-Clause URL: https://github.com/varlink/%{name} -Source0: https://github.com/varlink/%{name}/archive/%{version}/%{name}-%{version}.tar.gz +Source: %{url}/archive/%{version}/%{name}-%{version}.tar.gz + BuildRequires: meson BuildRequires: gcc +BuildRequires: glibc-langpack-de %description Varlink C Library @@ -28,7 +30,7 @@ Summary: Varlink command line tools The %{name}-util package contains varlink command line tools. %prep -%setup -q +%autosetup %build %meson @@ -36,13 +38,18 @@ The %{name}-util package contains varlink command line tools. %check export LC_CTYPE=C.utf8 +# https://github.com/varlink/libvarlink/issues/63 +%ifarch ppc64le +test_list=$(%meson_test --list) 2> /dev/null +test_list=${test_list//test-symbols} +%meson_test $test_list +%else %meson_test +%endif %install %meson_install -%ldconfig_scriptlets - %files %license LICENSE %{_libdir}/libvarlink.so.* @@ -58,59 +65,4 @@ export LC_CTYPE=C.utf8 %{_libdir}/pkgconfig/libvarlink.pc %changelog -* Wed Jan 29 2020 Fedora Release Engineering - 18-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild - -* Thu Jul 25 2019 Fedora Release Engineering - 18-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - -* Wed May 22 2019 Harald Hoyer - 18-1 -- libvarlink 18 - -* Fri Feb 15 2019 Harald Hoyer - 17-1 -- libvarlink 17 - -* Fri Feb 01 2019 Fedora Release Engineering - 15-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - -* Tue Oct 9 2018 15-1 -- libvarlink 15 - -* Mon Oct 8 2018 14-1 -- libvarlink 14 - -* Mon Jul 16 2018 - 12-1 -- libvarlink 12 - -* Fri Jul 13 2018 Fedora Release Engineering - 11-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - -* Sun Jun 17 2018 -- libvarlink 11 - -* Sat May 12 2018 -- libvarlink 10 - -* Fri Apr 13 2018 -- libvarlink 9 - -* Thu Apr 12 2018 -- libvarlink 8 - -* Mon Mar 26 2018 -- libvarlink 7 - -* Mon Mar 26 2018 -- libvarlink 6 - -* Fri Mar 23 2018 -- libvarlink 5 - -* Wed Feb 07 2018 Fedora Release Engineering - 1-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - -* Fri Feb 02 2018 Harald Hoyer - 1-2 -- bump release - -* Fri Feb 2 2018 -- libvarlink 1 +%autochangelog diff --git a/sources b/sources index b803525..b61d272 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (libvarlink-18.tar.gz) = a0f2cfe6a3ce3e7c08b24436d4210691d6334ec903cb3d590627595ee3bda79bf4e22e7c72c7ea8ebe817e4e2b045f86d2603ae56b3fd7d429fd281fd7e5e2e8 +SHA512 (libvarlink-24.tar.gz) = 737975a9f49616ed41eba6beeeafcbc9364623551b3b9f541a3e1142ac0fb4f4b3e49d5964f3e2d5bd3afd80d7394882a0b21ca5a838fa14de1936baad2715c3 diff --git a/tests/sanity/runtest.sh b/tests/sanity/runtest.sh index c2442d4..5e7e67d 100755 --- a/tests/sanity/runtest.sh +++ b/tests/sanity/runtest.sh @@ -7,17 +7,17 @@ PACKAGE="libvarlink" rlJournalStart rlPhaseStartSetup rlAssertRpm $PACKAGE - rlRun "git clone https://github.com/varlink/libvarlink; cd libvarlink; meson build;make" + rlRun "mkdir -p $HOME/.cargo/bin; cargo install --git https://github.com/varlink/rust varlink-certification" rlPhaseEnd rlPhaseStartTest - rlLog "Starting tests ..." - rlRun "cd build; ninja test" + rlLog "Starting test ..." + rlRun "varlink --bridge \"varlink --bridge \\\"varlink -A '~/.cargo/bin/varlink-certification --varlink=\\\\\\\$VARLINK_ADDRESS' bridge\\\" bridge\" info | fgrep -q org.varlink.certification" rlPhaseEnd rlPhaseStartCleanup rlLog "libvarlink tests done" - rlRun "rm -rf libvarlink" + rlRun "rm -rf $HOME/.cargo" rlPhaseEnd rlJournalPrintText rlJournalEnd diff --git a/tests/tests.yml b/tests/tests.yml index d8cdb3d..1147164 100644 --- a/tests/tests.yml +++ b/tests/tests.yml @@ -10,3 +10,5 @@ - meson - ninja-build - gcc + - git + - cargo