Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Oct 3rd, 2010  |  syntax: None  |  size: 2.42 KB  |  hits: 92  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. %define _mandir=/usr/share/manpages
  2.  
  3. Name:           awesome
  4. Version:        3.4.7
  5. Release:        %mkrel 1
  6. Summary:        Highly configurable, framework window manager for X. Fast, light and extensible
  7. Group:          Graphical desktop/Other
  8. License:        GPLv2+
  9. URL:            http://awesome.naquadah.org
  10. Source0:        http://awesome.naquadah.org/download/%{name}-%{version}.tar.bz2
  11. Patch0:         awesome-revert-change.patch
  12. BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  13.  
  14. # for wallpaper setting handling
  15. Requires:       xli
  16.  
  17. BuildRequires:  libpango1.0-devel, libcairo-devel, libreadline-devel, libimlib2-devel
  18. BuildRequires:  ImageMagick, libxdg-basedir, libev-devel, docbook-dtd45-xml  
  19. BuildRequires:  libxorg-x11-devel, libxrandr2-devel, libxinerama1-devel
  20. BuildRequires:  cmake, libxcb-util-devel >= 0.3.6, liblua-devel, libxdg-basedir-devel
  21. BuildRequires:  libdbus-1-devel, libglib2.0_0-devel, gperf
  22. BuildRequires:  doxygen, graphviz, asciidoc, xmlto, liblua-static-devel
  23. BuildRequires:  libstartup-notification-1-devel >= 0.10, x11-proto-devel
  24.  
  25.  
  26. %description
  27. Awesome is a highly configurable, next generation framework window
  28. manager for X. It is very fast, light and extensible.
  29.  
  30. It is primarly targeted at power users, developers and any people
  31. dealing with every day computing tasks and want to have fine-grained
  32. control on its graphical environment.
  33.  
  34.  
  35. %prep
  36. %setup -q
  37. %patch0 -p1 -b .revert-change
  38.  
  39. %build
  40. cmake ./ -DCMAKE_INSTALL_PREFIX:PATH=/usr -DSHARE_INSTALL_PREFIX:PATH=/usr/share -DCMAKE_SKIP_RPATH=ON -DCMAKE_BUILD_TYPE=debug -DBUILD_SHARED_LIBS=ON  -DCMAKE_MODULE_LINKER_FLAGS="-Wl,--as-needed  -Wl,-z,relro" -DXDG_CONFIG_DIR=%{_sysconfdir}/xdg
  41. %make
  42.  
  43.  
  44. %install
  45. rm -rf %buildroot
  46. %makeinstall_std
  47.  
  48. mkdir -p %{buildroot}%{_sysconfdir}/X11/wmsession.d
  49. cat >    %{buildroot}%{_sysconfdir}/X11/wmsession.d/19%{name} << EOF
  50. NAME=%name
  51. EXEC=%{_bindir}/%{name}
  52. DESC=%summary
  53. SCRIPT:
  54. exec %{_bindir}/%{name}
  55. EOF
  56.  
  57.  
  58. %clean
  59. rm -rf %buildroot
  60.  
  61.  
  62. %files
  63. %defattr(-,root,root,-)
  64. %doc README
  65. %config(noreplace) %_sysconfdir/xdg/%{name}/rc.lua
  66. %config(noreplace) %_sysconfdir/X11/wmsession.d/19%{name}
  67. %_bindir/awesome
  68. %_bindir/awesome-client
  69. %_bindir/awsetbg
  70. %dir %_datadir/%{name}
  71. %dir %_docdir/%{name}
  72. %_datadir/%{name}/icons/*
  73. %_datadir/%{name}/lib/*
  74. %_datadir/%{name}/themes/*
  75. %_mandir/man1/awesome.1.gz
  76. %_mandir/man1/awesome-client.1.gz
  77. %_mandir/man1/awsetbg.1.gz
  78. %_mandir/man5/awesomerc.5.gz
  79. %_datadir/xsessions/%{name}.desktop