From: Aleksey Cheusov <vle@gmx.net> To: devel@lists.altlinux.org Subject: [devel] макросы rpm в спеке Date: Mon, 11 Dec 2023 18:30:29 +0400 Message-ID: <m3fs08olq2.fsf@ryzen.chizhovka.net> (raw) Задача: определить макрос в СПЕКЕ ПАКЕТА! с одним параметром, который принимал бы значение 0, если макрос "disabled_<параметр>" определен и 1 в противном случае. Есть спека. Начинается она вот так: 1 %define disabled_trtrtr 1 2 %define enabled() %{?disabled_%{1}:0}%{!?disabled_%{1}:1} 3 %{enabled trtrtr} 4 fail here rpmspec на ней работает так: 0 $ rpmspec -P mk-configure.spec error: line 4: Unknown tag: fail here 1 $ То есть, такое ощущение, что макрос %{enabled trtrtr} вообще ни во что не раскрывается. Ожидаемое поведение: rpmspec должен упасть на строчке 3, поскольку %{enabled trtrtr} должен раскрыться в 0. Что я делаею не так? P.S. Мне не важно, что есть в альтовских конфигах для rpm. Мне нужно разобраться именно в этом примере и именно с макросами в спеке пакета.
next reply other threads:[~2023-12-11 14:30 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-12-11 14:30 Aleksey Cheusov [this message] 2023-12-11 16:40 ` Dmitry V. Levin 2023-12-11 17:32 ` Aleksey Cheusov
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=m3fs08olq2.fsf@ryzen.chizhovka.net \ --to=vle@gmx.net \ --cc=devel@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
ALT Linux Team development discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/devel/0 devel/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 devel/ http://lore.altlinux.org/devel \ devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru public-inbox-index devel Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.devel AGPL code for this site: git clone https://public-inbox.org/public-inbox.git