Advertisement
Guest User

Untitled

a guest
Sep 26th, 2024
11
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. $ dnf download --source nicotine+
  2. $ sudo dnf build-dep nicotine+-3.3.4-1.fc40.src.rpm
  3. $ rpm -ivh nicotine+-3.3.4-1.fc40.src.rpm
  4. $ cd ~/rpmbuild/SOURCES
  5. $ vi SPECS/nicotine+.spec [bump the release from 1 to 2]
  6. $ cd SOURCES
  7. $ tar -zxvf nicotine+-3.3.4.tar.gz
  8. $ cd nicotine-plus-3.3.4/pynicotine/plugins/leech_detector
  9.  
  10. modify __init__.py to have:
  11. subprocess.run(["notify-send", "Nicotine+", "A leecher is downloading""])
  12. added near the line that says:
  13. "Leecher detected, %s is only sharing
  14.  
  15. around '"Leecher detected, %s is only sharing'
  16. and at the top add:
  17. import subprocess
  18.  
  19. $ cd ../../../../
  20. $ rm nicotine+-3.3.4.tar.gz
  21. $ tar -zcvf nicotine+-3.3.4.tar.gz nicotine-plus-3.3.4
  22. $ cd ..
  23. $ rpmbuild -bb SPECS/nicotine+.spec
  24. $ cd RPMS/noarch
  25. $ sudo rpm -Uvh nicotine+-3.3.4-2.fc40.noarch.rpm
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement