<p>In our package (nss), the release tarballs contain an extra directory hierarchy <code>nss-X.XX/nss</code>, while the upstream repo doesn't have it. So we need to use <code>pushd nss</code> and <code>popd</code> to apply patches from upstream.  This practice doesn't work well with <code>%autosetup</code>, and even if we split the call to <code>%setup</code> and <code>%autopatch</code>, SCMs other than quilt get confused.</p>
<p>It would be nice if there is a native way to support subdirectory inside tarballs.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/rpm-software-management/rpm/issues/1075?email_source=notifications&email_token=ADLPZU5EZ3A3KUODDLRPHOTRDJ3RHA5CNFSM4KWQEGYKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IOAJZ2A">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ADLPZUYOEVAI2UXKAQ2KOKDRDJ3RHANCNFSM4KWQEGYA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ADLPZU5MVN3XWE3OVDQ24NTRDJ3RHA5CNFSM4KWQEGYKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IOAJZ2A.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/rpm-software-management/rpm/issues/1075?email_source=notifications\u0026email_token=ADLPZU5EZ3A3KUODDLRPHOTRDJ3RHA5CNFSM4KWQEGYKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IOAJZ2A",
"url": "https://github.com/rpm-software-management/rpm/issues/1075?email_source=notifications\u0026email_token=ADLPZU5EZ3A3KUODDLRPHOTRDJ3RHA5CNFSM4KWQEGYKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IOAJZ2A",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>