【问题标题】:How solve rpm non-readable error如何解决rpm不可读错误
【发布时间】:2019-01-26 22:12:06
【问题描述】:

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

所以我有这个错误:

python-dogpile-cache.noarch: E: non-readable (Badness: 1) /usr/share/doc/python-dogpile-cache/changelog.rst 0600

所以我正在制作 dogpile.cache v 0.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

【问题讨论】:

    标签: linux package rpm


    【解决方案1】:

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

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

    错误是由于权限 0600 导致文件不可读。

    【讨论】:

    • 那么,据我所知,我可以对这个文件执行类似 chmod 644 的操作吗?无论如何,感谢有关 rpmlint 的通知
    • 是的,在文件中添加 +r 应该让 rpmlint “开心”
    猜你喜欢
    • 2019-02-20
    • 2019-12-08
    • 1970-01-01
    • 1970-01-01
    • 2021-09-16
    • 2021-04-19
    • 2019-11-04
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多