From aa9dcff2ff1467670358d1c3a04f189bb3deb294 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Jun 09 2014 08:33:50 +0000 Subject: import nodejs010-nodejs-opener-1.3.0-8.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..361a509 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/opener-1.3.0.tgz diff --git a/.nodejs010-nodejs-opener.metadata b/.nodejs010-nodejs-opener.metadata new file mode 100644 index 0000000..83fd6d4 --- /dev/null +++ b/.nodejs010-nodejs-opener.metadata @@ -0,0 +1 @@ +130ba662213fa842edb4cd0361d31a15301a43e2 SOURCES/opener-1.3.0.tgz diff --git a/README.md b/README.md deleted file mode 100644 index ce46a88..0000000 --- a/README.md +++ /dev/null @@ -1,5 +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-opener.spec b/SPECS/nodejs-opener.spec new file mode 100644 index 0000000..06e729d --- /dev/null +++ b/SPECS/nodejs-opener.spec @@ -0,0 +1,78 @@ +%{?scl:%scl_package nodejs-opener} +%{!?scl:%global pkg_name %{name}} +%{?nodejs_find_provides_and_requires} + +Name: %{?scl_prefix}nodejs-opener +Version: 1.3.0 +Release: 8%{?dist} +Summary: Opens stuff, like webpages and files and executables +BuildArch: noarch + +Group: System Environment/Libraries +License: WTFPL +URL: https://github.com/domenic/opener +Source0: http://registry.npmjs.org/opener/-/opener-1.3.0.tgz +BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: %{?scl_prefix}nodejs-devel + +%description +Opens stuff, like webpages and files and executables, cross-platform. + +%prep +%setup -q -n package + +#get rid of DOS EOLs +sed -i "s|\r||g" LICENSE.txt README.md + + +%build +#nothing to do + +%install +rm -rf %buildroot +mkdir -p %{buildroot}%{nodejs_sitelib}/opener +cp -pr package.json opener.js %{buildroot}%{nodejs_sitelib}/opener + +chmod 0755 %{buildroot}%{nodejs_sitelib}/opener/opener.js + +mkdir -p %{buildroot}%{_bindir} +ln -sf ../lib/node_modules/opener/opener.js %{buildroot}%{_bindir}/opener + +%nodejs_symlink_deps + +%clean +rm -rf %buildroot + +%files +%defattr(-,root,root,-) +%{nodejs_sitelib}/opener +%{_bindir}/opener +%doc LICENSE.txt README.md + +%changelog +* Tue Mar 04 2014 Tomas Hrcka - 1.3.0-8 +- Add missing nodejs_symlink_deps macro + +* Thu Oct 17 2013 Tomas Hrcka - 1.3.0-7 +- replace provides and requires with macro + +* Thu Apr 11 2013 Stanislav Ochotnicky - 1.3.0-6 +- Add support for software collections + +* Thu Feb 14 2013 Fedora Release Engineering - 1.3.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Sat Jan 19 2013 T.C. Hollingsworth - 1.3.0-4 +- fix EOLs on README.md also + +* Fri Jan 18 2013 T.C. Hollingsworth - 1.3.0-3 +- rename from opener to nodejs-opener +- add exec permission on opener (executable and lib are same file) +- remove DOS EOLs from LICENSE.txt + +* Tue Jan 08 2013 T.C. Hollingsworth - 1.3.0-2 +- add missing build section + +* Mon Dec 31 2012 T.C. Hollingsworth - 1.3.0-1 +- initial package generated by npm2rpm