Compare commits

...

No commits in common. "c9s" and "c8" have entirely different histories.
c9s ... c8

11 changed files with 118 additions and 264 deletions

7
.gitignore vendored
View File

@ -1,6 +1 @@
/libvarlink-15.tar.gz
/libvarlink-17.tar.gz
/libvarlink-18.tar.gz
/libvarlink-19.tar.gz
/libvarlink-20.tar.gz
/libvarlink-21.tar.gz
SOURCES/libvarlink-18.tar.gz

View File

@ -1 +1 @@
259b10eb4019e66e25bde9dd3aa7c012d158678f libvarlink-21.tar.gz
86d24a79025f0fa06742f0c41b804e057de5ff94 SOURCES/libvarlink-18.tar.gz

View File

@ -1,14 +0,0 @@
# See the documentation for more information:
# https://packit.dev/docs/configuration/
specfile_path: libvarlink.spec
# add or remove files that should be synced
synced_files:
- libvarlink.spec
- .packit.yaml
# name in upstream package repository/registry (e.g. in PyPI)
upstream_package_name: libvarlink
# downstream (Fedora) RPM package name
downstream_package_name: libvarlink

View File

@ -1,49 +0,0 @@
From 5fad96254cf20fc6d473037b48c50031cd7e8b45 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
Date: Fri, 3 Apr 2020 18:35:21 +0200
Subject: [PATCH] Drop tags and ctags targets
meson 0.43 started providing a built-in ctags target which
conflicts with the hand-rolled one here. There shouldn't be
much difference, so let's drop ours.
Fixes #22.
---
meson.build | 22 ----------------------
1 file changed, 22 deletions(-)
diff --git a/meson.build b/meson.build
index 5fc51d282d78dd7127c3ac3c7c80f65aa492b871..72ac7867c694fc96bd387530bcd92d4ae0839963 100644
--- a/meson.build
+++ b/meson.build
@@ -77,27 +77,5 @@ varlink_wrapper_py = find_program('./varlink-wrapper.py')
subdir('lib')
subdir('tool')
subdir('vim')
subdir('bash-completion')
-
-############################################################
-
-git = find_program('git', required : false)
-
-if git.found()
- all_files = run_command(
- git,
- ['--git-dir=@0@/.git'.format(meson.current_source_dir()),
- 'ls-files',
- ':/*.[ch]'])
- all_files = files(all_files.stdout().split())
-
- custom_target(
- 'tags',
- output : 'tags',
- command : ['env', 'etags', '-o', '@0@/TAGS'.format(meson.current_source_dir())] + all_files)
- custom_target(
- 'ctags',
- output : 'ctags',
- command : ['env', 'ctags', '-o', '@0@/tags'.format(meson.current_source_dir())] + all_files)
-endif
--
2.29.2

View File

@ -1,3 +0,0 @@
This repository is maintained by packit.
https://packit.dev/
The file was generated using packit 0.25.1.dev32+gfbebe78.

116
SPECS/libvarlink.spec Normal file
View File

