Created
August 25, 2015 13:14
-
-
Save muayyad-alsadi/ba630860a5b5992fc799 to your computer and use it in GitHub Desktop.
fake-runtime.spec
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Name: fake-runtime | |
Version: 0.0.1 | |
Release: 1%{?dist} | |
Summary: Fake runtime | |
License: GPLv2+ | |
BuildArch: noarch | |
Provides: kmod | |
Provides: systemd = 204 | |
Provides: systemd-sysv = 204 | |
Provides: systemd-units = 204 | |
Provides: udev = 204 | |
Provides: initscripts = 204 | |
%description | |
This is a fake package that provides certain system runtime packages | |
so that we can avoid pulling them into the docker base. This is useful | |
because many packages make little sense in an docker image. | |
%prep | |
%build | |
%install | |
rm -rf $RPM_BUILD_ROOT | |
mkdir -p ${RPM_BUILD_ROOT}/usr/sbin/ | |
echo -e '#! /bin/sh\necho this is fake /usr/sbin/service, check supervisorsd' > ${RPM_BUILD_ROOT}/usr/sbin/service | |
chmod +x ${RPM_BUILD_ROOT}/usr/sbin/service | |
%clean | |
rm -rf %{buildroot} | |
%files | |
%defattr(-,root,root) | |
/usr/sbin/service | |
%changelog | |
* Fri Aug 23 2013 Alexander Larsson <[email protected]> - 0.0.1-1 | |
- Initial version | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment