Help building a package

So there is a package that has limited support for the mouse that I have and I have tried to compile it on OBS but cannot seem to figure out, additionally I found an OBS project that had it compiled for leap but I use tumbleweed and I need help.

ÂżWhat package is it?

You may use opi for automated compiles

My bad, I should have said that.

github repo : GitHub - dokutan/mouse_m908: Control various Redragon gaming mice from Linux, BSD and Haiku
OBS package (not mine) : Show home:gfb899 / mouse_m908 - openSUSE Build Service
My OBS attempt : Show home:40476 / mouse_m908 - openSUSE Build Service

Build shows this error

error: File /home/abuild/mouse_m908.zip: No such file or directory

Which means the file is not there. Which is weird, as it’s on the list. However, it’s adivised to specify the build instructions to download the file directly from the original repository instead of uploading your own. This isn’t necessary something related your problem, but it may solve it as it’s a file-related issue. Do as the other package you found using this address for the Source0:

[Original GitHub page]/%{name}/archive/refs/tags/v%{version}.tar.gz
(Sorry, i can’t insert URLs here.)

I copied the other package and changed the version numbers and it worked, W E I R D

1 Like

@40476 I built it a little differently :wink:
https://build.opensuse.org/package/show/home:malcolmlewis:TESTING/mouse_m908

 mouse_m908 -R -

# Model: 607
# Configuration created with mouse_m908 -R.
# This configuration can be send to the mouse with mouse_m908 -c.
# Note: reading the scrollspeed is not supported by the mouse.

# Currently active profile: 5

[profile1]

# LED settings
color=ff0000
brightness=0
speed=0
lightmode=reactive
report_rate=500

# DPI settings
# Active dpi level for this profile: 1
dpi1_enable=1
dpi1=0x1500
dpi2_enable=1
dpi2=1400
dpi3_enable=1
dpi3=1900
dpi4_enable=1
dpi4=0x3f00
dpi5_enable=1
dpi5=0x3002

# Button mapping
button_left=left
button_right=right
button_middle=middle
button_forward=dpi-cycle
button_backward=forward
button_dpi=backward
button_lightmode=dpi-
scroll_up=led_mode_switch

[profile2]

# LED settings
color=0000ff
brightness=0
speed=4
lightmode=breathing
report_rate=500

# DPI settings
# Active dpi level for this profile: 2
dpi1_enable=1
dpi1=0x1500
dpi2_enable=1
dpi2=1400
dpi3_enable=1
dpi3=1900
dpi4_enable=1
dpi4=0x3f00
dpi5_enable=1
dpi5=0x3002

# Button mapping
button_left=scroll_up
button_right=left
button_middle=right
button_forward=middle
button_backward=dpi-cycle
button_dpi=forward
button_lightmode=backward
scroll_up=dpi-

[profile3]

# LED settings
color=00ff00
brightness=0
speed=2
lightmode=static
report_rate=1000

# DPI settings
# Active dpi level for this profile: 4
dpi1_enable=1
dpi1=0x1500
dpi2_enable=1
dpi2=1400
dpi3_enable=1
dpi3=1900
dpi4_enable=1
dpi4=0x3f00
dpi5_enable=1
dpi5=0x3002

# Button mapping
button_left=led_mode_switch
button_right=scroll_up
button_middle=left
button_forward=right
button_backward=middle
button_dpi=dpi-cycle
button_lightmode=forward
scroll_up=backward

[profile4]

# LED settings
color=0e0ed9
brightness=3
speed=8
lightmode=rainbow
report_rate=1000

# DPI settings
# Active dpi level for this profile: 3
dpi1_enable=1
dpi1=0x1500
dpi2_enable=1
dpi2=1400
dpi3_enable=1
dpi3=1900
dpi4_enable=1
dpi4=0x3f00
dpi5_enable=1
dpi5=0x3002

# Button mapping
button_left=dpi-
button_right=led_mode_switch
button_middle=scroll_up
button_forward=left
button_backward=right
button_dpi=middle
button_lightmode=dpi-cycle
scroll_up=forward

[profile5]

# LED settings
color=ffff00
brightness=3
speed=0
lightmode=alternating
report_rate=500

# DPI settings
# Active dpi level for this profile: 5
dpi1_enable=1
dpi1=0x1500
dpi2_enable=1
dpi2=1400
dpi3_enable=1
dpi3=1900
dpi4_enable=1
dpi4=0x3f00
dpi5_enable=1
dpi5=0x3002

# Button mapping
button_left=backward
button_right=dpi-
button_middle=led_mode_switch
button_forward=scroll_up
button_backward=left
button_dpi=right
button_lightmode=middle
scroll_up=dpi-cycle

# Macros

;## macro8
;# unknown, please report as bug: ff ff 0

Just curious do you actually have that mouse or is this just something else? I am a little confused.
Also on Redragon Griffin mice the configuration does not get read properly and items are items from 1 profile can be placed in 2 completely different profiles.

(See the GitHub repos README for information regarding supported mice)

@40476 No, I have the mouse Bus 003 Device 015: ID 04d9:fc38 Holtek Semiconductor, Inc. Gaming Mouse [Redragon M602-RGB] else couldn’t test the software :wink:

hmmm, well… I guess now that I know the software works I will be getting a fully compatible mouse, as was my intention from the beginning.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.