How to create a subdir in %{_docdir}/%{name}-%{version}

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I want to create an "examples" folder inside
%{_docdir}/%{name}-%{version}. Here is my test case:

> %install
> mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/examples/
> touch $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/examples/test
> 
> %files -f %{name}.lang
> %defattr(-,root,root,-)
> %doc AUTHORS COPYING ChangeLog README
> %doc %{_docdir}/%{name}-%{version}/examples/

This wont work as the first %doc line deletes and re-creates
%{_docdir}/%{name}-%{version}, so rpmbuild will fail with:
"... /usr/share/doc/foo/examples/test: cpio: Bad magic"

Any idea how I can have a subdir then?
Christoph

--
Fedora-packaging mailing list
Fedora-packaging@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-packaging

[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Forum]     [KDE Users]

  Powered by Linux