sassc/sassc.spec

62 lines
1.5 KiB
RPMSpec
Raw Normal View History

2020-01-13 16:19:40 +08:00
%define debug_package %{nil}
Name: sassc
2022-08-01 10:02:38 +08:00
Version: 3.6.2
Release: 1
2020-01-13 16:19:40 +08:00
Summary: Libsass command line driver
License: MIT
URL: https://github.com/sass/sassc
2022-08-01 10:02:38 +08:00
Source0: https://github.com/sass/sassc/archive/sassc-3.6.2.tar.gz
Source1: sass-spec-libsass-3.6.3.tar.gz
2020-01-13 16:19:40 +08:00
2022-08-01 10:02:38 +08:00
BuildRequires: libsass-devel libsass gcc-c++ autoconf automake libtool
2020-01-13 16:19:40 +08:00
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
2022-08-01 10:02:38 +08:00
%autosetup -a 1
mv sass-spec-libsass-3.6.3 sass-spec
autoreconf -fiv
2020-01-13 16:19:40 +08:00
%build
export CFLAGS="${RPM_OPT_FLAGS}"
2020-01-13 16:19:40 +08:00
sed -i.bak '
/^$(SASSC_EXE):/s/libsass//
/^build-shared:/s/$(LIB_SHARED)//
s|-L$(SASS_LIBSASS_PATH)/lib||g' Makefile
2022-08-01 10:02:38 +08:00
%configure
2020-01-13 16:19:40 +08:00
%make_build BUILD="shared"
%install
2022-08-01 10:02:38 +08:00
%make_install
2020-01-13 16:19:40 +08:00
%check
2022-08-01 10:02:38 +08:00
./%{name} -h
./%{name} -v
2020-01-13 16:19:40 +08:00
%files
%doc docs/* Readme.md
%license LICENSE
%{_bindir}/%{name}
%changelog
2022-08-01 10:02:38 +08:00
* Thu Jul 28 2022 fushanqing <fushanqing@kylinos.cn> - 3.6.2-1
- update sassc to 3.6.2
* 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
2022-06-16 17:31:30 +08:00
* Fri Jan 03 2020 catastrowings <jianghuhao1994@163.com> - 3.5.0-2
2020-01-13 16:19:40 +08:00
- openEuler init