import sassc-3.4.1-2.el8
This commit is contained in:
commit
93c789f364
|
@ -0,0 +1,2 @@
|
||||||
|
SOURCES/3.4.1.tar.gz
|
||||||
|
SOURCES/sass-spec-3.4.1.tar.gz
|
|
@ -0,0 +1,2 @@
|
||||||
|
97020dcf5d0a8f2cad8c6e8672c4a837c8fd9a05 SOURCES/3.4.1.tar.gz
|
||||||
|
bb2770c5c85ca5bb7b4e6ad191d4c11187e6d841 SOURCES/sass-spec-3.4.1.tar.gz
|
|
@ -0,0 +1,15 @@
|
||||||
|
diff -up ./Makefile.orig ./Makefile
|
||||||
|
--- ./Makefile.orig 2016-04-23 11:23:54.000000000 +0200
|
||||||
|
+++ ./Makefile 2016-08-23 17:04:39.406832259 +0200
|
||||||
|
@@ -196,9 +196,8 @@ install: $(DESTDIR)$(PREFIX)/$(SASSC_EXE
|
||||||
|
build-static: $(RESOURCES) $(OBJECTS) $(LIB_STATIC)
|
||||||
|
$(CC) $(LDFLAGS) -o $(SASSC_EXE) $^ $(LDLIBS)
|
||||||
|
|
||||||
|
-build-shared: $(RESOURCES) $(OBJECTS) $(LIB_SHARED)
|
||||||
|
- $(CC) $(LDFLAGS) -o $(SASSC_EXE) $^ $(LDLIBS)
|
||||||
|
- $(CP) $(LIB_SHARED) bin/.
|
||||||
|
+build-shared: $(RESOURCES) $(OBJECTS)
|
||||||
|
+ $(CC) $(LDFLAGS) -o $(SASSC_EXE) $^ $(LDLIBS) -lsass
|
||||||
|
|
||||||
|
$(LIB_STATIC): libsass-static
|
||||||
|
$(LIB_SHARED): libsass-shared
|
|
@ -0,0 +1,74 @@
|
||||||
|
%global testspec_version 3.4.1
|
||||||
|
|
||||||
|
Name: sassc
|
||||||
|
Version: 3.4.1
|
||||||
|
Release: 2%{?dist}
|
||||||
|
Summary: Wrapper around libsass to compile CSS stylesheet
|
||||||
|
|
||||||
|
License: MIT
|
||||||
|
URL: http://github.com/sass/sassc
|
||||||
|
Source0: https://github.com/sass/sassc/archive/%{version}.tar.gz
|
||||||
|
# Test suite spec. According to this comment from an upstream dev, we should
|
||||||
|
# not use the release tags on the test spec:
|
||||||
|
# https://github.com/sass/libsass/issues/2258#issuecomment-268196004
|
||||||
|
# https://github.com/sass/sass-spec/archive/master.zip
|
||||||
|
# https://github.com/sass/sass-spec/archive/v%{testspec_version}.tar.gz
|
||||||
|
Source1: sass-spec-%{testspec_version}.tar.gz
|
||||||
|
|
||||||
|
# libsass is built as a shared library.
|
||||||
|
Patch0: %{name}-3.3.6-build.patch
|
||||||
|
|
||||||
|
BuildRequires: libsass-devel >= 3.4.0
|
||||||
|
# For the test suite
|
||||||
|
BuildRequires: ruby
|
||||||
|
%if 0%{?epel} && 0%{?epel} <= 7
|
||||||
|
BuildRequires: rubygem-minitest5
|
||||||
|
%else
|
||||||
|
BuildRequires: rubygem-minitest
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%description
|
||||||
|
SassC is a wrapper around libsass used to generate a useful command-line
|
||||||
|
application that can be installed and packaged for several operating systems.
|
||||||
|
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -a 1
|
||||||
|
mv sass-spec-%{testspec_version} sass-spec
|
||||||
|
%patch0 -p0 -b .build
|
||||||
|
|
||||||
|
|
||||||
|
%build
|
||||||
|
%make_build build-shared \
|
||||||
|
LDFLAGS="$RPM_OPT_FLAGS" \
|
||||||
|
CFLAGS="$RPM_OPT_FLAGS" \
|
||||||
|
CXXFLAGS="$RPM_OPT_FLAGS"
|
||||||
|
|
||||||
|
|
||||||
|
%install
|
||||||
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
install -p -m755 -D bin/sassc $RPM_BUILD_ROOT%{_bindir}/%{name}
|
||||||
|
|
||||||
|
|
||||||
|
%check
|
||||||
|
ruby sass-spec/sass-spec.rb -V 3.4 -c bin/%{name} --impl libsass sass-spec/spec
|
||||||
|
|
||||||
|
|
||||||
|
%files
|
||||||
|
%license LICENSE
|
||||||
|
%doc Readme.md
|
||||||
|
%{_bindir}/%{name}
|
||||||
|
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.1-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Dec 19 2016 Aurelien Bompard <abompard@fedoraproject.org> - 3.4.1-1
|
||||||
|
- Version 3.4.1: https://github.com/sass/sassc/releases/tag/3.4.1
|
||||||
|
|
||||||
|
* Mon Dec 12 2016 Aurelien Bompard <abompard@fedoraproject.org> - 3.4.0-1
|
||||||
|
- Version 3.4.0: https://github.com/sass/sassc/releases/tag/3.4.0
|
||||||
|
|
||||||
|
* Tue Aug 23 2016 Aurelien Bompard <abompard@fedoraproject.org> - 3.3.6-1
|
||||||
|
- initial package
|
Loading…
Reference in New Issue