.spec RPM spec file

Text & source code

MIME typetext/x-rpm-spec
DescriptionRPM spec file
AcronymRPM – Red Hat Package Manager
CategoryText & source code
Signature (magic bytes)25 64 65 66 69 6E 65 20 (%define )
53 75 6D 6D 61 72 79 3A 20 (Summary: )
Based ontext/plain

Frequently asked questions

What is a .spec file?

A .spec file is a “RPM spec file” (MIME type text/x-rpm-spec). RPM stands for Red Hat Package Manager.

How do I open a .spec file?

With any text editor – Notepad++, Visual Studio Code, or gedit and vim on Linux. The file contains readable text, possibly source code or configuration.

How can you tell a genuine .spec file?

By the bytes at the start of the file, the signature (magic bytes): 25 64 65 66 69 6E 65 20 (%define ) and 53 75 6D 6D 61 72 79 3A 20 (Summary: ). On Linux and macOS, file --mime-type example.spec checks the real type regardless of the extension.

Which format is .spec based on?

Technically a .spec file is a subtype of “Plain text document” (text/plain), so programs for that base format can often read it too.

Which MIME type belongs to .spec?

The MIME type is text/x-rpm-spec. In the Apache web server: AddType text/x-rpm-spec .spec; in nginx: types { text/x-rpm-spec spec; }.

Nearby entries