diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b2bc47b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/v1.25.0.tar.gz diff --git a/.rh-nodejs6-nodejs-mime-db.metadata b/.rh-nodejs6-nodejs-mime-db.metadata new file mode 100644 index 0000000..ada1d2e --- /dev/null +++ b/.rh-nodejs6-nodejs-mime-db.metadata @@ -0,0 +1 @@ +39139b9cf7ea6ef0817c78c894305f9cfdc211a5 SOURCES/v1.25.0.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SPECS/nodejs-mime-db.spec b/SPECS/nodejs-mime-db.spec new file mode 100644 index 0000000..5e05220 --- /dev/null +++ b/SPECS/nodejs-mime-db.spec @@ -0,0 +1,86 @@ +%{?scl:%scl_package nodejs-mime-db} +%{!?scl:%global pkg_name %{name}} + +%{?nodejs_find_provides_and_requires} + +%global packagename mime-db +%global enable_tests 0 + +Name: %{?scl_prefix}nodejs-mime-db +Version: 1.25.0 +Release: 1%{?dist} +Summary: This is a database of all mime types + +License: MIT +URL: https://github.com/jshttp/mime-db +Source0: https://github.com/jshttp/mime-db/archive/v%{version}.tar.gz + +ExclusiveArch: %{nodejs_arches} noarch +BuildArch: noarch + +BuildRequires: %{?scl_prefix}nodejs-devel +%if 0%{?enable_tests} +BuildRequires: %{?scl_prefix}mocha +%endif + +Requires: %{?scl_prefix}nodejs + +%description +This is a database of all mime types. It consists of a single, public JSON +file and does not include any logic, allowing it to remain as un-opinionated +as possible with an API. It aggregates data from the following sources: + + * http://www.iana.org/assignments/media-types/media-types.xhtml + * http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types + * http://hg.nginx.org/nginx/raw-file/default/conf/mime.types + +%prep +%setup -q -n %{packagename}-%{version} + +%build +# nothing to do! + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename} +cp -pr package.json *.js db.json src/ scripts/ \ + %{buildroot}%{nodejs_sitelib}/%{packagename} + +%nodejs_symlink_deps + +%check +%nodejs_symlink_deps --check +#%{__nodejs} -e 'require("./")' +%if 0%{?enable_tests} +/usr/bin/mocha -R spec +%endif + +%files +%{!?_licensedir:%global license %doc} +%doc README.md HISTORY.md +%license LICENSE +%{nodejs_sitelib}/%{packagename} + +%changelog +* Thu Jan 05 2017 Zuzana Svetlikova - 1.25.0-1 +- Updated with script + +* Wed Sep 14 2016 Zuzana Svetlikova - 1.22.0-2 +- Built for RHSCL + +* Tue Feb 16 2016 Jared Smith - 1.22.0-1 +- Update to upstream 1.22.0 release + +* Thu Feb 04 2016 Fedora Release Engineering - 1.21.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Sat Jan 09 2016 Jared Smith - 1.21.0-1 +- Update to upstream 1.21.0 release + +* Fri Nov 13 2015 Jared Smith - 1.20.0-1 +- Update to upstream 1.20.0 release + +* Thu Oct 22 2015 Jared Smith - 1.19.0-2 +- Fix %license macro for EPEL6 + +* Wed Oct 7 2015 Jared Smith - 1.19.0-1 +- Initial packaging