sassc/sassc.spec
starlet-dx 0298a55e81 Fix not striped problem
(cherry picked from commit 5cb395038f9ee84e089d1a5278ae64ede506feed)
2022-12-06 16:31:52 +08:00

56 lines
1.4 KiB
RPMSpec

Name: sassc
Version: 3.5.0
Release: 5
Summary: Libsass command line driver
License: MIT
URL: https://github.com/sass/sassc
Source0: https://github.com/sass/sassc/archive/3.5.0.tar.gz
BuildRequires: libsass-devel libsass gcc
Requires: libsass
%description
SassC is a wrapper around libsass (http://github.com/sass/libsass) used to generate a useful
command-line application that can be installed and packaged for several operating systems.
SassC currently statically links the libsass library, but might one day using dynamic linking
if libsass supports that in the future.
%prep
%autosetup -p1
%build
export CFLAGS="${RPM_OPT_FLAGS}"
sed -i.bak '
/^$(SASSC_EXE):/s/libsass//
/^build-shared:/s/$(LIB_SHARED)//
s|-L$(SASS_LIBSASS_PATH)/lib||g' Makefile
%make_build BUILD="shared"
%install
install -Dpm 0755 bin/%{name} %{buildroot}%{_bindir}/%{name}
rm -rf docs/**/*windows*
%check
./bin/%{name} -h
./bin/%{name} -v
%files
%doc docs/* Readme.md
%license LICENSE
%{_bindir}/%{name}
%changelog
* Tue Dec 06 2022 yaoxin <yaoxin30@h-partners.com> - 3.5.0-5
- Fix not striped problem
* Wed Sep 08 2021 sunguoshuai <sunguoshuai@huawei.com> - 3.5.0-4
- Fix binary /usr/bin/sassc not striped problem.
* Mon May 31 2021 huanghaitao <huanghaitao8@huawei.com> - 3.5.0-3
- Completing build dependencies to fix gcc compiler missing error
* Fri Jan 03 2020 catastrowings <jianghuhao1994@163.com> - 3.5.0-2
- openEuler init