Bug 2175818

Summary: Review Request: input-leap - Share mouse and keyboard between multiple computers over the network
Product: [Fedora] Fedora Reporter: Ali Erdinc Koroglu <aekoroglu>
Component: Package ReviewAssignee: Neal Gompa <ngompa13>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: brian, ngompa13, package-review, redhat-bugzilla
Target Milestone: ---Flags: ngompa13: fedora-review+
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
URL: https://github.com/%{name}/%{name}
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-03-17 13:06:56 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
The .spec file difference from Copr build 5598422 to 5602834
none
The .spec file difference from Copr build 5602834 to 5603815
none
The .spec file difference from Copr build 5603815 to 5615441
none
The .spec file difference from Copr build 5615441 to 5619428
none
The .spec file difference from Copr build 5619428 to 5651771 none

Description Ali Erdinc Koroglu 2023-03-06 15:38:44 UTC
SPEC Url: https://download.copr.fedorainfracloud.org/results/aekoroglu/fedora/fedora-rawhide-x86_64/05598376-input-leap/input-leap.spec
SRPM Url: https://download.copr.fedorainfracloud.org/results/aekoroglu/fedora/fedora-rawhide-x86_64/05598376-input-leap/input-leap-2.4.0-0.1.20230306gite71fbbfe.fc39.src.rpm

Description:
Input Leap is software that mimics the functionality of a KVM switch, which
historically would allow you to use a single keyboard and mouse to control 
multiple computers by physically turning a dial on the box to switch the 
machine you're controlling at any given moment.

Comment 1 Neal Gompa 2023-03-06 17:00:56 UTC
Taking this review.

Comment 3 Jakub Kadlčík 2023-03-07 13:02:31 UTC
Created attachment 1948668 [details]
The .spec file difference from Copr build 5598422 to 5602834

Comment 4 Neal Gompa 2023-03-07 13:06:45 UTC
Initial spec review:

> Version:		2.4.0
> %if %{with_snapshot}
> Release:		%autorelease -p -s %{gitdate}git%{shortcommit}
> %else
> Release:		%autorelease

Please move the snapshot versioning to "Version", like so: "2.4.0%{?with_snapshot:^%{gitdate}git%{shortcommit}}"

Cf. https://docs.fedoraproject.org/en-US/packaging-guidelines/Versioning/#_snapshots

> 	-DINPUTLEAP_BUILD_TESTS=OFF \
> 	-DINPUTLEAP_USE_EXTERNAL_GTEST=false

We do have gtest-devel for this...

> desktop-file-install --delete-original \
> 	--dir %{buildroot}%{_datadir}/applications \
> 	--set-icon=%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg \
> 	%{buildroot}%{_datadir}/applications/%{name}.desktop

I looked at the original desktop file, and I don't see a reason to rewrite the file? https://github.com/input-leap/input-leap/blob/master/res/input-leap.desktop

Can we just replace this with desktop-file-validate in %check?

Cf. https://docs.fedoraproject.org/en-US/packaging-guidelines/#_desktop_file_install_usage

We also want validation of the AppStream metainfo file.

Cf. https://docs.fedoraproject.org/en-US/packaging-guidelines/AppData/

Comment 5 Brian J. Murrell 2023-03-07 13:10:36 UTC
Shouldn't this package *replace* barrier with something like Obsoletes?

