You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
82 lines
2.7 KiB
82 lines
2.7 KiB
# This macro is needed at the start for building on EL6 |
|
%{?nodejs_find_provides_and_requires} |
|
|
|
%global barename window-size |
|
|
|
Name: nodejs-window-size |
|
Version: 0.1.0 |
|
Release: 11%{?dist} |
|
Summary: Get the height and width of the terminal in a node.js environment |
|
|
|
License: MIT |
|
URL: https://www.npmjs.org/package/window-size |
|
Source0: http://registry.npmjs.org/%{barename}/-/%{barename}-%{version}.tgz |
|
BuildArch: noarch |
|
%if 0%{?fedora} >= 19 |
|
ExclusiveArch: %{nodejs_arches} noarch |
|
%else |
|
ExclusiveArch: %{ix86} x86_64 %{arm} noarch |
|
%endif |
|
|
|
BuildRequires: nodejs-packaging >= 6 |
|
|
|
%description |
|
Reliable way to to get the height and width of the terminal/console in a |
|
node.js environment. |
|
|
|
%prep |
|
%setup -q -n package |
|
|
|
# Remove bundled node_modules if there are any.. |
|
rm -rf node_modules/ |
|
|
|
%nodejs_fixdep --caret |
|
|
|
%build |
|
%nodejs_symlink_deps --build |
|
|
|
%install |
|
mkdir -p %{buildroot}%{nodejs_sitelib}/window-size |
|
cp -pr package.json index.js \ |
|
%{buildroot}%{nodejs_sitelib}/window-size |
|
|
|
%nodejs_symlink_deps |
|
|
|
%files |
|
%license LICENSE-MIT |
|
%doc README.md |
|
%{nodejs_sitelib}/window-size/ |
|
|
|
%changelog |
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.0-11 |
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild |
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.0-10 |
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild |
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.0-9 |
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild |
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.0-8 |
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild |
|
|
|
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.0-7 |
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild |
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.0-6 |
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild |
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.0-5 |
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild |
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.0-4 |
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild |
|
|
|
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.0-3 |
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild |
|
|
|
* Mon Mar 09 2015 Ralph Bean <rbean@redhat.com> - 0.1.0-2 |
|
- Move LICENSE out into the %%license macro. |
|
|
|
* Fri Feb 20 2015 Ralph Bean <rbean@redhat.com> - 0.1.0-1 |
|
- Initial packaging for Fedora.
|
|
|