@ -0,0 +1,116 @@
%global _hardened_build 1
Name: libvarlink
Version: 18
Release: 3%{?dist}
Summary: Varlink C Library
License: ASL 2.0
URL: https://github.com/varlink/%{name}
Source0: https://github.com/varlink/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires: meson
BuildRequires: python3-devel
BuildRequires: gcc
%description
Varlink C Library
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%package util
Summary: Varlink command line tools
%description util
The %{name}-util package contains varlink command line tools.
%prep
%setup -q
%build
%meson
%meson_build
%check
export LC_CTYPE=C.utf8
%meson_test
%install
%meson_install
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%license LICENSE
%{_libdir}/libvarlink.so.*
%files util
%{_bindir}/varlink
%{_datadir}/bash-completion/completions/varlink
%{_datadir}/vim/vimfiles/after/*
%files devel
%{_includedir}/varlink.h
%{_libdir}/libvarlink.so
%{_libdir}/pkgconfig/libvarlink.pc
%changelog
* Tue Jun 18 2019 Lokesh Mandvekar <lsm5@redhat.com> - 18-3
- Resolves: #1721229 - add gating.yaml
* Mon Jun 17 2019 Lokesh Mandvekar <lsm5@redhat.com> - 18-2
- Resolves: #1721229 - add tests
* Mon Jun 17 2019 Lokesh Mandvekar <lsm5@redhat.com> - 18-1
- Resolves: #1721229 - bump to v18
* Tue Nov 06 2018 Harald Hoyer <harald@redhat.com> - 16-1
- libvarlink 16
- fixed coverity issues
- Resolves: #1638294 - Interface name validation rule update
* Wed Oct 10 2018 <kay@redhat.com> - 15-1
- libvarlink 15
- Resolves: #1638294 - Interface name validation rule update
* Mon Aug 13 2018 Lokesh Mandvekar <lsm5@redhat.com> - 12-2
- Resolves: #1615546 - BR: python3-devel
* Mon Jul 16 2018 <kay@redhat.com> - 12-1
- libvarlink 12
* Sun Jun 17 2018 <kay@redhat.com>
- libvarlink 11
* Sat May 12 2018 <kay@redhat.com>
- libvarlink 10
* Fri Apr 13 2018 <kay@redhat.com>
- libvarlink 9
* Thu Apr 12 2018 <kay@redhat.com>
- libvarlink 8
* Mon Mar 26 2018 <kay@redhat.com>
- libvarlink 7
* Mon Mar 26 2018 <kay@redhat.com>
- libvarlink 6
* Fri Mar 23 2018 <kay@redhat.com>
- libvarlink 5
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Fri Feb 02 2018 Harald Hoyer <harald@redhat.com> - 1-2
- bump release
* Fri Feb 2 2018 <kay@redhat.com>
- libvarlink 1

View File

@ -1 +0,0 @@
libvarlink package is retired on c9s for CS-676

View File

@ -1,150 +0,0 @@
%global _hardened_build 1
Name: libvarlink
Version: 21
Release: 2%{?dist}
Summary: Varlink C Library
License: ASL 2.0 and BSD-3-Clause
URL: https://github.com/varlink/%{name}
Source0: https://github.com/varlink/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires: meson
BuildRequires: gcc
BuildRequires: glibc-langpack-de
%description
Varlink C Library
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%package util
Summary: Varlink command line tools
%description util
The %{name}-util package contains varlink command line tools.
%prep
%autosetup
%build
%meson
%meson_build
%check
export LC_CTYPE=C.utf8
%meson_test
%install
%meson_install
%ldconfig_scriptlets
%files
%license LICENSE
%{_libdir}/libvarlink.so.*
%files util
%{_bindir}/varlink
%{_datadir}/bash-completion/completions/varlink
%{_datadir}/vim/vimfiles/after/*
%files devel
%{_includedir}/varlink.h
%{_libdir}/libvarlink.so
%{_libdir}/pkgconfig/libvarlink.pc
%changelog
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com>
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
* Di Feb 23 2021 Harald Hoyer <harald@redhat.com> - 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 <harald@redhat.com> - 20-1
- libvarlink 20
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 19-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Thu Dec 10 2020 Stephen Gallagher <sgallagh@redhat.com> - 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 <releng@fedoraproject.org> - 19-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Tue Jun 30 2020 Jeff Law <law@redhat.com> - 19-2
Disable LTO
* Fri Mar 06 2020 Harald Hoyer <harald@redhat.com> - 19-1
- libvarlink 19
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 18-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 18-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Wed May 22 2019 Harald Hoyer <harald@redhat.com> - 18-1
- libvarlink 18
* Fri Feb 15 2019 Harald Hoyer <harald@redhat.com> - 17-1
- libvarlink 17
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 15-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Tue Oct 9 2018 <info@varlink.org> 15-1
- libvarlink 15
* Mon Oct 8 2018 <info@varlink.org> 14-1
- libvarlink 14
* Mon Jul 16 2018 <kay@redhat.com> - 12-1
- libvarlink 12
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 11-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Sun Jun 17 2018 <kay@redhat.com>
- libvarlink 11
* Sat May 12 2018 <kay@redhat.com>
- libvarlink 10
* Fri Apr 13 2018 <kay@redhat.com>
- libvarlink 9
* Thu Apr 12 2018 <kay@redhat.com>
- libvarlink 8
* Mon Mar 26 2018 <kay@redhat.com>
- libvarlink 7
* Mon Mar 26 2018 <kay@redhat.com>
- libvarlink 6
* Fri Mar 23 2018 <kay@redhat.com>
- libvarlink 5
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Fri Feb 02 2018 Harald Hoyer <harald@redhat.com> - 1-2
- bump release
* Fri Feb 2 2018 <kay@redhat.com>
- libvarlink 1

View File

@ -1 +0,0 @@
SHA512 (libvarlink-21.tar.gz) = 863f5ab0ae86fac4a4444fda8c084b55a2e51de382638ca1e859c82275892b1f726a429e28441df4271d3bb523b138f99ecebcc9adc513bc935333c6bb6096a7

View File

@ -1,25 +0,0 @@
#!/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

View File

@ -1,14 +0,0 @@
- hosts: localhost
roles:
- role: standard-test-beakerlib
tags:
- classic
tests:
- sanity
required_packages:
- libvarlink
- meson
- ninja-build
- gcc
- git
- cargo