ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Volodia Selezniov <vseleznv@altlinux.org>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] Излишнее увлечение макросом %name в спеке
Date: Sat, 23 Mar 2024 23:45:28 +0200
Message-ID: <Zf9NePu4OXg+kU3R@portlab> (raw)
In-Reply-To: <322014e547f4eec8051c09d3a0cf0910@altlinux.ru>

On Thu, Feb 29, 2024 at 02:58:08PM +0300, Vitaly Lipatov wrote:
> Заметил, что по какой-то причине в спеках задействуют макрос %name в URL 
> или в Source (в элементах пути, не в %name-%version, конечно).
> 
> На мой взгляд, это сделано для того, чтобы затруднить доступ к сайту 
> программы и исходным текстам. Этот путь указывается для человека, а 
> пользоваться им невозможно.

$ grep -i url *spec
URL: https://github.com/lbellonda/%name
$ rpmspec -q --qf '%{url}\n' *spec 2>/dev/null
https://github.com/lbellonda/qxmledit

> Примеры:
> q/qxmledit/qxmledit.spec:URL: https://github.com/lbellonda/%name
> r/radeontop/radeontop.spec:Url: https://github.com/clbr/%name
> r/radiusclient-ng/radiusclient-ng.spec:URL: 
> http://developer.berlios.de/projects/%name/
> r/rapidyaml/rapidyaml.spec:URL: https://github.com/biojppm/%name
> r/recover/recover.spec:Url: http://recover.sourceforge.net/linux/%name
> r/recoverdm/recoverdm.spec:Url: http://www.vanheusden.com/%name
> и
> j/jamin/jamin.spec:Source: http://prdownloads.sourceforge.net/%name/
> j/js/js.spec:Source: ftp://ftp.mozilla.org/pub/mozilla.org/%name/
> k/klavaro/klavaro.spec:Source: http://downloads.sourceforge.net/%name/
> 
> Количество:
> $ git grep -i "^URL:" | grep "%name" | wc -l
> 342
> 
> $ git grep -i "^Source" | sed -e "s|%name-%version.*||" | grep "://" | 
> grep "%name" | wc -l
> 427
> 
> Хотел бы попросить обратить на это внимание и не использовать макросы 
> имени в минимально необходимых случаях.

-- 
   WBR,
   Volodia


  parent reply	other threads:[~2024-03-23 21:45 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-29 11:58 Vitaly Lipatov
2024-02-29 12:21 ` Yuri Sedunov
2024-03-01 10:55 ` Anton Farygin
2024-03-22  3:11   ` Ilya Kurdyukov
2024-03-22  6:10     ` Anton Farygin
2024-03-22  6:54       ` Dmitry V. Levin
2024-03-22  7:16         ` Grigory Ustinov
2024-03-22  8:24           ` Denis Medvedev
2024-03-22  9:25         ` Anton Farygin
2024-03-26  8:44           ` Grigory Ustinov
2024-03-23 21:45 ` Volodia Selezniov [this message]
2024-03-24 14:31   ` Anton Farygin
2024-03-25 12:41     ` Dmitry V. Levin
2024-03-25 13:13       ` [devel] " Sergey V Turchin
2024-03-25 16:36         ` [devel] " Dmitry V. Levin
2024-03-26  6:29           ` [devel] " Sergey V Turchin
2024-03-26  8:20       ` [devel] " Anton Farygin
2024-03-27  6:26         ` Ruslandh
2024-03-27  6:55           ` Anton Farygin

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=Zf9NePu4OXg+kU3R@portlab \
    --to=vseleznv@altlinux.org \
    --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