Advertisement
Guest User

teste.spec

a guest
Feb 6th, 2015
260
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Name: Programa
  2. Version:1.0
  3. Release:1
  4. URL:http://entusiastasdelinux.forumaster.net
  5. Summary:Programa feito no Lazarus
  6. License: GPLv2
  7. Group:Tools
  8. Source0: %{name}-%{version}.zip
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
  10. BuildArch: noarch
  11. Requires(post): desktop-file-utils
  12. Requires(postun): desktop-file-utils
  13.  
  14.  
  15.  
  16.  
  17. %files
  18. %defattr(-,root,root,-)
  19. /usr/bin/Programa
  20. /usr/share/applications/Name: Programa
  21. Version:1.0
  22. Release:1
  23. URL:http://entusiastasdelinux.forumaster.net
  24. Summary:Programa feito no Lazarus
  25. License: GPLv2
  26. Group:Tools
  27. Source0: %{name}-%{version}.zip
  28. BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
  29. BuildArch: noarch
  30. Requires(post): desktop-file-utils
  31. Requires(postun): desktop-file-utils
  32.  
  33.  
  34. %description
  35. Teste
  36.  
  37.  
  38.  
  39. %prep
  40. %setup -c %{$RPM_BUILD_DIR}
  41.  
  42. %install
  43. rm -rf $RPM_BUILD_ROOT
  44. mkdir -p $RPM_BUILD_ROOT/{usr/{bin,sbin,share/applications,share/icons}
  45. install -m0755 $RPM_BUILD_DIR/%{name}-%{version}/Programa-%{version} $RPM_BUILD_ROOT/usr/bin/Programa
  46. install -m0644 $RPM_BUILD_DIR/%{name}-%{version}/Programa.desktop $RPM_BUILD_ROOT/usr/share/applications/Programa.desktop
  47. install -m0644 $RPM_BUILD_DIR/%{name}-%{version}/Programa.png $RPM_BUILD_ROOT/usr/share/icons/Programa.png
  48.  
  49. %clean
  50. rm -rf $RPM_BUILD_ROOT $RPM_BUILD_DIR/%{name}-%{version}
  51.  
  52. %post
  53. %{update_menus}
  54.  
  55. %postun
  56. %{clean_menus}
  57.  
  58.  
  59. %changelog
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement