sassc-vl.spec 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. %bcond_with check
  2. %global testspec_version 3.6.0
  3. Name: sassc
  4. Version: 3.6.1
  5. Release: 1%{?_dist_release}
  6. Summary: Wrapper around libsass to compile CSS stylesheet
  7. Summary(ja): libsassのコマンドラインラッパー
  8. Vendor: Project Vine
  9. Distribution: Vine Linux
  10. License: MIT
  11. URL: http://github.com/sass/sassc
  12. Source0: https://github.com/sass/sassc/archive/%{version}.tar.gz
  13. # Test suite spec. According to this comment from an upstream dev, we should
  14. # not use the release tags on the test spec:
  15. # https://github.com/sass/libsass/issues/2258#issuecomment-268196004
  16. # https://github.com/sass/sass-spec/archive/master.zip
  17. # https://github.com/sass/sass-spec/archive/v%%{testspec_version}.tar.gz
  18. Source1: https://github.com/sass/sass-spec/archive/libsass-%{testspec_version}.tar.gz
  19. # libsass is built as a shared library.
  20. Patch0: %{name}-3.5.0-build.patch
  21. BuildRequires: libsass-devel >= %{version}
  22. BuildRequires: gcc-c++
  23. %if %{with check}
  24. BuildRequires: ruby
  25. BuildRequires: rubygem-minitest
  26. BuildRequires: rubygem-hrx
  27. %endif
  28. %description
  29. SassC is a wrapper around libsass used to generate a useful command-line
  30. application that can be installed and packaged for several operating systems.
  31. %prep
  32. %setup -q -a 1
  33. mv sass-spec-libsass-%{testspec_version} sass-spec
  34. %patch0 -p1
  35. %build
  36. %make_build build-shared \
  37. LDFLAGS="$RPM_OPT_FLAGS" \
  38. CFLAGS="$RPM_OPT_FLAGS" \
  39. CXXFLAGS="$RPM_OPT_FLAGS"
  40. %install
  41. rm -rf $RPM_BUILD_ROOT
  42. install -p -m755 -D bin/sassc $RPM_BUILD_ROOT%{_bindir}/%{name}
  43. %if %{with check}
  44. %check
  45. ruby sass-spec/sass-spec.rb -V 3.6 -c bin/%{name} --impl libsass sass-spec/spec
  46. %endif
  47. %files
  48. %license LICENSE
  49. %doc Readme.md
  50. %{_bindir}/%{name}
  51. %changelog
  52. * Fri Aug 30 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 3.6.1-1
  53. - new upstream relaase.
  54. * Sun Dec 30 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 3.5.0-2
  55. - initial build for Vine Linux.
  56. - disabled tests.
  57. * Thu Jul 19 2018 Kevin Fenzi <kevin@scrye.com> - 3.5.0-1
  58. - Upgrade to 3.5.0, tests 3.5.4.
  59. - Fixes FTBFS.
  60. * Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.5-6
  61. - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
  62. * Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.5-5
  63. - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
  64. * Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.5-4
  65. - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
  66. * Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.5-3
  67. - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
  68. * Mon Jul 24 2017 Aurelien Bompard <abompard@fedoraproject.org> - 3.4.5-2
  69. - Require the same libsass version
  70. * Mon Jul 24 2017 Aurelien Bompard <abompard@fedoraproject.org> - 3.4.5-1
  71. - Version 3.4.5: https://github.com/sass/sassc/releases/tag/3.4.5
  72. * Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.1-2
  73. - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
  74. * Mon Dec 19 2016 Aurelien Bompard <abompard@fedoraproject.org> - 3.4.1-1
  75. - Version 3.4.1: https://github.com/sass/sassc/releases/tag/3.4.1
  76. * Mon Dec 12 2016 Aurelien Bompard <abompard@fedoraproject.org> - 3.4.0-1
  77. - Version 3.4.0: https://github.com/sass/sassc/releases/tag/3.4.0
  78. * Tue Aug 23 2016 Aurelien Bompard <abompard@fedoraproject.org> - 3.3.6-1
  79. - initial package