Re: rpm bug for multiple README.md or LICENSE.md in EPEL 8 and Fedora

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

 



On Monday, December 6, 2021 6:43:57 PM CST Nico Kadel-Garcia wrote:
> On Mon, Dec 6, 2021 at 3:59 AM Vitaly Zaitsev via devel
> <devel@xxxxxxxxxxxxxxxxxxxxxxx> wrote:
> >
> > On 05/12/2021 04:07, Nico Kadel-Garcia wrote:
> > > This breaks building RPMs for EPEL 8 or Fedora, because the '%doc' and
> > > '%license' macros strip off the subdirectories of the files and
> > > install them directly at the top of the docdir.
> >
> > You should deal with them manually.
> >
> > Example:
> > https://github.com/rpmfusion/tg_owt/blob/master/tg_owt.spec#L124-L161
> > https://github.com/rpmfusion/tg_owt/blob/master/tg_owt.spec#L178-L179
> 
> Simply put, "no". Manually organizing component names for more than
> 300 README files and more than 100 LICENSE files does not seem a wise
> use of anyone's package compilation time.
> 
> If it's necessary, I could see doing something like this instead, or
> using a local macro
> 
>       cp -D ansible_collections/foo/bar/baz/README.md
> %{buildroot}%{defaultdocdir}/%{package}-%{version}/foo/bbar/baz/README.md
> 
> I'll still want to separate '%license" files from "%doc", which means
> I won't just be able to use:
> 
>       %doc %{defaultdocdir}/%{package}-%{version

The specfile that Vitaly linked also marks the license files with `%license`.

-- 
Maxwell G (@gotmax23)
Pronouns: He/Him/His
PGP Key Fingerprint: f57c76e5a238fe0a628e2ecef79e4e25e8c661f8
PGP Keyserver: hkp://keyserver.ubuntu.com
gotmax@e.email

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux