Blame SPECS/nodejs-mime-db.spec

f99776
%{?scl:%scl_package nodejs-mime-db}
f99776
%{!?scl:%global pkg_name %{name}}
f99776
f99776
%{?nodejs_find_provides_and_requires}
f99776
f99776
%global packagename mime-db
f99776
%global enable_tests 0
f99776
f99776
Name:		%{?scl_prefix}nodejs-mime-db
f99776
Version:        1.25.0
cf2179
Release:        2%{?dist}
f99776
Summary:	This is a database of all mime types
f99776
f99776
License:	MIT
f99776
URL:		https://github.com/jshttp/mime-db
f99776
Source0:	https://github.com/jshttp/mime-db/archive/v%{version}.tar.gz
f99776
f99776
ExclusiveArch:	%{nodejs_arches} noarch
f99776
BuildArch:	noarch
f99776
f99776
BuildRequires:	%{?scl_prefix}nodejs-devel
f99776
%if 0%{?enable_tests}
f99776
BuildRequires:	%{?scl_prefix}mocha
f99776
%endif
f99776
f99776
Requires:	%{?scl_prefix}nodejs
f99776
f99776
%description
f99776
This is a database of all mime types. It consists of a single, public JSON
f99776
file and does not include any logic, allowing it to remain as un-opinionated
f99776
as possible with an API. It aggregates data from the following sources:
f99776
f99776
 * http://www.iana.org/assignments/media-types/media-types.xhtml
f99776
 * http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types
f99776
 * http://hg.nginx.org/nginx/raw-file/default/conf/mime.types
f99776
f99776
%prep
f99776
%setup -q -n %{packagename}-%{version}
f99776
f99776
%build
f99776
# nothing to do!
f99776
f99776
%install
f99776
mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
f99776
cp -pr package.json *.js db.json src/ scripts/ \
f99776
	%{buildroot}%{nodejs_sitelib}/%{packagename}
f99776
f99776
%nodejs_symlink_deps
f99776
f99776
%check
f99776
%nodejs_symlink_deps --check
f99776
#%{__nodejs} -e 'require("./")'
f99776
%if 0%{?enable_tests}
f99776
/usr/bin/mocha -R spec
f99776
%endif
f99776
f99776
%files
f99776
%{!?_licensedir:%global license %doc}
f99776
%doc README.md HISTORY.md
f99776
%license LICENSE
f99776
%{nodejs_sitelib}/%{packagename}
f99776
f99776
%changelog
cf2179
* Mon May 28 2018 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.25.0-2
cf2179
- Resolves: RHBZ#1543198, rebuild for multiarch
cf2179
f99776
* Thu Jan 05 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.25.0-1
f99776
- Updated with script
f99776
f99776
* Wed Sep 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.22.0-2
f99776
- Built for RHSCL
f99776
f99776
* Tue Feb 16 2016 Jared Smith <jsmith@fedoraproject.org> - 1.22.0-1
f99776
- Update to upstream 1.22.0 release
f99776
f99776
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.21.0-2
f99776
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
f99776
f99776
* Sat Jan 09 2016 Jared Smith <jsmith@fedoraproject.org> - 1.21.0-1
f99776
- Update to upstream 1.21.0 release
f99776
f99776
* Fri Nov 13 2015 Jared Smith <jsmith@fedoraproject.org> - 1.20.0-1
f99776
- Update to upstream 1.20.0 release
f99776
f99776
* Thu Oct 22 2015 Jared Smith <jsmith@fedoraproject.org> - 1.19.0-2
f99776
- Fix %license macro for EPEL6
f99776
f99776
* Wed Oct  7 2015 Jared Smith <jsmith@fedoraproject.org> - 1.19.0-1
f99776
- Initial packaging