Name: beakerlib Summary: A shell-level integration testing library Version: 1.18 Release: 6%{?dist} License: GPLv2 Group: Development/Libraries BuildArch: noarch URL: https://github.com/%{name} Requires: nfs-utils Requires: /bin/bash Requires: /bin/sh Requires: /usr/bin/python Requires: /usr/bin/perl Requires: grep Requires: sed Requires: iproute Requires: coreutils Requires: tar Requires: gzip Requires: util-linux Requires: which Requires: yum-utils Requires: wget Requires: python-lxml Requires: /usr/bin/xmllint Conflicts: beakerlib-redhat < 1-30 BuildRequires: /usr/bin/pod2man BuildRequires: perl-generators BuildRequires: util-linux Source0: https://github.com/beakerlib/beakerlib/archive/%{name}-%{version}.tar.gz Source1: %{name}-tmpfiles.conf Patch0: bugzilla-links.patch Patch1: getopt-errors.patch Patch2: log-command-T-option.patch Patch3: fix-unbound-variables.patch Patch4: services-state-store.patch Patch5: local-FileSubmit-argument.patch Patch6: cleanup-shell-options.patch Patch7: correct-exit-code-gathering.patch %prep %autosetup -p1 %build make build %install %{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}} %{!?_tmpfilesdir: %global _tmpfilesdir %{_prefix}/lib/tmpfiles.d/} rm -rf $RPM_BUILD_ROOT make PKGDOCDIR=%{_pkgdocdir} DESTDIR=$RPM_BUILD_ROOT install mkdir -p $RPM_BUILD_ROOT/%{_tmpfilesdir} install -m 0644 %{SOURCE1} $RPM_BUILD_ROOT/%{_tmpfilesdir}/%{name}.conf %description The BeakerLib project means to provide a library of various helpers, which could be used when writing operating system level integration tests. %files %defattr(-,root,root,-) %dir %{_datadir}/%{name} %dir %{_datadir}/%{name}/xslt-templates %dir %{_pkgdocdir} %dir %{_pkgdocdir}/examples %dir %{_pkgdocdir}/examples/* %{_datadir}/%{name}/dictionary.vim %{_datadir}/%{name}/*.sh %{_datadir}/%{name}/xslt-templates/* %{_bindir}/%{name}-* %{_mandir}/man1/%{name}*1* %doc %{_pkgdocdir}/* %config %{_tmpfilesdir}/%{name}.conf %package vim-syntax Summary: Files for syntax highlighting BeakerLib tests in VIM editor Group: Development/Libraries Requires: vim-common BuildRequires: vim-common %description vim-syntax Files for syntax highlighting BeakerLib tests in VIM editor %files vim-syntax %{_datadir}/vim/vimfiles/after/ftdetect/beakerlib.vim %{_datadir}/vim/vimfiles/after/syntax/beakerlib.vim %changelog * Mon Jun 3 2019 Dalibor Pospisil - 1.18-6 - fix unbound variables, issues #43 - fixed path to services state store - fixed file submit to local patch is called outside test harness - restore shell options in rlWatchdog, bz1713291 - correctly skip test version if there's no rpm source of it, bz1712495 * Thu May 9 2019 Dalibor Pospisil - 1.18-4 - show getopt parsing error (good for debugging) - do not use -T option to submit command * Fri Apr 5 2019 Dalibor Pospisil - 1.18-3 - rebase to beakerlib-1.18 - support for dnf/dnf download - support direct systemctl call - netstat replaced by ss - ability to run without python (no journal.xml) - better handling of reboots - better handling of persistent data - final report polishing - better compatibility with old bash - LibraryDir variable pointing to the library directory for all imported libraries - fallback to curl if wget is not available - updated documentation * Sat Feb 24 2018 Dalibor Pospisil - 1.17-13 - rlRun -s now waits for output logs to be flushed, bz1361246 + bz1416796 * Wed Feb 14 2018 Iryna Shcherbina - 1.17-12 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) * Fri Feb 09 2018 Igor Gnatenko - 1.17-11 - Escape macros in %%changelog * Wed Feb 07 2018 Fedora Release Engineering - 1.17-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Sat Feb 3 2018 Dalibor Pospisil - 1.17-9 - support rxvt terminal colors - fixed persistent data load for bash version <= 4.1.2 - moved printing of final summray to rlJournalEnd - extended coloring capabilities - unified footer format * Fri Jan 26 2018 Dalibor Pospisil - 1.17-7 - phase name sanitization (remove all weird characters) - allow debug message to to only to console (speeds execution up in debug) - allow to reboot inside of phase and continue there - fixed persistent data loading * Mon Dec 18 2017 Dalibor Pospisil - 1.17-6 - added missing dependecy * Wed Dec 13 2017 Dalibor Pospisil - 1.17-5 - result file tweaks - fixed ifs issue - improved performance of journaling.py - fixed computing the length of text text journal per phase - use internal test name and do not touch TEST variable if empty - omit human readable meta file comments in non-debug mode - enable nested phases by default * Fri Oct 20 2017 Dalibor Pospisil - 1.17-4 - updated dependecies set * Wed Oct 18 2017 Dalibor Pospisil - 1.17-2 - completely reworked getting rpms - bstor.py rewritten in pure bash - some doc fixes - completely rewritten journal - extended test suite - support for XSL transformation of journal.xml - provided xunit.xsl - libraries are now searched also in /usr/share/beakerlib-libraries * Wed Jul 26 2017 Fedora Release Engineering - 1.16-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Wed May 17 2017 Dalibor Pospisil - 1.16-3 - reworked rpm download function and fallbacks, bz1448510 - added links to bugzilla * Fri Apr 21 2017 Dalibor Pospisil - 1.16-1 - added missing dependency - updated links to beakerlib's new home, bz1436810 - added rlAssertLesser and rlAssertLesserOrEqual, bz1423488 - added rpm-handling functions rlFetchSrcForInstalled, rlRpmDownload, and rlRpmInstall * Fri Feb 10 2017 Fedora Release Engineering - 1.15-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Jan 26 2017 Dalibor Pospisil - 1.15-1 - added rlIsCentOS similar to rlIsRHEL, bz1214190 - added missing dependencies, bz1391969 - make rlRun use internal variables with more unique name, bz1285804 - fix rlRun exitcodes while using various switches, bz1303900 - rlFileRestore now better distinquish betwwen various errorneous situations, bz1370453 - rlService* won't be blocked be less(1) while systemctl redirection is in place, bz1383303 - variable LibraryDir variable is created for all imported libraries, holding the path to the library source, bz1074487 - all logging messages are now printed to stderr, bz1171881 - wildcard %%doc inclusion in spec, bz1206173 - prevent unbound variables, bz1228264 - new functions rlServiceEnabled/rlServiceDisable for enabling/disabling services, bz1234804 - updated documentation for rlImport -all, bz1246061 - rlAssertNotEquals now accept empty argument, bz1303618 - rlRun now uses better filename for output log, bz1314700 - fixed cosmetic discrepancy in log output, bz1374256 - added documentation reference for bkrdoc, bz843823 - added documentation of the testwatcher feature, bz1218169 - rlServiceRestore can restore all saved services in no parameter provided, bz494318 - rlCheckMount take mount options (ro/rw) into consideration, bz1191627 - added documentation for LOG_LEVEL variable, bz581816 * Wed Feb 03 2016 Fedora Release Engineering - 1.11-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Oct 29 2015 Dalibor Pospisil - 1.11-1 - fixed bugs 971347, 1076471, 1262888, 1216177, 1184414, 1192535, 1224345, 1211269, 1224362, 1205330, 1175513, 1211617, 1221352 * Wed Jun 17 2015 Fedora Release Engineering - 1.10-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Wed Feb 4 2015 Dalibor Pospisil - 1.10-2 - remount if mounting already mounted mount point with options, fixes bug 1173623 * Mon Dec 1 2014 Dalibor Pospisil - 1.10-1 - dropped support for rlSEBoolean functions - fixed bugs 554280, 1003433, 1103137, 1105299, 1124440, 1124454, 1131934, 1131963, 1136206, 1155158, 1155234, 1158464, 1159191, and 1165265 * Thu Jul 17 2014 Dalibor Pospisil - 1.9-3 - reverted conditional phases support * Wed Jul 2 2014 Dalibor Pospisil - 1.9-2 - bunch of fixes * Tue Jun 17 2014 Dalibor Pospisil - 1.9-1 - rebase to upstream 1.9 * Sat Jun 07 2014 Fedora Release Engineering - 1.8-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Tue Aug 20 2013 Petr Muller - 1.8-4 - Fix docdir usage to comply with Unversioned Docdirs * Sat Aug 03 2013 Fedora Release Engineering - 1.8-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Wed Jul 17 2013 Petr Pisar - 1.8-2 - Perl 5.18 rebuild * Mon Jun 10 2013 Petr Muller - 1.8-1 - Update to new upstream version 1.8 * Thu May 09 2013 Petr Muller - 1.7-2 - Robustify journal to accept umlaut in distro release name - Fix internal documentation * Tue Apr 30 2013 Petr Muller - 1.7-1 - rebase to upstream 1.7 * Tue Mar 05 2013 Petr Muller - 1.6-3 - Build ceased to figure out pod2man dep automatically: fixed * Wed Feb 13 2013 Fedora Release Engineering - 1.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Wed Jul 25 2012 Petr Muller - 1.6-1 - Updated to new upstream version * Wed Jul 18 2012 Fedora Release Engineering - 1.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Wed May 02 2012 Petr Muller - 1.5-1 - update to new upstream version * Thu Jan 12 2012 Fedora Release Engineering - 1.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Fri Jul 01 2011 Petr Muller - 1.4-1 - update to new upstream version * Mon Feb 07 2011 Fedora Release Engineering - 1.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Wed May 12 2010 Petr Muller - 1.3-1 - packaging fixes: permission fixes, added dep on python2, - added examples as documentation files * Thu Apr 29 2010 Petr Muller - 1.2-1 - packaging fixes: docdir change, specfile tweaks - using consistently install -p everywhere * Thu Apr 08 2010 Petr Muller - 1.2-0 - disable the testsuite and removed a 3rd party lib from the tree * Mon Mar 22 2010 Petr Muller - 1.1-0 - packaging fixes * Fri Feb 12 2010 Petr Muller - 1.0-3 - fixed bad path preventing tests from running * Fri Feb 12 2010 Petr Muller - 1.0-2 - zillion of specfile tweaks for Fedora inclusion - staf-rhts files were removed - added a LICENSE file - added a better package summary - directory structure revamped - improved rLDejaSum * Wed Jan 27 2010 Petr Muller - 1.0-1 - genesis of the standalone BeakerLib