From: Michael Shigorin <mike@altlinux.org>
To: devel-newbies@lists.altlinux.org
Subject: Re: [newbies] подойдет ли такая секция %install в спеке?
Date: Wed, 28 Sep 2022 13:41:40 +0300
Message-ID: <20220928104140.GD31877@imap.altlinux.org> (raw)
In-Reply-To: <88399dff19bebcb74778ed03c15ba29b988006fc.camel@yandex.ru>
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
next parent reply other threads:[~2022-09-28 10:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-28 10:41 ` Michael Shigorin [this message]
2022-09-28 12:47 ` Michael Shigorin
2022-09-29 15:27 ` Andrey Savchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220928104140.GD31877@imap.altlinux.org \
--to=mike@altlinux.org \
--cc=devel-newbies@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
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