diff --git a/.gitignore b/.gitignore index 4049fe1..199cd2a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,9 @@ -/libvarlink-5.tar.gz -/libvarlink-6.tar.gz +/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 a4cdb40..00f1e4c 100644 --- a/libvarlink.spec +++ b/libvarlink.spec @@ -1,14 +1,16 @@ %global _hardened_build 1 Name: libvarlink -Version: 6 -Release: 1%{?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,15 +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 -%post -p /sbin/ldconfig - -%postun -p /sbin/ldconfig - %files %license LICENSE %{_libdir}/libvarlink.so.* @@ -60,17 +65,4 @@ export LC_CTYPE=C.utf8 %{_libdir}/pkgconfig/libvarlink.pc %changelog -* 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 6a2d5b2..b61d272 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (libvarlink-6.tar.gz) = a48210609f9892654fb3a8594fdc2e9439dbc80a1a006035b007332adcf50b745bef62d0f2c92c6f25ca72da98269d94e840c8b386afc6842c087379a24de743 +SHA512 (libvarlink-24.tar.gz) = 737975a9f49616ed41eba6beeeafcbc9364623551b3b9f541a3e1142ac0fb4f4b3e49d5964f3e2d5bd3afd80d7394882a0b21ca5a838fa14de1936baad2715c3 diff --git a/tests/sanity/runtest.sh b/tests/sanity/runtest.sh new file mode 100755 index 0000000..5e7e67d --- /dev/null +++ b/tests/sanity/runtest.sh @@ -0,0 +1,25 @@ +#!/bin/bash +# Include Beaker environment +. /usr/share/beakerlib/beakerlib.sh || exit 1 + +PACKAGE="libvarlink" + +rlJournalStart + rlPhaseStartSetup + rlAssertRpm $PACKAGE + rlRun "mkdir -p $HOME/.cargo/bin; cargo install --git https://github.com/varlink/rust varlink-certification" + rlPhaseEnd + + rlPhaseStartTest + 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 $HOME/.cargo" + rlPhaseEnd +rlJournalPrintText +rlJournalEnd + +rlGetTestState diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..1147164 --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,14 @@ +- hosts: localhost + roles: + - role: standard-test-beakerlib + tags: + - classic + tests: + - sanity + required_packages: + - libvarlink + - meson + - ninja-build + - gcc + - git + - cargo