import sources

This commit is contained in:
Adam Samalik 2023-05-08 11:18:55 +02:00
commit 2ea57cba95
4 changed files with 93 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
/3.4.1.tar.gz
/sass-spec-3.4.1.tar.gz

15
sassc-3.3.6-build.patch Normal file
View File

@ -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

74
sassc.spec Normal file
View File

@ -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

2
sources Normal file
View File

@ -0,0 +1,2 @@
SHA512 (3.4.1.tar.gz) = 56d9d10159a223819cc3e4c1a34f7314b9ff16118586cbe138faff345fe02d71d75655f77ded4198103f6dca1f93e168fee51ac59549100c96de8a555c301640
SHA512 (sass-spec-3.4.1.tar.gz) = db02d6207287f7273fe7a4de7e8c85a3da76dda4b8df7fb096345ee0860c30e5d96b02966ab1379e33308e74d2bd2342dc451775caa926784036d530086e9dba