Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Won't start fix #25

Open
wants to merge 23 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
698cabd
Won't start fix
blackPantherOS Sep 15, 2023
4e7752e
Added new png icon, spec for RPM
blackPantherOS Sep 15, 2023
fd9e9e6
fix: requirements.txt to reduce vulnerabilities
snyk-bot Sep 26, 2023
df7d306
fix: requirements.txt to reduce vulnerabilities
snyk-bot Sep 28, 2023
0ef6ee9
Merge pull request #2 from blackPantherOS/snyk-fix-1a9a69f075e2cb9966…
blackPantherOS Sep 28, 2023
04176a4
Merge branch 'main' into snyk-fix-d88dbb614fbe5dd20c458e7dee307aed
blackPantherOS Sep 28, 2023
0b5e238
Merge pull request #1 from blackPantherOS/snyk-fix-d88dbb614fbe5dd20c…
blackPantherOS Sep 28, 2023
f090f9d
fix: requirements.txt to reduce vulnerabilities
snyk-bot Oct 3, 2023
8279153
Merge pull request #4 from blackPantherOS/snyk-fix-0ac157a0bc9e6e3114…
blackPantherOS Oct 3, 2023
3a33726
fix: requirements.txt to reduce vulnerabilities
snyk-bot Nov 20, 2023
e13720f
fix: requirements.txt to reduce vulnerabilities
snyk-bot Dec 10, 2023
0ecf587
Merge pull request #6 from blackPantherOS/snyk-fix-e88c71425af7422b57…
blackPantherOS Dec 10, 2023
4478bb4
fix: requirements.txt to reduce vulnerabilities
snyk-bot Mar 21, 2024
1b724d2
Merge pull request #8 from blackPantherOS/snyk-fix-c8deb5f27ec7e8e543…
blackPantherOS Mar 21, 2024
f8f9ecd
fix: requirements.txt to reduce vulnerabilities
snyk-bot Mar 21, 2024
ffc69f8
Merge pull request #9 from blackPantherOS/snyk-fix-e87f9b68d414787c99…
blackPantherOS Mar 21, 2024
0882668
fix: requirements.txt to reduce vulnerabilities
snyk-bot Apr 18, 2024
eaa8d1f
Merge pull request #10 from blackPantherOS/snyk-fix-26131e07ebdd32433…
blackPantherOS Apr 18, 2024
b315934
Merge pull request #5 from blackPantherOS/snyk-fix-8d4f854407f3f20ddc…
blackPantherOS Apr 18, 2024
222a6e4
fix: requirements.txt to reduce vulnerabilities
snyk-bot Jul 30, 2024
db772e8
Merge pull request #13 from blackPantherOS/snyk-fix-80865fcbe3b393b40…
blackPantherOS Jul 30, 2024
3929fb8
fix: requirements.txt to reduce vulnerabilities
snyk-bot Aug 15, 2024
e80cd4f
Merge pull request #15 from blackPantherOS/snyk-fix-13a051d5693b77793…
blackPantherOS Aug 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added images/nonmouse.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
104 changes: 104 additions & 0 deletions nonmouse.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
# Created by pyp2rpm-3.3.4
%global oname NonMouse
%global pypi_name nonmouse

%define Summary Webcam-based virtual gesture mouse that is easy to use with hands
%define Summary_hu Webkamera alapú virtuális egér ami kézmozgással használható

Name: %{pypi_name}
Version: 2.7.0
Release: %mkrel 1
Summary: %Summary
Summary(hu): %Summary_hu
Group: Development/Python
License: Apache-2.0
URL: https://github.com/takeyamayuki/NonMouse
Vendor: blackPanther Europe
Packager: Charles K Barcza <[email protected]>
Source0: https://files.pythonhosted.org/packages/source/n/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
# icon created by Charles K Barcza
Source1: %name.png
Patch0: %name-wont-start-fix.patch
BuildArch: noarch

BuildRequires: python3-devel
BuildRequires: python3dist(setuptools)

%{?python_provide:%python_provide python3-%{pypi_name}}

