diff --git a/split-files.py b/split-files.py
index 26e0551..ab9147a 100644
--- a/split-files.py
+++ b/split-files.py
@@ -136,6 +136,8 @@ for file in files(buildroot):
             prefix += ' '
     elif file.is_dir() and not file.is_symlink():
         prefix = '%dir '
+    elif 'README' in n:
+        prefix = '%doc '
     elif n.startswith('/etc'):
         prefix = '%config(noreplace) '
     else: