[Rpm-maint] [rpm-software-management/rpm] Make VcsUrl and VcsType separate tags. (Issue #3969)

Petr Menšík notifications at github.com
Fri Sep 26 14:54:23 UTC 2025


pemensik created an issue (rpm-software-management/rpm#3969)

Generally requests for new features should be opened as a [Discussion](https://github.com/rpm-software-management/rpm/discussions) first. There feedback from the community can be collected and possible solutions can be discussed. Consider maintaining a design outline in the top post and update it as the discussion progresses. After a plan of action has solidified an issue for actually implementing it can be created.

**Is your feature request related to a problem? Please describe.**
I have used multiple times ``VCS:`` tag in my spec file, but I think it is somehow hard to reuse that tag from the spec itself for any useful things. For example, I could in theory clone git repostiory from url and then checkout ``v%{version}``. Except this one tag is suposed to be in format ``type:url``, which is quite inconvenient to reuse. Unlike simple %{URL} variable, I do not have variables with separate repository type and actual url.

**Describe the solution you'd like**
I would like ``VCSURL:`` and ``VCSTYPE:`` as separate tags, which I could then use inside spec actions by separate variable. I could then check %if %{VCSTYPE} == git. or add remote into preped autosetup -S git data. It could easily autogenerate VCS tag from those two. Or even default to git in VCSType and specify just URL.

**Describe alternatives you've considered**
Repeatedly using %{ echo %{VCS} | cut -d: -f2-) is possible, but ugly and potentially dangerous. All other fields do not have two different kinds of information inside single tag. I think it might make VCS tag more popular and more often used.

**Additional context**
Add any other context or screenshots about the feature request here.

I think VCS tag is rarely used now, because its advantages are not obvious. It also does not make URL links clickable in editors, because they do not start with space. I often worked around that by defining extra %global variable like in [dnsmasq](https://src.fedoraproject.org/rpms/dnsmasq/blob/rawhide/f/dnsmasq.spec#_16), but I think that should not be necessary.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/3969
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/issues/3969 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20250926/d346af98/attachment.htm>


More information about the Rpm-maint mailing list