-
Notifications
You must be signed in to change notification settings - Fork 54
Specify RPM tag Source0 as a downloadable URL #116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -76,7 +76,11 @@ Summary: Lyrion Music Server | |
|
|
||
| License: GPL and proprietary | ||
| URL: https://www.lyrion.org | ||
| Source0: %{src_basename}.tgz | ||
| %if %{with release} | ||
| Source0: https://downloads.lms-community.org/LyrionMusicServer_v%{version}/%{src_basename}-%{version}.tgz | ||
| %else | ||
| Source0: https://downloads.lms-community.org/nightly/%{src_basename}-%{version}-%{_revision}.tgz | ||
| %endif | ||
|
Comment on lines
+79
to
+83
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Huh?!? Are you trying to pull down the tarball from online, instead of using a local file? That file might not exist yet at this point.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unintuitively, if a %if %{with release}
Source0: %{src_basename}-%{version}.tgz
%else
Source0: %{src_basename}-%{version}-%{_revision}.tgz
%endifWhy change it, then? Because other tools can use the whole URL. For example, you could fetch sources with, e.g., spectool -gR redhat/lyrionmusicserver.specSome build systems, such as Copr, do this automatically as the first stage of the build. My short term goal here is to make it slightly easier for me to work on the RPM in a way that I'm used to. My longer term goal is to enable a future where we could generate the nightly tarball here with GitHub Actions as at present, then ping Copr to build RPMs for us specific to each CPU architecture, Perl version, etc.. It would put the resulting packages into easily consumable repositories from which users could get automatic updates along with the rest of their OS.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. And currently that would use a local copy of that tarball to build the RPM locally? That would be fine then. I guess we'd see failure quickly if not 😉. |
||
| Source1: %{shortname}.config | ||
| Source3: %{shortname}.logrotate | ||
| Source4: %{shortname}.service | ||
|
|
@@ -165,7 +169,11 @@ player. It supports MP3, AAC, WMA, FLAC, Ogg Vorbis, WAV and more! | |
| As of version 7.7 it also supports UPnP clients. | ||
|
|
||
| %prep | ||
| %setup -q -n %{src_basename} | ||
| %if %{with release} | ||
| %autosetup -n %{src_basename}-%{version} | ||
| %else | ||
| %autosetup -n %{src_basename}-%{version}-%{_revision} | ||
| %endif | ||
|
|
||
|
|
||
| %build | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you explain this part of the change? It's using the fully formatted file name (including version etc.) rather than just the
lyrionmusicserver?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's right. This is so that we create the tarball with a name that matches the basename of the URL in
Source0.