Skip to content

Instantly share code, notes, and snippets.

@fuzzmz
Last active January 14, 2024 09:12
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save fuzzmz/5582806 to your computer and use it in GitHub Desktop.
Save fuzzmz/5582806 to your computer and use it in GitHub Desktop.
How to build an empty .rpm file

How to create an empty .rpm file

First create a package_name.spec file with the following content:

Summary: Summary here
Name: package_name
Version: 0
Release: 0
License: Public
Group: Applications/System
Requires: libXrandr.i686,gtk2.i686,libXtst.i686
%description
Package description here
%files

After this file is created simply run # rpmbuild -bb package_name.spec to create the package.

@aho-webprefer
Copy link

You don't really need Requires unless you want the rpm to depend on other rpms.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment