Linux 如何解决rpm不可读错误

Linux 如何解决rpm不可读错误,linux,package,rpm,Linux,Package,Rpm,我正在为ROSA(基于linux的操作系统)打包一些python模块 所以我有一个错误: python-dogpile-cache.noarch: E: non-readable (Badness: 1) /usr/share/doc/python-dogpile-cache/changelog.rst 0600 所以我正在制作dogpile.cache v0.6.7的rpm包。 我的.spec文件如下所示。 我甚至找不到关于rpm错误描述的信息。所以我想请你帮忙 %define oname

我正在为ROSA(基于linux的操作系统)打包一些python模块

所以我有一个错误:

python-dogpile-cache.noarch: E: non-readable (Badness: 1) /usr/share/doc/python-dogpile-cache/changelog.rst 0600
所以我正在制作dogpile.cache v0.6.7的rpm包。 我的.spec文件如下所示。 我甚至找不到关于rpm错误描述的信息。所以我想请你帮忙

%define oname   dogpile.cache

Name:       python-dogpile-cache
Version:    0.6.7
Release:    1
Summary:    A caching front-end based on the Dogpile lock
Source0:    http://pypi.python.org/packages/source/d/%{oname}/%{oname}-%{version}.tar.gz
License:    BSD
Group:      Development/Python
Url:        http://bitbucket.org/zzzeek/dogpile.cache
BuildArch:  noarch
BuildRequires:  pythonegg(setuptools)
BuildRequires:  python-dogpile-core

%description
A caching API built around the concept of a "dogpile lock", which allows
continued access to an expiring data value while a single thread generates
a new value.

%prep
%setup -q -n %{oname}-%{version}

%build
python setup.py build

%install
python setup.py install --root=%{buildroot}

%files
%doc LICENSE
%doc README.rst
%doc docs/api.html
%doc docs/changelog.html
%doc docs/core_usage.html
%doc docs/front.html
%doc docs/genindex.html
%doc docs/index.html
%doc docs/py-modindex.html
%doc docs/recipes.html
%doc docs/search.html
%doc docs/usage.html
%doc docs/_sources/api.rst.txt
%doc docs/_sources/changelog.rst.txt
%doc docs/_sources/core_usage.rst.txt
%doc docs/_sources/front.rst.txt
%doc docs/_sources/index.rst.txt
%doc docs/_sources/recipes.rst.txt
%doc docs/_sources/usage.rst.txt
%doc docs/_static/changelog.css
%doc docs/build/changelog.rst
%doc docs/build/requirements.txt
%doc docs/build/unreleased/README.txt
%{py_puresitedir}/dogpile/*.py*
%{py_puresitedir}/dogpile/cache/*.py*
%{py_puresitedir}/dogpile/cache/backends/*.py*
%{py_puresitedir}/dogpile/cache/plugins/*.py*
%{py_puresitedir}/dogpile/util/*.py*
%{py_puresitedir}/dogpile.cache*.egg-info

您找不到有关该错误的任何文档,因为该错误来自rpmlint,而不是rpm

rpmlint将某些启发式应用于包,以提高包质量


该错误是由于权限0600导致文件无法读取。

因此,据我所知,我可以对该文件执行类似chmod 644的操作吗?无论如何,感谢您通知RPMLENTY向文件中添加+r应该会让rpmlint“高兴”