diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..dac3741 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/opener-1.4.1.tgz diff --git a/.rh-nodejs4-nodejs-opener.metadata b/.rh-nodejs4-nodejs-opener.metadata new file mode 100644 index 0000000..1e66dd7 --- /dev/null +++ b/.rh-nodejs4-nodejs-opener.metadata @@ -0,0 +1 @@ +897590acd1aed3311b703b58bccb4d43f56f2895 SOURCES/opener-1.4.1.tgz 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-opener.spec b/SPECS/nodejs-opener.spec new file mode 100644 index 0000000..e6c5379 --- /dev/null +++ b/SPECS/nodejs-opener.spec @@ -0,0 +1,84 @@ +%{?scl:%scl_package nodejs-opener} +%{!?scl:%global pkg_name %{name}} +%{?nodejs_find_provides_and_requires} + +Name: %{?scl_prefix}nodejs-opener +Version: 1.4.1 +Release: 2%{?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-%{version}.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 +* Sun Feb 14 2016 Zuzana Svetlikova - 1.4.1-2 +- rebuilt + +* Mon Nov 30 2015 Tomas Hrcka - 1.4.1-1 +- New upstream release + +* 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