2020-08-20 20:37:31 +08:00
|
|
|
%{?nodejs_find_provides_and_requires}
|
|
|
|
|
%global enable_tests 0
|
|
|
|
|
%global barename clean-css
|
|
|
|
|
Name: nodejs-clean-css
|
2023-10-30 10:59:11 +08:00
|
|
|
Version: 5.3.2
|
|
|
|
|
Release: 1
|
2020-08-20 20:37:31 +08:00
|
|
|
Summary: A well-tested CSS minifier
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: https://www.npmjs.org/package/clean-css
|
|
|
|
|
Source0: http://registry.npmjs.org/clean-css/-/clean-css-%{version}.tgz
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
ExclusiveArch: %{nodejs_arches} noarch
|
|
|
|
|
BuildRequires: nodejs-packaging >= 6
|
|
|
|
|
%if 0%{?enable_tests}
|
|
|
|
|
BuildRequires: npm(browserify) npm(http-proxy) npm(nock) npm(jshint) npm(server-destroy)
|
|
|
|
|
BuildRequires: npm(uglify-js) npm(vows)
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Clean-css is a fast and efficient [Node.js](http://nodejs.org/) library for
|
|
|
|
|
minifying CSS files.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n package
|
|
|
|
|
rm -rf node_modules/
|
|
|
|
|
%nodejs_fixdep commander
|
|
|
|
|
%nodejs_fixdep source-map "^0.5.2"
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
mkdir -p %{buildroot}%{nodejs_sitelib}/clean-css
|
2023-02-07 10:25:52 +08:00
|
|
|
cp -pr package.json lib index.js \
|
2020-08-20 20:37:31 +08:00
|
|
|
%{buildroot}%{nodejs_sitelib}/clean-css
|
|
|
|
|
%nodejs_symlink_deps
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%if 0%{?enable_tests}
|
|
|
|
|
%nodejs_symlink_deps --check
|
|
|
|
|
vows
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%doc README.md History.md
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%{nodejs_sitelib}/clean-css/
|
|
|
|
|
|
|
|
|
|
%changelog
|
2023-10-30 10:59:11 +08:00
|
|
|
* Mon Oct 30 2023 wulei <wu_lei@hoperun.com> - 5.3.2-1
|
|
|
|
|
- Update to 5.3.2
|
|
|
|
|
|
2023-08-29 16:00:32 +08:00
|
|
|
* Tue Aug 29 2023 xu_ping <707078654@qq.com> - 5.3.1-2
|
|
|
|
|
- Remove unuse code
|
|
|
|
|
|
2023-02-03 16:04:24 +08:00
|
|
|
* Sat Jan 7 2023 wenchaofan <349464272@qq.com> - 5.3.1-1
|
2023-02-07 10:25:52 +08:00
|
|
|
- Upgrade 5.3.1
|
2023-08-29 16:00:32 +08:00
|
|
|
|
2020-08-20 20:37:31 +08:00
|
|
|
* Tue Aug 18 2020 leiju <leiju4@huawei.com> - 3.4.6-1
|
|
|
|
|
- Package init
|