Advertisement
Guest User

Untitled

a guest
Feb 6th, 2015
235
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Name: Programa
  2. Version:
  3. Release:
  4. URL:
  5. Summary:
  6. License: GPLv2
  7. Group:
  8. Source0: %{name}-%{version}.zip
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
  10. BuildArch: noarch
  11. Requires:
  12. Requires(post): desktop-file-utils
  13. Requires(postun): desktop-file-utils
  14. %description
  15. %prep
  16. %setup -c %{$RPM_BUILD_DIR}
  17. %install
  18. rm -rf $RPM_BUILD_ROOT
  19. mkdir -p $RPM_BUILD_ROOT/{usr/{bin,sbin,share/applications,share/icons}
  20. install -m0755 $RPM_BUILD_DIR/%{name}-%{version}/Programa-%{version} $RPM_BUILD_ROOT/usr/bin/Programa
  21. install -m0644 $RPM_BUILD_DIR/%{name}-%{version}/Programa.desktop $RPM_BUILD_ROOT/usr/share/applications/Programa.desktop
  22. install -m0644 $RPM_BUILD_DIR/%{name}-%{version}/Programa.png $RPM_BUILD_ROOT/usr/share/icons/Programa.png
  23.  
  24. %clean
  25. rm -rf $RPM_BUILD_ROOT $RPM_BUILD_DIR/%{name}-%{version}
  26.  
  27. %post
  28. %{update_menus}
  29.  
  30. %postun
  31. %{clean_menus}
  32.  
  33. %files
  34. %defattr(-,root,root,-)
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement