Bug 2010111

Summary: Review Request: gdnativegamerzilla - Godot native interface to gamerzilla
Product: [Fedora] Fedora Reporter: Dennis Payne <dulsi>
Component: Package ReviewAssignee: Sandro Mani <manisandro>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: manisandro, package-review
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
If this bug requires documentation, please select an appropriate Doc Type value.
Last Closed: 2022-03-29 07:13:08 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 2025318    
Bug Blocks:    

Description Dennis Payne 2021-10-03 19:37:02 UTC
Spec URL: https://raw.githubusercontent.com/dulsi/gdnativegamerzilla/master/gdnativegamerzilla.spec
SRPM URL: http://identicalsoftware.com/gamerzilla/gdnativegamerzilla-0.1-1.fc34.src.rpm
Godot native interface to award game achievements. The libgamerzilla is
used to communicate with the gamerzilla server.

Fedora Account System Username:dulsi

Comment 2 Sandro Mani 2021-11-20 16:26:15 UTC
I'd suggest to simplify as

%setup -q -T -a0 -a1 -a2

mv godot-cpp-godot-3.3.4-stable godot-cpp
rmdir godot-cpp/godot-headers
mv godot-headers-godot-3.3.4-stable godot-cpp/godot-headers
cd godot-cpp
scons platform=linux generate_bindings=yes -j4
cd ../%{name}-%{version}
mkdir bin
scons platform=linux

Comment 3 Dennis Payne 2021-11-20 19:18:07 UTC
Spec URL: https://raw.githubusercontent.com/dulsi/gdnativegamerzilla/master/gdnativegamerzilla.spec
SRPM URL: http://identicalsoftware.com/gamerzilla/gdnativegamerzilla-0.1-2.fc35.src.rpm

I decided to combine your change with some changes suggested on fedora magazine.

Comment 4 Sandro Mani 2021-11-21 09:48:53 UTC
There is a godot package in fedora, can it be used rather then the separate sources?

If not:

* You could set a macro

%global godot_ver 3.4

and use it for the source URLs and in %setup. The source URLs could be simplified to

Source1: https://github.com/godotengine/godot-cpp/archive/godot-%{godot_ver}-stable/godot-cpp-%{godot_ver}-stable.tar.gz
Source2: https://github.com/godotengine/godot-headers/archive/godot-%{godot_ver}-stable/godot-headers-%{godot_ver}-stable.tar.gz

* The license should be zlib and MIT, as godot-cpp and headers is MIT, and include the godot LICENSE files in %license

* You'll need to add Provides: bundled(godot) = %{godot_ver}

Furthermore, you could replace

mkdir -p %{buildroot}%{_libdir}
cp %{name}-%{version}/bin/x11/libgdgamerzilla.so %{buildroot}%{_libdir}/libgdgamerzilla.so


install -Dpm 0755 %{name}-%{version}/bin/x11/libgdgamerzilla.so %{buildroot}%{_libdir}/libgdgamerzilla.so

Comment 5 Dennis Payne 2021-11-21 16:52:23 UTC
Spec URL: https://raw.githubusercontent.com/dulsi/gdnativegamerzilla/master/gdnativegamerzilla.spec
SRPM URL: http://identicalsoftware.com/gamerzilla/gdnativegamerzilla-0.2-1.fc35.src.rpm

I didn't want to separate the godot-cpp stuff into a separate package but I knew that was the right solution so I've done that now.

Comment 6 Sandro Mani 2022-03-02 13:19:03 UTC
@dulsi Still interested in pursuing this?

Comment 7 Sandro Mani 2022-03-29 07:13:08 UTC
Closed per stalled review policy.

Comment 8 Red Hat Bugzilla 2023-09-15 01:15:49 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 500 days