* Re: [newbies] подойдет ли такая секция %install в спеке? @ 2022-09-28 10:41 ` Michael Shigorin 2022-09-28 12:47 ` Michael Shigorin 1 sibling, 0 replies; 3+ messages in thread From: Michael Shigorin @ 2022-09-28 10:41 UTC (permalink / raw) To: devel-newbies On Wed, Sep 28, 2022 at 01:28:21PM +0300, ximper wrote: > Доброго времени суток. Появился такой вопрос: подойдет ли такая > секция %install в спеке, или ее нужно доработать? Я бы делал так: --- mkdir -p %buildroot%_desktopdir cat > %buildroot%_desktopdir/%name.desktop << EOF [Desktop Entry] Type=Application Name=PortProton Name[ru]=PortProton Comment=Installer PortProton for Windows games Comment[ru]=Установщик PortProton для Windows игр Exec=%{name} %F Icon=port_proton StartupNotify=false Terminal=false Categories=Game; MimeType=application/x-wine-extension-msp;application/x-msi;application/x-ms-dos-executable; EOF install -pDm755 %SOURCE0 %buildroot%_bindir/%name install -pDm644 %SOURCE1 %buildroot%_datadir/pixmaps/%name.png --- Пустых секций %build в альтовых пакетах хоть отбавляй, те же шрифты обычно собирать не надо уже. См. тж. http://git.altlinux.org/people/specbot/public/specs.git -- ---- WBR, Michael Shigorin / http://altlinux.org ------ http://opennet.ru / http://anna-news.info ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [newbies] подойдет ли такая секция %install в спеке? 2022-09-28 10:41 ` [newbies] подойдет ли такая секция %install в спеке? Michael Shigorin @ 2022-09-28 12:47 ` Michael Shigorin 2022-09-29 15:27 ` Andrey Savchenko 1 sibling, 1 reply; 3+ messages in thread From: Michael Shigorin @ 2022-09-28 12:47 UTC (permalink / raw) To: devel-newbies On Wed, Sep 28, 2022 at 01:28:21PM +0300, ximper wrote: > cat > %buildroot%_datadir/applications/%name.desktop << EOF > install -m644 %SOURCE1 %buildroot%_datadir/pixmaps/ On Wed, Sep 28, 2022 at 01:41:40PM +0300, Michael Shigorin wrote: > cat > %buildroot%_desktopdir/%name.desktop << EOF > install -pDm644 %SOURCE1 %buildroot%_datadir/pixmaps/%name.png On Wed, Sep 28, 2022 at 02:02:00PM +0300, Andrey Cherepanov wrote: > %_pixmapsdir короче Действительно; а помогло бы найти что-то вроде: $ rpm --showrc | grep /pixmaps -- ---- WBR, Michael Shigorin / http://altlinux.org ------ http://opennet.ru / http://anna-news.info ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [newbies] подойдет ли такая секция %install в спеке? 2022-09-28 12:47 ` Michael Shigorin @ 2022-09-29 15:27 ` Andrey Savchenko 0 siblings, 0 replies; 3+ messages in thread From: Andrey Savchenko @ 2022-09-29 15:27 UTC (permalink / raw) To: devel@ where you _can_ ask [-- Attachment #1: Type: text/plain, Size: 1007 bytes --] On Wed, 28 Sep 2022 15:47:01 +0300 Michael Shigorin wrote: > On Wed, Sep 28, 2022 at 01:28:21PM +0300, ximper wrote: > > cat > %buildroot%_datadir/applications/%name.desktop << EOF > > install -m644 %SOURCE1 %buildroot%_datadir/pixmaps/ > > On Wed, Sep 28, 2022 at 01:41:40PM +0300, Michael Shigorin wrote: > > cat > %buildroot%_desktopdir/%name.desktop << EOF > > install -pDm644 %SOURCE1 %buildroot%_datadir/pixmaps/%name.png > > On Wed, Sep 28, 2022 at 02:02:00PM +0300, Andrey Cherepanov wrote: > > %_pixmapsdir короче > > Действительно; а помогло бы найти что-то вроде: > > $ rpm --showrc | grep /pixmaps Универсальнее будет: git clone git://git.altlinux.org/people/specbot/public/specs.git git grep pixmaps В целом данный метод хорош для того чтоб посмотреть, а как другие решают возникшую проблему. Best regards, Andrew Savchenko [-- Attachment #2: Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-09-29 15:27 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2022-09-28 10:41 ` [newbies] подойдет ли такая секция %install в спеке? Michael Shigorin 2022-09-28 12:47 ` Michael Shigorin 2022-09-29 15:27 ` Andrey Savchenko
devel@ where you _can_ ask This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/devel-newbies/0 devel-newbies/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 devel-newbies devel-newbies/ http://lore.altlinux.org/devel-newbies \ devel-newbies@lists.altlinux.org devel-newbies@lists.altlinux.ru devel-newbies@lists.altlinux.com public-inbox-index devel-newbies Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.devel-newbies AGPL code for this site: git clone https://public-inbox.org/public-inbox.git