Does anyone have any documentation for absolute beginners on building debs from spec files using debbuild? I have some font rpms that build just fine and I want to make debs out of them as well. or am I barking up the wrong tree and will have to look up the deb packaging docs instead?
On Thu, Jul 4, 2024 at 2:26 PM Martin Hooper <martin@mjhooper.co.uk> wrote:
Does anyone have any documentation for absolute beginners on building debs from spec files using debbuild?
I have some font rpms that build just fine and I want to make debs out of them as well.
or am I barking up the wrong tree and will have to look up the deb packaging docs instead?
I don't know about documentation for absolute beginners, but my OBS projects for meson and xwayland-run are good examples to work from. xwayland-run: https://build.opensuse.org/projects/home:Pharaoh_Atem:XWaylandRun/meta meson: https://build.opensuse.org/projects/home:Pharaoh_Atem:Meson/meta The project meta is pretty much the only thing you need to get debbuild working in OBS, then everything just automatically activates and it becomes a matter of adapting your spec file. -- 真実はいつも一つ!/ Always, there's only one truth!
On 05/07/2024 01:42, Neal Gompa wrote:
The project meta is pretty much the only thing you need to get debbuild working in OBS, then everything just automatically activates and it becomes a matter of adapting your spec file.
Thanks Neal - Got debbuild activated from your examples. Just need to find debian/ubuntu equivalent packages...
Thanks to Neal I finally got my spec file making both debs for ubuntu 22.04 and rpms for Tumbleweed from the one spec file. The only problem is now how to add the repo that obs makes into Kubuntu... How do I configure apt/dpkg to read my repo properly...?
On Fri, Jul 5, 2024 at 2:18 PM Martin Hooper <martin@mjhooper.co.uk> wrote:
Thanks to Neal I finally got my spec file making both debs for ubuntu 22.04 and rpms for Tumbleweed from the one spec file.
The only problem is now how to add the repo that obs makes into Kubuntu...
How do I configure apt/dpkg to read my repo properly...?
You just have to do it manually. For example: cat > /etc/apt/sources.list.d/ubuntu-debbuild.sources <<EOF Types: deb URIs: https://download.opensuse.org/repositories/Ubuntu:/debbuild/Ubuntu_22.04/ Suites: ./ Enabled: yes EOF You will need to import the GPG key manually like you typically do, since Signed-By doesn't support remote key paths. -- 真実はいつも一つ!/ Always, there's only one truth!
Cannot really recommend DebBuild for creating pre-built binary packages; usable only for building from SOURCE . . . And in addition, it does not support capital letters when using %{name} macro -> e.g.: Name: Termius Used macro: %{name} seeks for `termius` instead of `Termius` ............... Best regards, Martin from Liberec, Czechia Sent with Proton Mail secure email. On Friday, July 5th, 2024 at 22:57, Neal Gompa <ngompa13@gmail.com> wrote:
On Fri, Jul 5, 2024 at 2:18 PM Martin Hooper martin@mjhooper.co.uk wrote:
Thanks to Neal I finally got my spec file making both debs for ubuntu 22.04 and rpms for Tumbleweed from the one spec file.
The only problem is now how to add the repo that obs makes into Kubuntu...
How do I configure apt/dpkg to read my repo properly...?
You just have to do it manually. For example:
cat > /etc/apt/sources.list.d/ubuntu-debbuild.sources <<EOF
Types: deb URIs: https://download.opensuse.org/repositories/Ubuntu:/debbuild/Ubuntu_22.04/ Suites: ./ Enabled: yes EOF
You will need to import the GPG key manually like you typically do, since Signed-By doesn't support remote key paths.
-- 真実はいつも一つ!/ Always, there's only one truth!
On Sun, Jul 7, 2024 at 9:18 AM Martin von Reichenberg <martin.von.reichenberg@protonmail.com> wrote:
Cannot really recommend DebBuild for creating pre-built binary packages; usable only for building from SOURCE . . .
It works just fine for that, I've done it plenty of times. It's no worse than using rpmbuild for it.
And in addition, it does not support capital letters when using %{name} macro -> e.g.: Name: Termius
Used macro: %{name} seeks for `termius` instead of `Termius`
This is a restriction of the deb format. Only lowercase ASCII is allowed. Underscores (among other special characters) are also not allowed. -- 真実はいつも一つ!/ Always, there's only one truth!
AWWWWWWWWWWWWWWWWWWWWWWWWW Best regards, Martin from Liberec, Czechia Sent with Proton Mail secure email. On Sunday, July 7th, 2024 at 15:31, Neal Gompa <ngompa13@gmail.com> wrote:
On Sun, Jul 7, 2024 at 9:18 AM Martin von Reichenberg martin.von.reichenberg@protonmail.com wrote:
Cannot really recommend DebBuild for creating pre-built binary packages; usable only for building from SOURCE . . .
It works just fine for that, I've done it plenty of times. It's no worse than using rpmbuild for it.
And in addition, it does not support capital letters when using %{name} macro -> e.g.: Name: Termius
Used macro: %{name} seeks for `termius` instead of `Termius`
This is a restriction of the deb format. Only lowercase ASCII is allowed. Underscores (among other special characters) are also not allowed.
-- 真実はいつも一つ!/ Always, there's only one truth!
participants (3)
-
Martin Hooper
-
Martin von Reichenberg
-
Neal Gompa