|
Jared K. Smith |
b7be0b9 |
%{?nodejs_find_provides_and_requires}
|
|
Jared K. Smith |
b7be0b9 |
|
|
Jared K. Smith |
b7be0b9 |
%global packagename mime-db
|
|
Jared K. Smith |
b7be0b9 |
%global enable_tests 1
|
|
Jared K. Smith |
b7be0b9 |
|
|
Jared K. Smith |
b7be0b9 |
Name: nodejs-mime-db
|
|
Jared K. Smith |
cb30192 |
Version: 1.26.0
|
|
|
ec17875 |
Release: 4%{?dist}
|
|
Jared K. Smith |
b7be0b9 |
Summary: This is a database of all mime types
|
|
Jared K. Smith |
b7be0b9 |
|
|
Jared K. Smith |
b7be0b9 |
License: MIT
|
|
Jared K. Smith |
b7be0b9 |
URL: https://github.com/jshttp/mime-db
|
|
Jared K. Smith |
aa9bd1a |
Source0: https://github.com/jshttp/mime-db/archive/v%{version}.tar.gz
|
|
Jared K. Smith |
b7be0b9 |
|
|
Jared K. Smith |
b7be0b9 |
ExclusiveArch: %{nodejs_arches} noarch
|
|
Jared K. Smith |
b7be0b9 |
BuildArch: noarch
|
|
Jared K. Smith |
b7be0b9 |
|
|
Jared K. Smith |
b7be0b9 |
BuildRequires: nodejs-packaging
|
|
Jared K. Smith |
b7be0b9 |
%if 0%{?enable_tests}
|
|
Jared K. Smith |
b7be0b9 |
BuildRequires: mocha
|
|
Jared K. Smith |
b7be0b9 |
%endif
|
|
Jared K. Smith |
b7be0b9 |
|
|
Jared K. Smith |
b7be0b9 |
Requires: nodejs
|
|
Jared K. Smith |
b7be0b9 |
|
|
Jared K. Smith |
b7be0b9 |
%description
|
|
Jared K. Smith |
b7be0b9 |
This is a database of all mime types. It consists of a single, public JSON
|
|
Jared K. Smith |
b7be0b9 |
file and does not include any logic, allowing it to remain as un-opinionated
|
|
Jared K. Smith |
b7be0b9 |
as possible with an API. It aggregates data from the following sources:
|
|
Jared K. Smith |
b7be0b9 |
|
|
Jared K. Smith |
b7be0b9 |
* http://www.iana.org/assignments/media-types/media-types.xhtml
|
|
Jared K. Smith |
b7be0b9 |
* http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types
|
|
Jared K. Smith |
b7be0b9 |
* http://hg.nginx.org/nginx/raw-file/default/conf/mime.types
|
|
Jared K. Smith |
b7be0b9 |
|
|
Jared K. Smith |
b7be0b9 |
|
|
Jared K. Smith |
b7be0b9 |
%prep
|
|
Jared K. Smith |
b7be0b9 |
%setup -q -n %{packagename}-%{version}
|
|
Jared K. Smith |
b7be0b9 |
|
|
Jared K. Smith |
b7be0b9 |
|
|
Jared K. Smith |
b7be0b9 |
%build
|
|
Jared K. Smith |
b7be0b9 |
# nothing to do!
|
|
Jared K. Smith |
b7be0b9 |
|
|
Jared K. Smith |
b7be0b9 |
%install
|
|
Jared K. Smith |
b7be0b9 |
mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
|
|
Jared K. Smith |
b7be0b9 |
cp -pr package.json *.js db.json src/ scripts/ \
|
|
Jared K. Smith |
b7be0b9 |
%{buildroot}%{nodejs_sitelib}/%{packagename}
|
|
Jared K. Smith |
b7be0b9 |
|
|
Jared K. Smith |
b7be0b9 |
%nodejs_symlink_deps
|
|
Jared K. Smith |
b7be0b9 |
|
|
Jared K. Smith |
b7be0b9 |
%check
|
|
Jared K. Smith |
b7be0b9 |
%nodejs_symlink_deps --check
|
|
Jared K. Smith |
7db39f0 |
%{__nodejs} -e 'require("./")'
|
|
Jared K. Smith |
7db39f0 |
%if 0%{?enable_tests}
|
|
Jared K. Smith |
b7be0b9 |
/usr/bin/mocha -R spec
|
|
Jared K. Smith |
b7be0b9 |
%endif
|
|
Jared K. Smith |
b7be0b9 |
|
|
Jared K. Smith |
b7be0b9 |
|
|
Jared K. Smith |
b7be0b9 |
%files
|
|
Jared K. Smith |
8c07399 |
%{!?_licensedir:%global license %doc}
|
|
Jared K. Smith |
b7be0b9 |
%doc README.md HISTORY.md
|
|
Jared K. Smith |
b7be0b9 |
%license LICENSE
|
|
Jared K. Smith |
b7be0b9 |
%{nodejs_sitelib}/%{packagename}
|
|
Jared K. Smith |
b7be0b9 |
|
|
Jared K. Smith |
b7be0b9 |
|
|
Jared K. Smith |
b7be0b9 |
%changelog
|
|
|
ec17875 |
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.26.0-4
|
|
|
ec17875 |
- Escape macros in %%changelog
|
|
|
ec17875 |
|
|
|
c665170 |
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.26.0-3
|
|
|
c665170 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
c665170 |
|
|
|
4b13725 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.26.0-2
|
|
|
4b13725 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
4b13725 |
|
|
Jared K. Smith |
cb30192 |
* Wed Feb 15 2017 Jared Smith <jsmith@fedoraproject.org> - 1.26.0-1
|
|
Jared K. Smith |
cb30192 |
- Update to upstream 1.26.0 release
|
|
Jared K. Smith |
cb30192 |
|
|
|
f986def |
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.22.0-2
|
|
|
f986def |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
f986def |
|
|
Jared K. Smith |
13eda1a |
* Tue Feb 16 2016 Jared Smith <jsmith@fedoraproject.org> - 1.22.0-1
|
|
Jared K. Smith |
13eda1a |
- Update to upstream 1.22.0 release
|
|
Jared K. Smith |
13eda1a |
|
|
|
ae9da6e |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.21.0-2
|
|
|
ae9da6e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
ae9da6e |
|
|
Jared K. Smith |
7db39f0 |
* Sat Jan 09 2016 Jared Smith <jsmith@fedoraproject.org> - 1.21.0-1
|
|
Jared K. Smith |
7db39f0 |
- Update to upstream 1.21.0 release
|
|
Jared K. Smith |
7db39f0 |
|
|
Jared K. Smith |
aa9bd1a |
* Fri Nov 13 2015 Jared Smith <jsmith@fedoraproject.org> - 1.20.0-1
|
|
Jared K. Smith |
aa9bd1a |
- Update to upstream 1.20.0 release
|
|
Jared K. Smith |
aa9bd1a |
|
|
Jared K. Smith |
8c07399 |
* Thu Oct 22 2015 Jared Smith <jsmith@fedoraproject.org> - 1.19.0-2
|
|
|
ec17875 |
- Fix %%license macro for EPEL6
|
|
Jared K. Smith |
8c07399 |
|
|
Jared K. Smith |
b7be0b9 |
* Wed Oct 7 2015 Jared Smith <jsmith@fedoraproject.org> - 1.19.0-1
|
|
Jared K. Smith |
b7be0b9 |
- Initial packaging
|