Comment 6 Brian J. Murrell 2023-03-07 13:19:02 UTC
(In reply to Brian J. Murrell from comment #5)
> Shouldn't this package *replace* barrier with something like Obsoletes?

Just to clarify why... but my understanding is that upstream barrier's development has all moved to input-leap and thus barrier is effectively abandoned and accordingly, packaging effort for barrier has also ceased with the packaging effort for this package taking over where that stopped.  That seems to me to be exactly what Obsoletes was created for.

It means people will have their barrier upgraded to input-leap once the package is in the repo without people needing to know that they would otherwise have to manually remove barrier and manually install input-leap.  I would guess that most people are likely never going to realize that barrier is effectively dead and they this manual upgrade step is necessary.

Comment 8 Brian J. Murrell 2023-03-07 19:33:52 UTC
Still no Obsoletes and no comment about it either way.

Comment 9 Jakub Kadlčík 2023-03-07 19:50:37 UTC
Created attachment 1948799 [details]
The .spec file difference from Copr build 5602834 to 5603815

Comment 10 Jakub Kadlčík 2023-03-07 19:50:39 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/5603815
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2175818-input-leap/fedora-rawhide-x86_64/05603815-input-leap/fedora-review/review.txt

Please take a look if any issues were found.

---
This comment was created by the fedora-review-service
https://github.com/FrostyX/fedora-review-service

If you want to trigger a new Copr build, add a comment containing new
Spec and SRPM URLs or [fedora-review-service-build] string.

Comment 11 Ali Erdinc Koroglu 2023-03-08 06:00:46 UTC
Hello Brian, can we discuss this after the package approval ?

Comment 12 Brian J. Murrell 2023-03-08 13:15:56 UTC
Hi Ali.

It seems like adding Obsoletes: would be part of the package approval process (it's going to modify the specfile after all) and discussing it afterward would be like discussing how to get the toothpaste out of the tube after it's already all been squeezed out.

Or am I misunderstanding something?

Comment 13 Neal Gompa 2023-03-08 13:16:59 UTC
No, the package replacement needs to be part of this package review, since it is intended to replace barrier and synergy.

Comment 14 Neal Gompa 2023-03-08 13:17:47 UTC
That means we need "Obsoletes+Provides" stanza for barrier (and potentially synergy too...)

Comment 15 Brian J. Murrell 2023-03-08 13:22:39 UTC
Ahh.  Good catch on replacing synergy as well Neal.

Comment 16 Ali Erdinc Koroglu 2023-03-08 13:42:30 UTC
Ok, we can obsolete barrier (primary developers moved to inputleap) but not sure about synergy.

https://github.com/symless/synergy-core/commits/master
https://src.fedoraproject.org/rpms/synergy/commits/rawhide

Comment 17 Brian J. Murrell 2023-03-08 14:27:03 UTC
Heh, yes.  I tend to forget that synergy is dead to me, but not everyone.

So I agree that probably only Obsoletes+Provides for barrier is appropriate.

Comment 19 Jakub Kadlčík 2023-03-08 17:09:36 UTC
Created attachment 1949127 [details]
The .spec file difference from Copr build 5603815 to 5615441

Comment 20 Jakub Kadlčík 2023-03-08 17:09:39 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/5615441
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2175818-input-leap/fedora-rawhide-x86_64/05615441-input-leap/fedora-review/review.txt

Please take a look if any issues were found.

---
This comment was created by the fedora-review-service
https://github.com/FrostyX/fedora-review-service

If you want to trigger a new Copr build, add a comment containing new
Spec and SRPM URLs or [fedora-review-service-build] string.

Comment 21 Neal Gompa 2023-03-09 17:43:56 UTC
> %if %{with_snapshot}
> Version:		2.4.0%{?with_snapshot:^%{gitdate}git%{shortcommit}}
> %else
> Version:		2.4.0
> %endif

You can drop the %if conditional. it's redundant.

Comment 23 Jakub Kadlčík 2023-03-09 18:27:20 UTC
Created attachment 1949414 [details]
The .spec file difference from Copr build 5615441 to 5619428

Comment 24 Jakub Kadlčík 2023-03-09 18:27:22 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/5619428
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2175818-input-leap/fedora-rawhide-x86_64/05619428-input-leap/fedora-review/review.txt

Please take a look if any issues were found.

---
This comment was created by the fedora-review-service
https://github.com/FrostyX/fedora-review-service

If you want to trigger a new Copr build, add a comment containing new
Spec and SRPM URLs or [fedora-review-service-build] string.

Comment 25 Neal Gompa 2023-03-15 15:17:21 UTC
> %cmake . \

You can drop the ".", as it's handled by the %cmake macro now.

Comment 27 Jakub Kadlčík 2023-03-16 15:53:46 UTC
Created attachment 1951302 [details]
The .spec file difference from Copr build 5619428 to 5651771

Comment 28 Jakub Kadlčík 2023-03-16 15:53:48 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/5651771
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2175818-input-leap/fedora-rawhide-x86_64/05651771-input-leap/fedora-review/review.txt

Please take a look if any issues were found.

---
This comment was created by the fedora-review-service
https://github.com/FrostyX/fedora-review-service

If you want to trigger a new Copr build, add a comment containing new
Spec and SRPM URLs or [fedora-review-service-build] string.

Comment 29 Neal Gompa 2023-03-16 17:20:21 UTC
Things look good now!

PACKAGE APPROVED.

Comment 30 Fedora Admin user for bugzilla script actions 2023-03-17 08:37:40 UTC
The Pagure repository was created at https://src.fedoraproject.org/rpms/input-leap

Comment 31 Ali Erdinc Koroglu 2023-03-17 13:06:56 UTC
Thank you guys :)

Comment 32 Brian J. Murrell 2023-03-23 23:51:11 UTC
I do have a COPR project building this for F37->rawhide if anyone wants early access on current-release Fedora.

https://copr.fedorainfracloud.org/coprs/brianjmurrell/input-leap/

dnf copr enable brianjmurrell/input-leap

I've installed it.  Won't be able to test it until tomorrow when I go to work.