stylelint.spec 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. ##
  2. ## stylelint.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2020 OpenPKG Project <http://openpkg.org/>
  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 version
  24. %define V_stylelint 13.2.0
  25. %define V_stylelint_snap 20200214
  26. # package information
  27. Name: stylelint
  28. Summary: CSS Linting Tool
  29. URL: http://stylelint.io/
  30. Vendor: Maxime Thirouin, David Clark, Richard Hallows
  31. Packager: OpenPKG Project
  32. Distribution: OpenPKG Community
  33. Class: EVAL
  34. Group: Language
  35. License: MIT
  36. Version: %{V_stylelint}
  37. Release: 20200214
  38. # list of sources
  39. Source0: http://download.openpkg.org/components/versioned/stylelint/stylelint-%{V_stylelint}-%{V_stylelint_snap}.tar.gz
  40. Source1: stylelint.sh
  41. # build information
  42. BuildPreReq: OpenPKG, openpkg >= 20160101, node-openpkg
  43. PreReq: OpenPKG, openpkg >= 20160101, node
  44. %description
  45. StyleLint is a program that looks for problems in Cascading Style
  46. Sheet (CSS) files. It is a code quality tool.
  47. %track
  48. prog stylelint = {
  49. version = %{V_stylelint}
  50. url = https://github.com/stylelint/stylelint/releases
  51. regex = (\d+\.\d+\.\d+)\.tar\.gz
  52. }
  53. %prep
  54. %setup -q -c
  55. %build
  56. %{l_prefix}/bin/node-openpkg squeeze
  57. rm -rf "node_modules/jison-gho/tmp2/sandbox"
  58. %install
  59. %{l_shtool} mkdir -f -p -m 755 \
  60. $RPM_BUILD_ROOT%{l_prefix}/bin \
  61. $RPM_BUILD_ROOT%{l_prefix}/lib/stylelint
  62. %{l_shtool} install -c -m 755 %{l_value -s -a} \
  63. %{SOURCE stylelint.sh} \
  64. $RPM_BUILD_ROOT%{l_prefix}/bin/stylelint
  65. %{l_prefix}/bin/node-openpkg install \
  66. %{l_prefix}/lib/stylelint/
  67. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  68. %files -f files
  69. %clean