diff --git a/.gitattributes b/.gitattributes
index 33937699e8962..adf75e4d16817 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -30,6 +30,7 @@
 *.proto text eol=lf
 *.rs text eol=lf
 *.sh text eol=lf
+*.spec text eol=lf
 *.sql   text eol=lf
 *.toml  text eol=lf
 *.txt   text eol=lf