How to make a spec file specific for Leap repositories with their default numeric names?
At https://openbuildservice.org/help/manuals/obs-user-guide/cha.obs.multibuild.... it states "Specific files can be created to be built for a specific repository. Append the repository name of the build container behind the package name with a -. For example hello-openSUSE_13.2.spec. " This works in my package (https://build.opensuse.org/package/show/home:paul4us/klassy) for Fedora and Mageia. My problem is that I want to make a .spec file specifically for Leap 15.5 and Leap 15.6 but the default repository names are just "15.5" and "15.6" respectively. When I try to name a .spec file with packagename-15.5.spec or packagename-15.6.spec these spec files are ignored and the default packagename.spec is used instead, giving "unresolvable" statuses. I suspect that this is because the repository names are numeric with no letters. How do I make a .spec file specific to these 15.5 and 15.6 repositories? I don't want to make new repositories with a different name as people will be subscribed to the existing ones. Thanks, Paul
On Thu, Mar 14, 2024 at 2:33 PM Paul McAuley
At https://openbuildservice.org/help/manuals/obs-user-guide/cha.obs.multibuild.... it states "Specific files can be created to be built for a specific repository. Append the repository name of the build container behind the package name with a -. For example hello-openSUSE_13.2.spec. "
This works in my package (https://build.opensuse.org/package/show/home:paul4us/klassy) for Fedora and Mageia. My problem is that I want to make a .spec file specifically for Leap 15.5 and Leap 15.6 but the default repository names are just "15.5" and "15.6" respectively. When I try to name a .spec file with packagename-15.5.spec or packagename-15.6.spec these spec files are ignored and the default packagename.spec is used instead, giving "unresolvable" statuses. I suspect that this is because the repository names are numeric with no letters.
How do I make a .spec file specific to these 15.5 and 15.6 repositories? I don't want to make new repositories with a different name as people will be subscribed to the existing ones.
You can rename the repositories by editing the meta in your OBS project to add a prefix (like "openSUSE_Leap_"). Then it should work. -- 真実はいつも一つ!/ Always, there's only one truth!
On Thursday, 14 March 2024 22:55:31 GMT Neal Gompa wrote:
At https://openbuildservice.org/help/manuals/obs-user-guide/cha.obs.multibui ld.html it states "Specific files can be created to be built for a specific repository. Append the repository name of the build container behind the package name with a -. For example hello-openSUSE_13.2.spec. "
This works in my package (https://build.opensuse.org/package/show/home:paul4us/klassy) for Fedora and Mageia. My problem is that I want to make a .spec file specifically for Leap 15.5 and Leap 15.6 but the default repository names are just "15.5" and "15.6" respectively. When I try to name a .spec file with packagename-15.5.spec or packagename-15.6.spec these spec files are ignored and the default packagename.spec is used instead, giving "unresolvable" statuses. I suspect that this is because the repository names are numeric with no letters.
How do I make a .spec file specific to these 15.5 and 15.6 repositories? I don't want to make new repositories with a different name as people will be subscribed to the existing ones. You can rename the repositories by editing the meta in your OBS
On Thu, Mar 14, 2024 at 2:33 PM Paul McAuley
wrote: project to add a prefix (like "openSUSE_Leap_"). Then it should work.
Thanks. Though will that not break the repository URL for anyone who is subscribed to it? If that is the only way to fix it, then the build service setting "15.5" and "15.6" as default names of repositories is a bad idea and should be changed (if that is still the case).
On Sun, Mar 17, 2024 at 6:05 AM Paul McAuley
On Thursday, 14 March 2024 22:55:31 GMT Neal Gompa wrote:
At https://openbuildservice.org/help/manuals/obs-user-guide/cha.obs.multibui ld.html it states "Specific files can be created to be built for a specific repository. Append the repository name of the build container behind the package name with a -. For example hello-openSUSE_13.2.spec. "
This works in my package (https://build.opensuse.org/package/show/home:paul4us/klassy) for Fedora and Mageia. My problem is that I want to make a .spec file specifically for Leap 15.5 and Leap 15.6 but the default repository names are just "15.5" and "15.6" respectively. When I try to name a .spec file with packagename-15.5.spec or packagename-15.6.spec these spec files are ignored and the default packagename.spec is used instead, giving "unresolvable" statuses. I suspect that this is because the repository names are numeric with no letters.
How do I make a .spec file specific to these 15.5 and 15.6 repositories? I don't want to make new repositories with a different name as people will be subscribed to the existing ones. You can rename the repositories by editing the meta in your OBS
On Thu, Mar 14, 2024 at 2:33 PM Paul McAuley
wrote: project to add a prefix (like "openSUSE_Leap_"). Then it should work. Thanks. Though will that not break the repository URL for anyone who is subscribed to it?
Unfortunately, yes it will.
If that is the only way to fix it, then the build service setting "15.5" and "15.6" as default names of repositories is a bad idea and should be changed (if that is still the case).
I agree. -- 真実はいつも一つ!/ Always, there's only one truth!
On Sunday, 17 March 2024 13:05:01 GMT Paul McAuley wrote:
On Thursday, 14 March 2024 22:55:31 GMT Neal Gompa wrote:
On Thu, Mar 14, 2024 at 2:33 PM Paul McAuley
wrote: At https://openbuildservice.org/help/manuals/obs-user-guide/cha.obs.multibu i ld.html it states "Specific files can be created to be built for a specific repository. Append the repository name of the build container behind the package name with a -. For example hello-openSUSE_13.2.spec. "
This works in my package (https://build.opensuse.org/package/show/home:paul4us/klassy) for Fedora and Mageia. My problem is that I want to make a .spec file specifically for Leap 15.5 and Leap 15.6 but the default repository names are just "15.5" and "15.6" respectively. When I try to name a .spec file with packagename-15.5.spec or packagename-15.6.spec these spec files are ignored and the default packagename.spec is used instead, giving "unresolvable" statuses. I suspect that this is because the repository names are numeric with no letters.
How do I make a .spec file specific to these 15.5 and 15.6 repositories? I don't want to make new repositories with a different name as people will be subscribed to the existing ones.
You can rename the repositories by editing the meta in your OBS project to add a prefix (like "openSUSE_Leap_"). Then it should work.
Thanks. Though will that not break the repository URL for anyone who is subscribed to it?
If that is the only way to fix it, then the build service setting "15.5" and "15.6" as default names of repositories is a bad idea and should be changed (if that is still the case).
Forget everything I have said. There was something wrong in my project config - I deleted the project config and now packagename-15.5.spec or packagename-15.6.spec are being used properly.
participants (2)
-
Neal Gompa
-
Paul McAuley