.spec RPM-Spezifikationsdatei
Text & Quellcode
| MIME-Typ | text/x-rpm-spec |
|---|---|
| Beschreibung | RPM-Spezifikationsdatei |
| Abkürzung | RPM – Red Hat Package Manager |
| Kategorie | Text & Quellcode |
| Signatur (Magic Bytes) | 25 64 65 66 69 6E 65 20 (%define )53 75 6D 6D 61 72 79 3A 20 (Summary: ) |
| Basiert auf | text/plain |
Häufige Fragen
Was ist eine .spec-Datei?
Eine .spec-Datei ist ein Format vom Typ „RPM-Spezifikationsdatei“ (MIME-Typ text/x-rpm-spec). RPM steht für Red Hat Package Manager.
Womit öffne ich eine .spec-Datei?
Mit jedem Texteditor – etwa Notepad++, Visual Studio Code oder unter Linux gedit und vim. Die Datei enthält lesbaren Text, ggf. Quellcode oder Konfiguration.
Woran erkennt man eine echte .spec-Datei?
Am Dateianfang, der sogenannten Signatur (Magic Bytes): 25 64 65 66 69 6E 65 20 (%define ) und 53 75 6D 6D 61 72 79 3A 20 (Summary: ). Unter Linux und macOS prüft file --mime-type example.spec den tatsächlichen Typ unabhängig von der Endung.
Auf welchem Format basiert .spec?
Technisch ist eine .spec-Datei ein Untertyp von „Einfaches Textdokument“ (text/plain). Programme für dieses Grundformat können die Datei daher oft ebenfalls lesen.
Welcher MIME-Typ gehört zu .spec?
Der MIME-Typ ist text/x-rpm-spec. Im Apache-Webserver: AddType text/x-rpm-spec .spec; in nginx: types { text/x-rpm-spec spec; }.