Requires: python3dist(absl-py)
Requires: python3dist(altgraph)
Requires: python3dist(attrs)
Requires: python3dist(cycler)
Requires: python3dist(fonttools)
Requires: python3dist(keyboard)
Requires: python3dist(kiwisolver)
Requires: python3dist(macholib)
Requires: python3dist(matplotlib)
Requires: python3dist(mediapipe)
Requires: python3dist(numpy)
Requires: python3dist(opencv-contrib-python)
Requires: python3dist(packaging)
Requires: python3dist(pillow)
Requires: python3dist(protobuf)
Requires: python3dist(pynput)
Requires: python3dist(pyparsing)
Requires: python3dist(python-dateutil)
Requires: python3dist(six)

%description
Webcam-based virtual gesture mouse that is easy to use with hands on the desk


%prep
%autosetup -n %{pypi_name}-%{version} -p1
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info
echo > requirements.txt

%build
%py3_build

%install
%py3_install

%define nameicon %SOURCE1
mkdir -p -m755 %{buildroot}{%_liconsdir,%_iconsdir,%_miconsdir}
convert -scale 48x48 %{nameicon} %{buildroot}/%{_liconsdir}/%{name}.png
convert -scale 32x32 %{nameicon} %{buildroot}/%{_iconsdir}/%{name}.png
convert -scale 16x16 %{nameicon} %{buildroot}/%{_miconsdir}/%{name}.png

rm -rf %{buildroot}%{_datadir}/applications
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/blackPanther-%{name}.desktop <<EOF
[Desktop Entry]
Name=%oname
Comment=%Summary
Comment[hu]=%Summary_hu
GenericName=%Summary
GenericName[hu]=%Summary_hu
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=Utility;Accessibility;
Keywords=handmouse;no mouse;
Keywords[hu]=kéziegér;kézegér;nincs egér;
EOF


%files
%doc README.md
%_bindir/%name
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
%{_datadir}/applications/blackPanther-%{name}.desktop
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_miconsdir}/%{name}.png

%changelog
* Fri Sep 15 2023 Charles K Barcza <[email protected]> - 2.7.0-1bP
- Initial for blackPanther OS generated with Pyp2Rpm
--------------------------------------------------------------------
3 changes: 2 additions & 1 deletion nonmouse/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ def main():
window_name = 'NonMouse'
cv2.namedWindow(window_name)
cap = cv2.VideoCapture(cap_device)
cap.set(cv2.CAP_PROP_FPS, 60)
fps = cap.get(cv2.CAP_PROP_FPS)
cap.set(cv2.CAP_PROP_FPS, fps)
cfps = int(cap.get(cv2.CAP_PROP_FPS))
if cfps < 30:
cap.set(cv2.CAP_PROP_FRAME_WIDTH, cap_width)
Expand Down
18 changes: 10 additions & 8 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@ absl-py==1.2.0
altgraph==0.17.2
attrs==22.1.0
cycler==0.11.0
fonttools==4.36.0
fonttools==4.43.0
keyboard==0.13.5
kiwisolver==1.4.4
macholib==1.16
matplotlib==3.5.3
mediapipe==0.8.10.1
numpy==1.19.4
opencv-contrib-python==4.6.0.66
opencv-python==4.5.3.56
opencv-python-headless==4.6.0.66
numpy==1.22.2
opencv-contrib-python==4.8.1.78.66
opencv-python==4.8.1.78.56
opencv-python-headless==4.8.1.78.66
packaging==21.3
Pillow==9.2.0
protobuf==3.20.1
pyinstaller==4.6
Pillow==10.0.1
protobuf==3.20.2
pyinstaller==5.13.1
pyinstaller-hooks-contrib==2022.8
pynput==1.6.8
pyobjc==7.3; sys_platform == 'darwin'
Expand Down Expand Up @@ -152,3 +152,5 @@ pyobjc-framework-WebKit==7.3; sys_platform == 'darwin'
pyparsing==3.0.9
python-dateutil==2.8.2
six==1.16.0
setuptools>=70.0.0 # not directly required, pinned by Snyk to avoid a vulnerability
zipp>=3.19.1 # not directly required, pinned by Snyk to avoid a vulnerability