commit
67b7edea77
BIN
nodejs-css-parse-1.7.0.tar.gz
Normal file
BIN
nodejs-css-parse-1.7.0.tar.gz
Normal file
Binary file not shown.
44
nodejs-css-parse.spec
Normal file
44
nodejs-css-parse.spec
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
%{?nodejs_find_provides_and_requires}
|
||||||
|
%global commit 212d7d4b5f049e31d30907ee73ac767329db92e1
|
||||||
|
%global enable_tests 1
|
||||||
|
Name: nodejs-css-parse
|
||||||
|
Version: 1.7.0
|
||||||
|
Release: 1
|
||||||
|
Summary: A JavaScript CSS parser for Node.js and the browser
|
||||||
|
License: MIT
|
||||||
|
URL: https://github.com/reworkcss/css-parse
|
||||||
|
Source0: https://github.com/reworkcss/css-parse/archive/212d7d4b5f049e31d30907ee73ac767329db92e1/nodejs-css-parse-%{version}.tar.gz
|
||||||
|
BuildArch: noarch
|
||||||
|
ExclusiveArch: %{nodejs_arches} noarch
|
||||||
|
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
|
||||||
|
BuildRequires: nodejs-packaging
|
||||||
|
%if 0%{?enable_tests}
|
||||||
|
BuildRequires: npm(mocha) npm(should)
|
||||||
|
%endif
|
||||||
|
%description
|
||||||
|
%{summary}.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n css-parse-%{commit}
|
||||||
|
|
||||||
|
%build
|
||||||
|
|
||||||
|
%install
|
||||||
|
mkdir -p %{buildroot}%{nodejs_sitelib}/css-parse
|
||||||
|
cp -pr package.json index.js \
|
||||||
|
%{buildroot}%{nodejs_sitelib}/css-parse
|
||||||
|
%nodejs_symlink_deps
|
||||||
|
%if 0%{?enable_tests}
|
||||||
|
|
||||||
|
%check
|
||||||
|
%nodejs_symlink_deps --check
|
||||||
|
/usr/bin/mocha --require should --reporter spec --bail
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc examples/ History.md LICENSE Readme.md
|
||||||
|
%{nodejs_sitelib}/css-parse
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Mon Aug 17 2020 Anan Fu <fuanan3@huawei.com> - 1.7.0-1
|
||||||
|
- package init
|
||||||
92
nodejs-css-parse.spec.old
Normal file
92
nodejs-css-parse.spec.old
Normal file
@ -0,0 +1,92 @@
|
|||||||
|
%{?nodejs_find_provides_and_requires}
|
||||||
|
|
||||||
|
%global commit 212d7d4b5f049e31d30907ee73ac767329db92e1
|
||||||
|
|
||||||
|
%global enable_tests 1
|
||||||
|
|
||||||
|
Name: nodejs-css-parse
|
||||||
|
Version: 1.7.0
|
||||||
|
Release: 10%{?dist}
|
||||||
|
Summary: A JavaScript CSS parser for Node.js and the browser
|
||||||
|
License: MIT
|
||||||
|
URL: https://github.com/reworkcss/css-parse
|
||||||
|
# Use GitHub as the NPM tarball is missing test/, examples/, History.md.
|
||||||
|
Source0: https://github.com/reworkcss/css-parse/archive/%{commit}/%{name}-%{version}.tar.gz
|
||||||
|
|
||||||
|
BuildArch: noarch
|
||||||
|
%if 0%{?fedora} >= 19
|
||||||
|
ExclusiveArch: %{nodejs_arches} noarch
|
||||||
|
%else
|
||||||
|
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
|
||||||
|
%endif
|
||||||
|
|
||||||
|
BuildRequires: nodejs-packaging
|
||||||
|
|
||||||
|
%if 0%{?enable_tests}
|
||||||
|
BuildRequires: npm(mocha)
|
||||||
|
BuildRequires: npm(should)
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%description
|
||||||
|
%{summary}.
|
||||||
|
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n css-parse-%{commit}
|
||||||
|
|
||||||
|
|
||||||
|
%build
|
||||||
|
#nothing to do
|
||||||
|
|
||||||
|
|
||||||
|
%install
|
||||||
|
mkdir -p %{buildroot}%{nodejs_sitelib}/css-parse
|
||||||
|
cp -pr package.json index.js \
|
||||||
|
%{buildroot}%{nodejs_sitelib}/css-parse
|
||||||
|
|
||||||
|
%nodejs_symlink_deps
|
||||||
|
|
||||||
|
|
||||||
|
%if 0%{?enable_tests}
|
||||||
|
%check
|
||||||
|
%nodejs_symlink_deps --check
|
||||||
|
/usr/bin/mocha --require should --reporter spec --bail
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc examples/ History.md LICENSE Readme.md
|
||||||
|
%{nodejs_sitelib}/css-parse
|
||||||
|
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.0-10
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.0-9
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.0-8
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.0-7
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.0-6
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.0-5
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.0-4
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.0-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sun Feb 23 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 1.7.0-2
|
||||||
|
- update URL tag
|
||||||
|
|
||||||
|
* Sun Feb 23 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 1.7.0-1
|
||||||
|
- initial package
|
||||||
|
|
||||||
4
nodejs-css-parse.yaml
Normal file
4
nodejs-css-parse.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: github
|
||||||
|
src_repo: reworkcss/css-parse
|
||||||
|
tag_prefix: "^"
|
||||||
|
seperator: "."
|
||||||
Loading…
x
Reference in New Issue
Block a user