On 13/12/2020 13:39, David King wrote:
On 12/13/20 8:31 AM, David King wrote:
> On 12/12/20 1:58 PM, home user wrote:
>> On 12/12/20 8:41 AM, David King wrote:
>>
>>> Installing 4kVideoDownloader on Fedora isn't all that difficult:
>>>
>>> 1) Use the "alien" tool to convert the deb package to an rpm
package:
>>>
>>> sudo alien --to-rpm --scripts 4kvideodownloader_4.13.5-1_amd64.deb
>>
>> I had to install alien. This seemed to work.
>>
>>
>>> 2) Fix the rpm package so that it doesn't try to "own" the
"/usr"
>>> and "/usr/bin" directories.
>>>
>>> rpmrebuild --edit-spec 4kvideodownloader-4.13-6.x86_64.rpm
>>>
>>> When the VI editor session opens, scroll down to the "%files"
>>> section of the file and delete the first eight lines:
>>>
>>> %dir %attr(0755, root, root) "/"
>>> %dir %attr(0755, root, root) "/usr"
>>> %dir %attr(0755, root, root) "/usr/lib"
>>> %dir %attr(0755, root, root) "/usr/lib/.build-id"
>>> %dir %attr(0755, root, root) "/usr/lib/.build-id/a4"
>>> %attr(0777, root, root)
>>> "/usr/lib/.build-id/a4/0b64ce7d0c022c77cd85ad6f405b529dc8004c"
>>> %dir %attr(0755, root, root) "/usr/lib/.build-id/f7"
>>> %attr(0777, root, root)
>>> "/usr/lib/.build-id/f7/997df8fab1b5db8950848b227407154e389688"
>>>
>>> Save the file and let the rebuild complete.
>>
>> I had to install rpmrebuild.
>> rpmrebuild gave me a mere (almost) 1300 error messages.
>> I pasted them into a text file and put it on the google drive here:
>>
"https://drive.google.com/file/d/1frF621bRMbZSIvIVnKffCF5DW_YujOnM/view?usp=sharing"
>>
>>
>> What now?
>
> Might be that I forgot to give you instructions to create the RPM
> build directory tree that the rpm tools use. Do you have this tree
> structure in your home directory?
>
> ~/rpmbuild
> ├── BUILD
> ├── RPMS
> ├── SOURCES
> ├── SPECS
> └── SRPMS
>
> If not, this command will create it:
>
> mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
>
> Once that structure exists, try running the rpmrebuild again.
>
Another, better, way to set up the rpm build tree is to install the
rpmdevtools package and run the "rpmdev-setuptree" script that it
provides. That adds a hidden ~/.rpmmacros config file that is used by
the rpm builder tools.
Is there an 'rpmrebuild' command? I have used 'rpmbuild
--rebuild' -
but not exactly in this context.