%global libraries_path %{_datadir}/beakerlib-libraries
Name: beakerlib-libraries
Version: 0.4
Release: 1%{?dist}
Summary: Beakerlib libraries
License: GPLv2 and GPLv2+
URL: https://pagure.io/beakerlib-libraries/
Source0: https://releases.pagure.org/beakerlib-libraries/%{name}-%{version}.tar.gz
BuildArch: noarch
Requires: beakerlib
%description
Beakerlib Libraries are used by beakerlib tests to encapsulate common complex
tasks such as configuring and starting a particular daemon in a single
function.
%prep
%autosetup
%build
%install
find . -maxdepth 2 -mindepth 2 '(' -path './bin/*' -o -path './.git*' ')' -prune -o -type d \
-exec sh -c 'install -v -d $RPM_BUILD_ROOT%libraries_path/$(dirname "{}")/Library' ';' \
-exec sh -c 'cp -v -a "{}" $RPM_BUILD_ROOT%libraries_path/$(dirname "{}")/Library' ';'
install -d "$RPM_BUILD_ROOT/%_bindir"
install -m755 "bin/get-test-deps" "$RPM_BUILD_ROOT/%_bindir"
%files
%libraries_path
%_bindir/get-test-deps
%changelog
* Fri Mar 22 2019 Andrei Stepanov <astepano@redhat.com> - 0.4-1
- Build with the latest merged PRs.
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Thu Sep 20 2018 Andrei Stepanov <astepano@redhat.com> - 0.3-1
- Build with the latest merged PRs.
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Tue Jun 19 2018 Andrei Stepanov <astepano@redhat.com> - 0.2-1
- RPM package for Fedora/EPEL repo.