Skip to content

Instantly share code, notes, and snippets.

@muayyad-alsadi
Created August 25, 2015 13:14
Show Gist options
  • Save muayyad-alsadi/ba630860a5b5992fc799 to your computer and use it in GitHub Desktop.
Save muayyad-alsadi/ba630860a5b5992fc799 to your computer and use it in GitHub Desktop.
fake-runtime.spec
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