automatic packaging of _docdir?

Miroslav Suchý msuchy at
Mon Sep 7 10:26:36 UTC 2015

I have this snippet in my spec:

mkdir -p %{buildroot}%{_docdir}/python-%{upstream_name}
cp -a docs/* examples %{buildroot}%{_docdir}/python-%{upstream_name}/

%doc %{_docdir}/python-%{upstream_name}

However when I use it exactly this way I get warnings that those files are listed twice.

When I comment it out:
#%doc %{_docdir}/python-%{upstream_name}

Then those doc files are packaged anyway.
Is this new feature or bug?

I have:

Miroslav Suchy, RHCA
Red Hat, Senior Software Engineer, #brno, #devexp, #fedora-buildsys

More information about the Rpm-list mailing list