fuanan add package
This commit is contained in:
parent
1848fa1866
commit
33c3706e30
BIN
escape-string-regexp-1.0.5.tgz
Normal file
BIN
escape-string-regexp-1.0.5.tgz
Normal file
Binary file not shown.
50
nodejs-escape-string-regexp.spec
Normal file
50
nodejs-escape-string-regexp.spec
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
%{?nodejs_find_provides_and_requires}
|
||||||
|
%global packagename escape-string-regexp
|
||||||
|
%global enable_tests 0
|
||||||
|
Name: nodejs-escape-string-regexp
|
||||||
|
Version: 1.0.5
|
||||||
|
Release: 1
|
||||||
|
Summary: Escape RegExp special characters
|
||||||
|
License: MIT
|
||||||
|
URL: https://github.com/sindresorhus/escape-string-regexp
|
||||||
|
Source0: https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz
|
||||||
|
Source1: https://raw.githubusercontent.com/sindresorhus/escape-string-regexp/v%{version}/test.js
|
||||||
|
ExclusiveArch: %{nodejs_arches} noarch
|
||||||
|
BuildArch: noarch
|
||||||
|
BuildRequires: nodejs-packaging
|
||||||
|
%if 0%{?enable_tests}
|
||||||
|
BuildRequires: npm(ava)
|
||||||
|
%endif
|
||||||
|
%description
|
||||||
|
Escape RegExp special characters
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n package
|
||||||
|
cp -p %{SOURCE1} .
|
||||||
|
|
||||||
|
%build
|
||||||
|
|
||||||
|
%install
|
||||||
|
mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
|
||||||
|
cp -pr package.json index.js \
|
||||||
|
%{buildroot}%{nodejs_sitelib}/%{packagename}
|
||||||
|
%nodejs_symlink_deps
|
||||||
|
|
||||||
|
%check
|
||||||
|
%nodejs_symlink_deps --check
|
||||||
|
%{__nodejs} -e 'require("./")'
|
||||||
|
%if 0%{?enable_tests}
|
||||||
|
%{_bindir}/ava
|
||||||
|
%else
|
||||||
|
%{_bindir}/echo -e "\e[101m -=#=- Tests disabled -=#=- \e[0m"
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%files
|
||||||
|
%{!?_licensedir:%global license %doc}
|
||||||
|
%doc *.md
|
||||||
|
%license license
|
||||||
|
%{nodejs_sitelib}/%{packagename}
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Thu Aug 20 2020 Anan Fu <fuanan3@huawei.com> - 1.0.5-1
|
||||||
|
- package init
|
||||||
92
nodejs-escape-string-regexp.spec.old
Normal file
92
nodejs-escape-string-regexp.spec.old
Normal file
@ -0,0 +1,92 @@
|
|||||||
|
%{?nodejs_find_provides_and_requires}
|
||||||
|
|
||||||
|
%global packagename escape-string-regexp
|
||||||
|
%global enable_tests 0
|
||||||
|
# tests are now disabled due to the fact that npm(ava) is not packaged in Fedora
|
||||||
|
|
||||||
|
Name: nodejs-escape-string-regexp
|
||||||
|
Version: 1.0.5
|
||||||
|
Release: 6%{?dist}
|
||||||
|
Summary: Escape RegExp special characters
|
||||||
|
|
||||||
|
License: MIT
|
||||||
|
URL: https://github.com/sindresorhus/escape-string-regexp
|
||||||
|
Source0: https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz
|
||||||
|
Source1: https://raw.githubusercontent.com/sindresorhus/escape-string-regexp/v%{version}/test.js
|
||||||
|
|
||||||
|
ExclusiveArch: %{nodejs_arches} noarch
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
BuildRequires: nodejs-packaging
|
||||||
|
%if 0%{?enable_tests}
|
||||||
|
BuildRequires: npm(ava)
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%description
|
||||||
|
Escape RegExp special characters
|
||||||
|
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n package
|
||||||
|
cp -p %{SOURCE1} .
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
%build
|
||||||
|
# nothing to do!
|
||||||
|
|
||||||
|
%install
|
||||||
|
mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
|
||||||
|
cp -pr package.json index.js \
|
||||||
|
%{buildroot}%{nodejs_sitelib}/%{packagename}
|
||||||
|
|
||||||
|
%nodejs_symlink_deps
|
||||||
|
|
||||||
|
%check
|
||||||
|
%nodejs_symlink_deps --check
|
||||||
|
%{__nodejs} -e 'require("./")'
|
||||||
|
%if 0%{?enable_tests}
|
||||||
|
%{_bindir}/ava
|
||||||
|
%else
|
||||||
|
%{_bindir}/echo -e "\e[101m -=#=- Tests disabled -=#=- \e[0m"
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
|
%files
|
||||||
|
%{!?_licensedir:%global license %doc}
|
||||||
|
%doc *.md
|
||||||
|
%license license
|
||||||
|
%{nodejs_sitelib}/%{packagename}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.5-6
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.5-5
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.5-4
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.5-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.5-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Feb 22 2016 Jared Smith <jsmith@fedoraproject.org> - 1.0.5-1
|
||||||
|
- Update to upstream 1.0.5 release
|
||||||
|
|
||||||
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Dec 21 2015 Jared Smith <jsmith@fedoraproject.org> - 1.0.4-1
|
||||||
|
- Update to upstream 1.0.4 release
|
||||||
|
|
||||||
|
* Tue Dec 15 2015 Jared Smith <jsmith@fedoraproject.org> - 1.0.3-2
|
||||||
|
- Add tests
|
||||||
|
|
||||||
|
* Wed Oct 21 2015 Jared Smith <jsmith@fedoraproject.org> - 1.0.3-1
|
||||||
|
- Initial packaging
|
||||||
4
nodejs-escape-string-regexp.yaml
Normal file
4
nodejs-escape-string-regexp.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: github
|
||||||
|
src_repo: sindresorhus/escape-string-regexp
|
||||||
|
tag_prefix: "^"
|
||||||
|
seperator: "."
|
||||||
Loading…
x
Reference in New Issue
Block a user