How to escape question mark / equality sign in spec's source URI to get proper source name
Matej Stuchlik
mstuchli at redhat.com
Thu Nov 14 10:21:04 UTC 2013
----- Original Message -----
From: "Mathieu Bridon" <bochecha at fedoraproject.org>
To: "Development discussions related to Fedora" <devel at lists.fedoraproject.org>
Sent: Thursday, November 14, 2013 11:12:21 AM
Subject: Re: How to escape question mark / equality sign in spec's source URI to get proper source name
On Thu, 2013-11-14 at 05:01 -0500, Jan Lieskovsky wrote:
> Hello guys,
>
> I have one source which has the form of (in the last part of it's URI):
> "checklist-cce-feed?id=295" (the source doesn't seem to be available otherwise
> than via aforementioned query string - or at least I wasn't able to obtain
> it's final location past the query => if you known there's a way how to find
> out the final file location past the query string would be expanded, let me know).
>
> For now I present that source URI in the particular spec in it's original form
> (including the query string to avoid rpmlint to complain about non-existing
> source, and later in the %install moving that source to some more meaningful
> name). This works on RHEL5 (maybe question mark / equality sign not having
> special meaning there yet?), but not for example at Fedora-19.
>
> At Fedora 19 rpmbuild strips off the part till equality sign, iow
> "checklist-cce-feed?id=" from the source and searches only for '295' =>
> rpmbuild fails with a complain not being able to find "rpmbuild/SOURCES/295"
> file.
Maybe use only the name of the source file, and add a comment above
explaining that it comes from that URL?
You can use "checklist-cce-feed?id=295#nameofthesource.tar.bz2", but I'd say ^ is
the best idea.
Matt
--
Mathieu
--
devel mailing list
devel at lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
More information about the devel
mailing list