Blame SPECS/beakerlib.spec

e965a0
Name:       beakerlib
e965a0
Summary:    A shell-level integration testing library
e965a0
Version:    1.17
e965a0
Release:    19%{?dist}
e965a0
License:    GPLv2
e965a0
Group:      Development/Libraries
e965a0
BuildArch:  noarch
e965a0
URL:        https://github.com/%{name}
e965a0
Autoreq:    0
e965a0
Requires:   nfs-utils
e965a0
Requires:   /bin/bash
e965a0
Requires:   /bin/sh
e965a0
Recommends: /usr/libexec/platform-python
e965a0
Recommends: /usr/bin/perl
e965a0
Requires:   grep
e965a0
Requires:   sed
e965a0
Requires:   net-tools
e965a0
Requires:   coreutils
e965a0
Requires:   tar
e965a0
Requires:   gzip
e965a0
Requires:   util-linux
e965a0
Requires:   which
e965a0
Requires:   (wget or curl)
e965a0
Suggests:   wget
e965a0
Recommends: python3-lxml
e965a0
Recommends: xmllint
e965a0
Obsoletes:  rhtslib beaker-lib
e965a0
Provides:   rhtslib beaker-lib
e965a0
Conflicts:  beakerlib-redhat < 1-30
e965a0
e965a0
BuildRequires: /usr/bin/pod2man
e965a0
BuildRequires: perl-generators
e965a0
BuildRequires: util-linux
e965a0
e965a0
Source0:    https://github.com/beakerlib/beakerlib/archive/%{name}-%{version}.tar.gz
e965a0
Source1:    %{name}-tmpfiles.conf
e965a0
e965a0
Patch0: bugzilla-links.patch
e965a0
Patch1: test-built-time.patch
e965a0
Patch2: result-file.patch
e965a0
Patch3: ifs-issue.patch
e965a0
Patch4: journaling-fixes.patch
e965a0
Patch5: get-text-journal-size.patch
e965a0
Patch6: var-TEST.patch
e965a0
Patch7: reduce-meta.patch
e965a0
Patch8: enable-nested-phases.patch
e965a0
Patch9: debug-to-console.patch
e965a0
Patch10: phase-names-sanitization.patch
e965a0
Patch11: reboot-in-phase.patch
e965a0
Patch12: rxvt-terminals-coloring.patch
e965a0
Patch13: persistent-data-load.patch
e965a0
Patch14: final-summary-in-rlJournalEnd.patch
e965a0
Patch15: extended-coloring-capabilities.patch
e965a0
Patch16: unified-footer.patch
e965a0
Patch17: rlRun-output.patch
e965a0
Patch18: python2.patch
e965a0
Patch19: python3.patch
e965a0
Patch20: srpm-fetch.patch
e965a0
Patch21: journalling-import-check.patch
e965a0
Patch22: handle-missing-python.patch
e965a0
Patch23: wget2curl-fallback.patch
e965a0
Patch24: platform-python.patch
e965a0
Patch25: meta-format-fix.patch
e965a0
e965a0
%prep
e965a0
%autosetup -p1
e965a0
e965a0
%build
e965a0
make build
e965a0
e965a0
%install
e965a0
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
e965a0
%{!?_tmpfilesdir: %global _tmpfilesdir %{_prefix}/lib/tmpfiles.d/}
e965a0
rm -rf $RPM_BUILD_ROOT
e965a0
make PKGDOCDIR=%{_pkgdocdir} DESTDIR=$RPM_BUILD_ROOT install
e965a0
mkdir -p $RPM_BUILD_ROOT/%{_tmpfilesdir}
e965a0
install -m 0644 %{SOURCE1} $RPM_BUILD_ROOT/%{_tmpfilesdir}/%{name}.conf
e965a0
e965a0
%description
e965a0
The BeakerLib project means to provide a library of various helpers, which
e965a0
could be used when writing operating system level integration tests.
e965a0
e965a0
%files
e965a0
%defattr(-,root,root,-)
e965a0
%dir %{_datadir}/%{name}
e965a0
%dir %{_datadir}/%{name}/xslt-templates
e965a0
%dir %{_pkgdocdir}
e965a0
%dir %{_pkgdocdir}/examples
e965a0
%dir %{_pkgdocdir}/examples/*
e965a0
%{_datadir}/%{name}/dictionary.vim
e965a0
%{_datadir}/%{name}/*.sh
e965a0
%{_datadir}/%{name}/xslt-templates/*
e965a0
%{_bindir}/%{name}-*
e965a0
%{_mandir}/man1/%{name}*1*
e965a0
%doc %{_pkgdocdir}/*
e965a0
%config %{_tmpfilesdir}/%{name}.conf
e965a0
e965a0
%package vim-syntax
e965a0
Summary: Files for syntax highlighting BeakerLib tests in VIM editor
e965a0
Group: Development/Libraries
e965a0
Requires: vim-common
e965a0
BuildRequires: vim-common
e965a0
e965a0
%description vim-syntax
e965a0
Files for syntax highlighting BeakerLib tests in VIM editor
e965a0
e965a0
%files vim-syntax
e965a0
%{_datadir}/vim/vimfiles/after/ftdetect/beakerlib.vim
e965a0
%{_datadir}/vim/vimfiles/after/syntax/beakerlib.vim
e965a0
e965a0
%changelog
e965a0
* Thu Sep 7 2018 Dalibor Pospisil <dapospis@redhat.com> - 1.17-19
e965a0
- fixed meta file generation
e965a0
- follow url redirection when using curl
e965a0
- fixed checking for python interpreter
e965a0
e965a0
* Wed Aug 22 2018 Dalibor Pospisil <dapospis@redhat.com> - 1.17-16
e965a0
- weak dependency on platform-python
e965a0
- handling of missing python
e965a0
- fixed srpm fetching
e965a0
- fallback to curl if wget is not available
e965a0
- changed requirements structure
e965a0
e965a0
* Mon Jun 25 2018 Dalibor Pospisil <dapospis@redhat.com> - 1.17-15
e965a0
- migrated to python3
e965a0
- weak dependency of python3-lxml - without this the journal.xml just will not be generated
e965a0
e965a0
* Tue May 15 2018 Dalibor Pospisil <dapospis@redhat.com> - 1.17-14
e965a0
- use python2 as an interpreter of python scripts
e965a0
e965a0
* Sat Feb 24 2018 Dalibor Pospisil <dapospis@redhat.com> - 1.17-13
e965a0
- rlRun -s now waits for output logs to be flushed, bz1361246 + bz1416796
e965a0
e965a0
* Wed Feb 14 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.17-12
e965a0
- Update Python 2 dependency declarations to new packaging standards
e965a0
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
e965a0
e965a0
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.17-11
e965a0
- Escape macros in %%changelog
e965a0
e965a0
* Sat Feb 3 2018 Dalibor Pospisil <dapospis@redhat.com> - 1.17-9
e965a0
- support rxvt terminal colors
e965a0
- fixed persistent data load for bash version <= 4.1.2
e965a0
- moved printing of final summray to rlJournalEnd
e965a0
- extended coloring capabilities
e965a0
- unified footer format
e965a0
e965a0
* Fri Jan 26 2018 Dalibor Pospisil <dapospis@redhat.com> - 1.17-7
e965a0
- phase name sanitization (remove all weird characters)
e965a0
- allow debug message to to only to console (speeds execution up in debug)
e965a0
- allow to reboot inside of phase and continue there
e965a0
- fixed persistent data loading
e965a0
e965a0
* Mon Dec 18 2017 Dalibor Pospisil <dapospis@redhat.com> - 1.17-6
e965a0
- added missing dependecy
e965a0
e965a0
* Wed Dec 13 2017 Dalibor Pospisil <dapospis@redhat.com> - 1.17-5
e965a0
- result file tweaks
e965a0
- fixed ifs issue
e965a0
- improved performance of journaling.py
e965a0
- fixed computing the length of text text journal per phase
e965a0
- use internal test name and do not touch TEST variable if empty
e965a0
- omit human readable meta file comments in non-debug mode
e965a0
- enable nested phases by default
e965a0
e965a0
e965a0
* Fri Oct 20 2017 Dalibor Pospisil <dapospis@redhat.com> - 1.17-4
e965a0
- updated dependecies set
e965a0
e965a0
* Wed Oct 18 2017 Dalibor Pospisil <dapospis@redhat.com> - 1.17-2
e965a0
- completely reworked getting rpms
e965a0
- bstor.py rewritten in pure bash
e965a0
- some doc fixes
e965a0
- completely rewritten journal
e965a0
- extended test suite
e965a0
- support for XSL transformation of journal.xml
e965a0
- provided xunit.xsl
e965a0
- libraries are now searched also in /usr/share/beakerlib-libraries
e965a0
e965a0
* Wed May 17 2017 Dalibor Pospisil <dapospis@redhat.com> - 1.16-3
e965a0
- reworked rpm download function and fallbacks, bz1448510
e965a0
- added links to bugzilla
e965a0
e965a0
* Fri Apr 21 2017 Dalibor Pospisil <dapospis@redhat.com> - 1.16-2
e965a0
- added missing dependency
e965a0
- updated links to beakerlib's new home, bz1436810
e965a0
- added rlAssertLesser and rlAssertLesserOrEqual, bz1423488
e965a0
- added rpm-handling functions rlFetchSrcForInstalled, rlRpmDownload, and rlRpmInstall
e965a0
e965a0
* Thu Jan 26 2017 Dalibor Pospisil <dapospis@redhat.com> - 1.15-1
e965a0
- added rlIsCentOS similar to rlIsRHEL, bz1214190
e965a0
- added missing dependencies, bz1391969
e965a0
- make rlRun use internal variables with more unique name, bz1285804
e965a0
- fix rlRun exitcodes while using various switches, bz1303900
e965a0
- rlFileRestore now better distinquish betwwen various errorneous situations, bz1370453
e965a0
- rlService* won't be blocked be less(1) while systemctl redirection is in place, bz1383303
e965a0
- variable <libPrefix>LibraryDir variable is created for all imported libraries, holding the path to the library source, bz1074487
e965a0
- all logging messages are now printed to stderr, bz1171881
e965a0
- wildcard %%doc inclusion in spec, bz1206173
e965a0
- prevent unbound variables, bz1228264
e965a0
- new functions rlServiceEnabled/rlServiceDisable for enabling/disabling services, bz1234804
e965a0
- updated documentation for rlImport -all, bz1246061
e965a0
- rlAssertNotEquals now accept empty argument, bz1303618
e965a0
- rlRun now uses better filename for output log, bz1314700
e965a0
- fixed cosmetic discrepancy in log output, bz1374256
e965a0
- added documentation reference for bkrdoc, bz843823
e965a0
- added documentation of the testwatcher feature, bz1218169
e965a0
- rlServiceRestore can restore all saved services in no parameter provided, bz494318
e965a0
- rlCheckMount take mount options (ro/rw) into consideration, bz1191627
e965a0
- added documentation for LOG_LEVEL variable, bz581816
e965a0
e965a0
* Thu Oct 29 2015 Dalibor Pospisil <dapospis@redhat.com> - 1.11-1
e965a0
- fixed bugs  971347, 1076471, 1262888, 1216177, 1184414, 1192535, 1224345,
e965a0
  1211269, 1224362, 1205330, 1175513, 1211617, 1221352
e965a0
e965a0
* Wed Feb 4 2015 Dalibor Pospisil <dapospis@redhat.com> - 1.10-2
e965a0
- remount if mounting already mounted mount point with options,
e965a0
  fixes bug 1173623
e965a0
e965a0
* Mon Dec 1 2014 Dalibor Pospisil <dapospis@redhat.com> - 1.10-1
e965a0
- dropped support for rlSEBoolean functions
e965a0
- fixed bugs 554280, 1003433, 1103137, 1105299, 1124440, 1124454, 1131934,
e965a0
  1131963, 1136206, 1155158, 1155234, 1158464, 1159191, and 1165265
e965a0
e965a0
* Thu Jul 17 2014 Dalibor Pospisil <dapospis@redhat.com> - 1.9-3
e965a0
- reverted conditional phases support
e965a0
e965a0
* Wed Jul 2 2014 Dalibor Pospisil <dapospis@redhat.com> - 1.9-2
e965a0
- bunch of fixes
e965a0
e965a0
* Tue Jun 17 2014 Dalibor Pospisil <dapospis@redhat.com> - 1.9-1
e965a0
- rebase to upstream 1.9
e965a0
e965a0
* Mon Jul 15 2013 Petr Muller <muller@redhat.com> - 1.8-2
e965a0
- Syntax highlighting in VIM (Filip Holec)
e965a0
e965a0
* Fri Jun 07 2013 Petr Muller <muller@redhat.com> - 1.8-1
e965a0
- Robustify journal against non-ascii in release names (Petr Muller)
e965a0
- Make PURPOSE file optional (Nikolai Kondrashov)
e965a0
- Fix doc paths to /usr/share (Petr Muller)
e965a0
- Fix corner cases of library discovery (Petr Muller)
e965a0
- Robustify /dev/null usage in rlRun (Petr Muller)
e965a0
- Provide more information in passed tests' messages (Petr Muller)
e965a0
- rlService* functions provide more debugging information (Filip Holec)
e965a0
- fix rlBundleLogs (Filip Holec)
e965a0
- fix rlAssertGrep parameter processing (Miroslav Franc)
e965a0
e965a0
* Thu Apr 25 2013 Petr Muller <muller@redhat.com> - 1.7-1
e965a0
- rebase to latest upstream
e965a0
- fix padding around message timestamps (Dalibor Pospisil)
e965a0
e965a0
* Wed Apr 10 2013 Petr Muller <muller@redhat.com> - 1.6.99.3-1
e965a0
- third attempt for upstream release
e965a0
- show more package information in the header (Petr Muller)
e965a0
- journal unicode robustifications (Petr Muller)
e965a0
- fix crashes when /etc/redhat-release is not present (Petr Muller)
e965a0
- fix searching of library paths in rlImport (Dalibor Pospisil)
e965a0
- rlImport --all (Dalibor Pospisil)
e965a0
- rlImport support for RhtsRequires: Library(foo/bar) (Dalibor Pospisil)
e965a0
- Improved bookkeeping on already imported libraries (Dalibor Pospisil)
e965a0
- rewritten rlImport to run also on old bash (Dalibor Pospisil)
e965a0
- fix rlImport for libs with weird characters in name (Dalibor Pospisil)
e965a0
- rlLogDebug: fix return code (Dalibor Pospisil)
e965a0
- several more small fixes
e965a0
e965a0
* Tue Mar 05 2013 Petr Muller <muller@redhat.com> - 1.6.99.2-1
e965a0
- use only distro Python, not the SCL one
e965a0
- fix pipefail detection for older RHELs
e965a0
- rlAssertRpm --all
e965a0
- rlAssertBinaryOrigin
e965a0
- journal can be used as a Python module now
e965a0
e965a0
* Mon Jan 21 2013 Petr Muller <muller@redhat.com> - 1.6.99.1-1
e965a0
- installation machinery fix
e965a0
e965a0
* Thu Jan 10 2013 Petr Muller <muller@redhat.com> - 1.6.99-1
e965a0
- testing the rebase to potential 1.7
e965a0
- journal storage cleanups and fixes (Jiri Jaburek)
e965a0
- fixes in rlMount functions (Petr Muller)
e965a0
- code cleanups
e965a0
- use non-tmpfs-backed storage where needed (Petr Muller)
e965a0
- rlFileBackup namespace support (Jiri Jaburek)
e965a0
- rlImport implementation
e965a0
e965a0
* Thu Jul 26 2012 Petr Muller <muller@redhat.com> - 1.6-2
e965a0
- packaging tweaks
e965a0
e965a0
* Thu Jul 26 2012 Petr Muller <muller@redhat.com> - 1.6-1
e965a0
- update to upstream version
e965a0
- code clean-up
e965a0
- fix rlFileBackup behavior with symlinks (Karel Srot)
e965a0
- fix rlGetDistroRelease for RHEL7 Alphas
e965a0
- fix journal tracebacks related to time operations
e965a0
e965a0
* Mon Jun 11 2012 Petr Muller <muller@redhat.com> - 1.5-2
e965a0
- extended rlIs{RHEL/Fedora} syntax allowing intervals (Jiri Jaburek)
e965a0
e965a0
* Tue May 15 2012 Petr Muller <muller@redhat.com> - 1.5-1
e965a0
- fix bz754180 (Matej Kollar)
e965a0
- fork lsb_release and remove dep on lsb_redhat
e965a0
e965a0
* Thu Mar 08 2012 Petr Muller <muller@redhat.com> - 1.4.2
e965a0
- fix rlGetDistro* functions for RHEL7 (Petr Muller)
e965a0
- fix SELinux detection in rlFileBackup/Restore (Petr Muller)
e965a0
e965a0
* Fri Mar 02 2012 Petr Muller <muller@redhat.com> - 1.4-1
e965a0
- merge upstream changes and bump the version
e965a0
- added rlIsXXXX functions from RH internal (Petr Muller)
e965a0
- added COBBLER_SERVER function export if available (Marian Ganisin)
e965a0
- unified bash syntax (Roman Rakus)
e965a0
- INFO logs are now shown by default (Petr Splichal)
e965a0
- rlFileBackup of symlinks improvements (Petr Splichal)
e965a0
- added a dep on redhat-lsb to accomodate rlIsXXXX
e965a0
- log colorizing (Petr Splichal)
e965a0
- fix rlFileRestore problems with symlinks (Filip Skola)
e965a0
- added timezone information to start/end time (Pavel Holica)
e965a0
- deprecate the ABORT state (Brano Nater)
e965a0
- fix rlWatchdog (Mirek Franc)
e965a0
- rlCheckMount improvements (Brano Nater)
e965a0
- add a summary of phase results to logfile (Ales Zelinka)
e965a0
- config option for more verbose journal printing (Jan Hutar)
e965a0
- Testsuite improvements (Jan Hutar)
e965a0
- add John Lockhart's deja-summarize)
e965a0
e965a0
* Tue Feb 21 2012 Petr Muller <pmuller@redhat.com> - 1.3-5
e965a0
- rebuild for RHEL7
e965a0
e965a0
* Fri Oct 01 2010 Petr Muller <pmuller@redhat.com> - 1.3-4
e965a0
- fixed bug when rlRun with -l param didn't work properly (Jan Hutar)
e965a0
- fixed selinux context problems in rlFileRestore (Petr Splichal)
e965a0
e965a0
* Wed Jun 09 2010 Petr Muller <pmuller@redhat.com> - 1.3-3
e965a0
- packaging fix (remove the unnecessary tag from release)
e965a0
e965a0
* Wed Jun 09 2010 Petr Muller <pmuller@redhat.com> - 1.3-2
e965a0
- functions for determining current test status (Ales Zelinka, Petr Splichal]
e965a0
- removal of unnecessary sync in rlRun (Petr Splichal)
e965a0
- packaging tuned for rhel6
e965a0
e965a0
* Wed May 12 2010 Petr Muller <pmuller@redhat.com> - 1.3-1
e965a0
- packaging fixes: permission fixes, added dep on python2,
e965a0
- added examples as documentation files
e965a0
e965a0
* Thu Apr 29 2010 Petr Muller <pmuller@redhat.com> - 1.2-1
e965a0
- packaging fixes: docdir change, specfile tweaks
e965a0
- using consistently install -p everywhere
e965a0
e965a0
* Thu Apr 08 2010 Petr Muller <pmuller@redhat.com> - 1.2-0
e965a0
- disable the testsuite and removed a 3rd party lib from the tree
e965a0
e965a0
* Mon Mar 22 2010 Petr Muller <pmuller@redhat.com> - 1.1-0
e965a0
- packaging fixes
e965a0
e965a0
* Fri Feb 12 2010 Petr Muller <pmuller@redhat.com> - 1.0-3
e965a0
- fixed bad path preventing tests from running
e965a0
e965a0
* Fri Feb 12 2010 Petr Muller <pmuller@redhat.com> - 1.0-2
e965a0
- zillion of specfile tweaks for Fedora inclusion
e965a0
- staf-rhts files were removed
e965a0
- added a LICENSE file
e965a0
- added a better package summary
e965a0
- directory structure revamped
e965a0
- improved rLDejaSum
e965a0
e965a0
* Wed Jan 27 2010 Petr Muller <pmuller@redhat.com> - 1.0-1
e965a0
- genesis of the standalone BeakerLib