haml.spec 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. ##
  2. ## haml.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2010 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ##
  5. ## Permission to use, copy, modify, and distribute this software for
  6. ## any purpose with or without fee is hereby granted, provided that
  7. ## the above copyright notice and this permission notice appear in all
  8. ## copies.
  9. ##
  10. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  11. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  12. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  13. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  14. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  15. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  16. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  17. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  18. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  19. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  20. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  21. ## SUCH DAMAGE.
  22. ##
  23. # package information
  24. Name: haml
  25. Summary: HAML/SASS Languages for HTML/CSS
  26. URL: http://haml-lang.com/
  27. Vendor: Hampton Catlin, Nathan Weizenbaum, Chris Eppstein
  28. Packager: OpenPKG Foundation e.V.
  29. Distribution: OpenPKG Community
  30. Class: EVAL
  31. Group: Web
  32. License: MIT
  33. Version: 3.0.21
  34. Release: 20100930
  35. # list of sources
  36. Source0: http://files.rubyforge.vm.bytemark.co.uk/haml/haml-%{version}.tar.gz
  37. # build information
  38. BuildPreReq: OpenPKG, openpkg >= 20100101
  39. PreReq: OpenPKG, openpkg >= 20100101, ruby
  40. %description
  41. HAML is a markup language that is used to cleanly and simply
  42. describe the HTML of any web document without the use of inline
  43. code. SASS makes CSS fun again. It is an extension of CSS3, adding
  44. nested rules, variables, mixins, selector inheritance, and more.
  45. It's translated to well-formatted, standard CSS using the command
  46. line tool or a web-framework plugin.
  47. %track
  48. prog haml = {
  49. version = %{version}
  50. url = http://rubyforge.org/frs/?group_id=2760
  51. regex = haml-(__VER__)\.tar\.gz
  52. }
  53. %prep
  54. %setup -q -c
  55. %build
  56. %install
  57. %{l_shtool} mkdir -f -p -m 755 \
  58. $RPM_BUILD_ROOT%{l_prefix}/bin \
  59. $RPM_BUILD_ROOT%{l_prefix}/lib/haml
  60. for prg in css2sass haml html2haml sass sass-convert; do
  61. %{l_shtool} install -c -m 755 \
  62. -e 's;/usr/bin/env ruby;%{l_prefix}/bin/ruby;g' \
  63. -e 's;/lib;/lib/haml;g' \
  64. bin/$prg $RPM_BUILD_ROOT%{l_prefix}/bin/$prg
  65. done
  66. %{l_shtool} subst \
  67. -e 's;\(VERSION_NAME\);haml/\1;g' \
  68. -e 's;\(VERSION[^_]\);haml/\1;g' \
  69. lib/haml/version.rb
  70. cp -r VERSION* lib/* $RPM_BUILD_ROOT%{l_prefix}/lib/haml/
  71. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  72. %files -f files
  73. %clean