Package init
This commit is contained in:
parent
127d7c8d85
commit
0c7bf05394
BIN
clean-css-3.4.6.tgz
Normal file
BIN
clean-css-3.4.6.tgz
Normal file
Binary file not shown.
53
nodejs-clean-css.spec
Normal file
53
nodejs-clean-css.spec
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
%{?nodejs_find_provides_and_requires}
|
||||||
|
%global enable_tests 0
|
||||||
|
%global barename clean-css
|
||||||
|
Name: nodejs-clean-css
|
||||||
|
Version: 3.4.6
|
||||||
|
Release: 1
|
||||||
|
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
|
||||||
|
cp -pr package.json lib bin/ index.js \
|
||||||
|
%{buildroot}%{nodejs_sitelib}/clean-css
|
||||||
|
mkdir -p %{buildroot}%{_bindir}
|
||||||
|
ln -s %{nodejs_sitelib}/%{barename}/bin/cleancss %{buildroot}%{_bindir}/
|
||||||
|
%nodejs_symlink_deps
|
||||||
|
|
||||||
|
%check
|
||||||
|
%if 0%{?enable_tests}
|
||||||
|
%nodejs_symlink_deps --check
|
||||||
|
vows
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc README.md History.md
|
||||||
|
%license LICENSE
|
||||||
|
%{_bindir}/cleancss
|
||||||
|
%{nodejs_sitelib}/clean-css/
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Tue Aug 18 2020 leiju <leiju4@huawei.com> - 3.4.6-1
|
||||||
|
- Package init
|
||||||
4
nodejs-clean-css.yaml
Normal file
4
nodejs-clean-css.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: github
|
||||||
|
src_repo: jakubpawlowicz/clean-css
|
||||||
|
tag_prefix: "^v"
|
||||||
|
seperator: "."
|
||||||
Loading…
x
Reference in New Issue
Block a user