cdef0b6
Name:       beakerlib
cdef0b6
Summary:    A shell-level integration testing library
17a4217
Version:    1.18
9a80954
Release:    9%{?dist}
cdef0b6
License:    GPLv2
cdef0b6
BuildArch:  noarch
147ba91
URL:        https://github.com/%{name}
ba9e2a8
Autoreq:    0
cdef0b6
Requires:   nfs-utils
ba9e2a8
Requires:   /bin/bash
ba9e2a8
Requires:   /bin/sh
ba9e2a8
Recommends: /usr/bin/python3
ba9e2a8
Recommends: /usr/bin/perl
Petr Muller cf733e4
Requires:   grep
Petr Muller cf733e4
Requires:   sed
70f6be4
Requires:   iproute
f1abf2a
Requires:   coreutils
f1abf2a
Requires:   tar
f1abf2a
Requires:   gzip
f1abf2a
Requires:   util-linux
f8125e3
Requires:   which
17a4217
Requires:   dnf-utils
ba9e2a8
Requires:   (wget or curl)
ba9e2a8
Suggests:   wget
4835bfb
Recommends: python3-lxml
c5e35e8
Recommends: /usr/bin/xmllint
1094bb2
Conflicts:  beakerlib-redhat < 1-30
1094bb2
Petr Muller cbcdf4b
BuildRequires: /usr/bin/pod2man
00dffe3
BuildRequires: perl-generators
a7feb07
BuildRequires: util-linux
e1b6086
3685030
Source0:    https://github.com/beakerlib/beakerlib/archive/%{name}-%{version}.tar.gz
3685030
Source1:    %{name}-tmpfiles.conf
Petr Muller 93c2592
ba9e2a8
Patch0: bugzilla-links.patch
17a4217
Patch1: python3.patch
e69bab9
Patch2: getopt-errors.patch
e69bab9
Patch3: log-command-T-option.patch
973febb
Patch4: fix-unbound-variables.patch
973febb
Patch5: services-state-store.patch
973febb
Patch6: local-FileSubmit-argument.patch
973febb
Patch7: cleanup-shell-options.patch
973febb
Patch8: correct-exit-code-gathering.patch
9a80954
Patch9: Count-CPUs-optimization.patch
9a80954
Patch10: enahanced-library-search.patch
Petr Muller 93c2592
cdef0b6
%prep
14740c6
%autosetup -p1
cdef0b6
cdef0b6
%build
Petr Muller 4ba7cbf
make build
Petr Muller 4ba7cbf
cdef0b6
%install
Petr Muller 27995b3
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
Petr Muller 94b63f9
%{!?_tmpfilesdir: %global _tmpfilesdir %{_prefix}/lib/tmpfiles.d/}
cdef0b6
rm -rf $RPM_BUILD_ROOT
Petr Muller 27995b3
make PKGDOCDIR=%{_pkgdocdir} DESTDIR=$RPM_BUILD_ROOT install
Petr Muller 94b63f9
mkdir -p $RPM_BUILD_ROOT/%{_tmpfilesdir}
Petr Muller 94b63f9
install -m 0644 %{SOURCE1} $RPM_BUILD_ROOT/%{_tmpfilesdir}/%{name}.conf
cdef0b6
3685030
%description
3685030
The BeakerLib project means to provide a library of various helpers, which
3685030
could be used when writing operating system level integration tests.
cdef0b6
cdef0b6
%files
cdef0b6
%dir %{_datadir}/%{name}
24d9649
%dir %{_datadir}/%{name}/xslt-templates
Petr Muller 27995b3
%dir %{_pkgdocdir}
Petr Muller 27995b3
%dir %{_pkgdocdir}/examples
Petr Muller 27995b3
%dir %{_pkgdocdir}/examples/*
cdef0b6
%{_datadir}/%{name}/dictionary.vim
cdef0b6
%{_datadir}/%{name}/*.sh
24d9649
%{_datadir}/%{name}/xslt-templates/*
cdef0b6
%{_bindir}/%{name}-*
cdef0b6
%{_mandir}/man1/%{name}*1*
Jiri Jaburek 68b0be3
%doc %{_pkgdocdir}/*
Petr Muller 94b63f9
%config %{_tmpfilesdir}/%{name}.conf
cdef0b6
3685030
%package vim-syntax
3685030
Summary: Files for syntax highlighting BeakerLib tests in VIM editor
3685030
Requires: vim-common
3685030
BuildRequires: vim-common
3685030
3685030
%description vim-syntax
3685030
Files for syntax highlighting BeakerLib tests in VIM editor
Petr Muller 93c2592
Petr Muller 93c2592
%files vim-syntax
Petr Muller 93c2592
%{_datadir}/vim/vimfiles/after/ftdetect/beakerlib.vim
Petr Muller 93c2592
%{_datadir}/vim/vimfiles/after/syntax/beakerlib.vim
Petr Muller 93c2592
cdef0b6
%changelog
9a80954
* Tue Jun 9 2019 Dalibor Pospisil <dapospis@redhat.com> - 1.18-9
9a80954
- optiomized CPU info gathering
9a80954
- enhanced library search
9a80954
341c4ec
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.18-8
341c4ec
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
341c4ec
21cf85e
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.18-7
21cf85e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
21cf85e
142e68e
* Mon Jun 3 2019 Dalibor Pospisil <dapospis@redhat.com> - 1.18-6
973febb
- fixed correct python checking, bz1715479
973febb
- fix unbound variables, issues #43
973febb
- fixed path to services state store
973febb
- fixed file submit to local patch is called outside test harness
973febb
- restore shell options in rlWatchdog, bz1713291
973febb
- correctly skip test version if there's no rpm source of it, bz1712495
973febb
e69bab9
* Thu May 9 2019 Dalibor Pospisil <dapospis@redhat.com> - 1.18-4
e69bab9
- show getopt parsing error (good for debugging)
e69bab9
- do not use -T option to submit command
e69bab9
c5e35e8
* Fri Apr 5 2019 Dalibor Pospisil <dapospis@redhat.com> - 1.18-3
17a4217
- rebase to beakerlib-1.18
17a4217
- support for dnf/dnf download
17a4217
- support direct systemctl call
70f6be4
- netstat replaced by ss
17a4217
- ability to run without python (no journal.xml)
17a4217
- better handling of reboots
17a4217
- better handling of persistent data
17a4217
- final report polishing
17a4217
- better compatibility with old bash
70f6be4
- <prefix>LibraryDir variable pointing to the library directory for all imported libraries
17a4217
- fallback to curl if wget is not available
17a4217
- updated documentation
17a4217
b7096ca
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.17-20
b7096ca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
b7096ca
ba9e2a8
* Thu Oct 25 2018 Dalibor Pospisil <dapospis@redhat.com> - 1.17-19
ba9e2a8
- fixed meta file generation
ba9e2a8
- follow url redirection when using curl
ba9e2a8
- fixed checking for python interpreter
ba9e2a8
- weak dependency on python3
ba9e2a8
- handling of missing python
ba9e2a8
- fixed srpm fetching
ba9e2a8
- fallback to curl if wget is not available
ba9e2a8
- changed requirements structure
ba9e2a8
1ca2eb9
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.17-16
1ca2eb9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
1ca2eb9
4835bfb
* Mon Jun 25 2018 Dalibor Pospisil <dapospis@redhat.com> - 1.17-15
4835bfb
- migrated to python3
4835bfb
- weak dependency of python3-lxml - without this the journal.xml just will not be generated
4835bfb
54e84a2
* Sat Feb 24 2018 Dalibor Pospisil <dapospis@redhat.com> - 1.17-13
54e84a2
- rlRun -s now waits for output logs to be flushed, bz1361246 + bz1416796
54e84a2
892df6e
* Wed Feb 14 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.17-12
892df6e
- Update Python 2 dependency declarations to new packaging standards
892df6e
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
892df6e
4dfd13a
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.17-11
4dfd13a
- Escape macros in %%changelog
4dfd13a
6f07e27
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.17-10
6f07e27
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
6f07e27
9163f6b
* Sat Feb 3 2018 Dalibor Pospisil <dapospis@redhat.com> - 1.17-9
3685030
- support rxvt terminal colors
3685030
- fixed persistent data load for bash version <= 4.1.2
3685030
- moved printing of final summray to rlJournalEnd
3685030
- extended coloring capabilities
3685030
- unified footer format
3685030
35ceec4
* Fri Jan 26 2018 Dalibor Pospisil <dapospis@redhat.com> - 1.17-7
35ceec4
- phase name sanitization (remove all weird characters)
35ceec4
- allow debug message to to only to console (speeds execution up in debug)
35ceec4
- allow to reboot inside of phase and continue there
35ceec4
- fixed persistent data loading
35ceec4
e2f27f4
* Mon Dec 18 2017 Dalibor Pospisil <dapospis@redhat.com> - 1.17-6
e2f27f4
- added missing dependecy
e2f27f4
2616528
* Wed Dec 13 2017 Dalibor Pospisil <dapospis@redhat.com> - 1.17-5
2616528
- result file tweaks
2616528
- fixed ifs issue
2616528
- improved performance of journaling.py
2616528
- fixed computing the length of text text journal per phase
2616528
- use internal test name and do not touch TEST variable if empty
2616528
- omit human readable meta file comments in non-debug mode
2616528
- enable nested phases by default
2616528
2616528
a7feb07
* Fri Oct 20 2017 Dalibor Pospisil <dapospis@redhat.com> - 1.17-4
a208441
- updated dependecies set
a208441
2097d28
* Wed Oct 18 2017 Dalibor Pospisil <dapospis@redhat.com> - 1.17-2
25a3494
- completely reworked getting rpms
25a3494
- bstor.py rewritten in pure bash
25a3494
- some doc fixes
25a3494
- completely rewritten journal
25a3494
- extended test suite
25a3494
- support for XSL transformation of journal.xml
25a3494
- provided xunit.xsl
25a3494
- libraries are now searched also in /usr/share/beakerlib-libraries
25a3494
33f82bf
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.16-4
33f82bf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
33f82bf
1094bb2
* Wed May 17 2017 Dalibor Pospisil <dapospis@redhat.com> - 1.16-3
1094bb2
- reworked rpm download function and fallbacks, bz1448510
1094bb2
- added links to bugzilla
1094bb2
1094bb2
* Fri Apr 21 2017 Dalibor Pospisil <dapospis@redhat.com> - 1.16-1
17c42fb
- added missing dependency
17c42fb
- updated links to beakerlib's new home, bz1436810
17c42fb
- added rlAssertLesser and rlAssertLesserOrEqual, bz1423488
17c42fb
- added rpm-handling functions rlFetchSrcForInstalled, rlRpmDownload, and rlRpmInstall
17c42fb
b21f4d7
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.15-2
b21f4d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
b21f4d7
f8ba037
* Thu Jan 26 2017 Dalibor Pospisil <dapospis@redhat.com> - 1.15-1
ab91de1
- added rlIsCentOS similar to rlIsRHEL, bz1214190
ab91de1
- added missing dependencies, bz1391969
ab91de1
- make rlRun use internal variables with more unique name, bz1285804
ab91de1
- fix rlRun exitcodes while using various switches, bz1303900
ab91de1
- rlFileRestore now better distinquish betwwen various errorneous situations, bz1370453
ab91de1
- rlService* won't be blocked be less(1) while systemctl redirection is in place, bz1383303
ab91de1
- variable <libPrefix>LibraryDir variable is created for all imported libraries, holding the path to the library source, bz1074487
ab91de1
- all logging messages are now printed to stderr, bz1171881
4dfd13a
- wildcard %%doc inclusion in spec, bz1206173
ab91de1
- prevent unbound variables, bz1228264
ab91de1
- new functions rlServiceEnabled/rlServiceDisable for enabling/disabling services, bz1234804
ab91de1
- updated documentation for rlImport -all, bz1246061
ab91de1
- rlAssertNotEquals now accept empty argument, bz1303618
ab91de1
- rlRun now uses better filename for output log, bz1314700
ab91de1
- fixed cosmetic discrepancy in log output, bz1374256
ab91de1
- added documentation reference for bkrdoc, bz843823
ab91de1
- added documentation of the testwatcher feature, bz1218169
ab91de1
- rlServiceRestore can restore all saved services in no parameter provided, bz494318
ab91de1
- rlCheckMount take mount options (ro/rw) into consideration, bz1191627
ab91de1
- added documentation for LOG_LEVEL variable, bz581816
ab91de1
6b3f47d
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.11-2
6b3f47d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
6b3f47d
7f41168
* Thu Oct 29 2015 Dalibor Pospisil <dapospis@redhat.com> - 1.11-1
7f41168
- fixed bugs  971347, 1076471, 1262888, 1216177, 1184414, 1192535, 1224345,
7f41168
  1211269, 1224362, 1205330, 1175513, 1211617, 1221352
7f41168
4f27ccf
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10-3
4f27ccf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
4f27ccf
c65a394
* Wed Feb 4 2015 Dalibor Pospisil <dapospis@redhat.com> - 1.10-2
c65a394
- remount if mounting already mounted mount point with options,
c65a394
  fixes bug 1173623
c65a394
a609649
* Mon Dec 1 2014 Dalibor Pospisil <dapospis@redhat.com> - 1.10-1
e0ee3c1
- dropped support for rlSEBoolean functions
e0ee3c1
- fixed bugs 554280, 1003433, 1103137, 1105299, 1124440, 1124454, 1131934,
e0ee3c1
  1131963, 1136206, 1155158, 1155234, 1158464, 1159191, and 1165265
e0ee3c1
e0ee3c1
* Thu Jul 17 2014 Dalibor Pospisil <dapospis@redhat.com> - 1.9-3
973099d
- reverted conditional phases support
973099d
c65a394
* Wed Jul 2 2014 Dalibor Pospisil <dapospis@redhat.com> - 1.9-2
e1b6086
- bunch of fixes
e1b6086
e1b32c8
* Tue Jun 17 2014 Dalibor Pospisil <dapospis@redhat.com> - 1.9-1
e1b32c8
- rebase to upstream 1.9
e1b32c8
2037f1c
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8-5
2037f1c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2037f1c
Petr Muller 27995b3
* Tue Aug 20 2013 Petr Muller <muller@redhat.com> - 1.8-4
Petr Muller 27995b3
- Fix docdir usage to comply with Unversioned Docdirs
Petr Muller 27995b3
1f4f50f
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8-3
1f4f50f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
1f4f50f
a4a491a
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 1.8-2
a4a491a
- Perl 5.18 rebuild
a4a491a
Petr Muller 6206e00
* Mon Jun 10 2013 Petr Muller <muller@redhat.com> - 1.8-1
Petr Muller 6206e00
- Update to new upstream version 1.8
Petr Muller 6206e00
Petr Muller 787b71b
* Thu May 09 2013 Petr Muller <muller@redhat.com> - 1.7-2
Petr Muller 787b71b
- Robustify journal to accept umlaut in distro release name
Petr Muller c0db686
- Fix internal documentation
Petr Muller 787b71b
Petr Muller 4ba7cbf
* Tue Apr 30 2013 Petr Muller <muller@redhat.com> - 1.7-1
Petr Muller 4ba7cbf
- rebase to upstream 1.7
Petr Muller 4ba7cbf
Petr Muller cbcdf4b
* Tue Mar 05 2013 Petr Muller <muller@redhat.com> - 1.6-3
Petr Muller cbcdf4b
- Build ceased to figure out pod2man dep automatically: fixed
Petr Muller cbcdf4b
95fb9e0
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6-2
95fb9e0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
95fb9e0
Petr Muller 948fdb7
* Wed Jul 25 2012 Petr Muller <muller@redhat.com> - 1.6-1
Petr Muller 948fdb7
- Updated to new upstream version
Petr Muller 948fdb7
68a24d0
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-2
68a24d0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
68a24d0
Petr Muller 03d227e
* Wed May 02 2012 Petr Muller <pmuller@redhat.com> - 1.5-1
Petr Muller 03d227e
- update to new upstream version
Petr Muller 03d227e
f5ad9e3
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-2
f5ad9e3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
f5ad9e3
Petr Muller f02c0bb
* Fri Jul 01 2011 Petr Muller <pmuller@redhat.com> - 1.4-1
Petr Muller f02c0bb
- update to new upstream version
Petr Muller f02c0bb
bbedbc5
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-2
bbedbc5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
bbedbc5
cdef0b6
* Wed May 12 2010 Petr Muller <pmuller@redhat.com> - 1.3-1
cdef0b6
- packaging fixes: permission fixes, added dep on python2,
cdef0b6
- added examples as documentation files
cdef0b6
cdef0b6
* Thu Apr 29 2010 Petr Muller <pmuller@redhat.com> - 1.2-1
cdef0b6
- packaging fixes: docdir change, specfile tweaks
cdef0b6
- using consistently install -p everywhere
cdef0b6
cdef0b6
* Thu Apr 08 2010 Petr Muller <pmuller@redhat.com> - 1.2-0
cdef0b6
- disable the testsuite and removed a 3rd party lib from the tree
cdef0b6
cdef0b6
* Mon Mar 22 2010 Petr Muller <pmuller@redhat.com> - 1.1-0
cdef0b6
- packaging fixes
cdef0b6
cdef0b6
* Fri Feb 12 2010 Petr Muller <pmuller@redhat.com> - 1.0-3
cdef0b6
- fixed bad path preventing tests from running
cdef0b6
cdef0b6
* Fri Feb 12 2010 Petr Muller <pmuller@redhat.com> - 1.0-2
cdef0b6
- zillion of specfile tweaks for Fedora inclusion
cdef0b6
- staf-rhts files were removed
cdef0b6
- added a LICENSE file
cdef0b6
- added a better package summary
cdef0b6
- directory structure revamped
cdef0b6
- improved rLDejaSum
cdef0b6
cdef0b6
* Wed Jan 27 2010 Petr Muller <pmuller@redhat.com> - 1.0-1
cdef0b6
- genesis of the standalone BeakerLib