Advertisement
LockdateforGHS

Package.spec

Jun 13th, 2023
2,141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Define the name and version of your package
  2. Name: Ppolick
  3. Version: 1.8
  4.  
  5. # Define the release number
  6. Release: 1%{?dist}
  7.  
  8. # Specify the summary and description of your package
  9. Summary: My Package Summary
  10. %description
  11. Adds stuff hehe
  12. # Define the license for your package
  13. License: MIT
  14.  
  15. # Define the URL where your package can be found
  16. URL: NoURL
  17.  
  18. # Define the source file(s) for your package
  19. Source0: %{name}-%{version}.tar.gz
  20.  
  21. # Define the dependencies required by your package
  22. Requires: dependency1
  23. Requires: dependency2 >= 1.0
  24.  
  25. # Define the build requirements for your package
  26. BuildRequires: build_dependency1
  27. BuildRequires: build_dependency2
  28.  
  29. # Define the build steps for your package
  30. %prep
  31. %setup -q
  32.  
  33. %build
  34. ./configure
  35. make
  36.  
  37. %install
  38. make install
  39.  
  40. # Define the files and directories to be included in the package
  41. %files
  42. %{_bindir}/mybinary
  43. %{_datadir}/mypackage/
  44.  
  45. # Define the scriptlets to be run during package installation and removal
  46. %pre
  47. echo "Pre-installation steps"
  48.  
  49. %post
  50. echo "Post-installation steps"
  51.  
  52. %preun
  53. echo "Pre-uninstallation steps"
  54.  
  55. %postun
  56. echo "Post-uninstallation steps"
  57.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement