Blame SPECS/nodejs-opener.spec

aa9dcf
%{?scl:%scl_package nodejs-opener}
aa9dcf
%{!?scl:%global pkg_name %{name}}
aa9dcf
%{?nodejs_find_provides_and_requires}
aa9dcf
aa9dcf
Name:           %{?scl_prefix}nodejs-opener
310b56
Version:        1.4.1
310b56
Release:        1%{?dist}
aa9dcf
Summary:        Opens stuff, like webpages and files and executables
aa9dcf
BuildArch:      noarch
aa9dcf
aa9dcf
Group:          System Environment/Libraries
aa9dcf
License:        WTFPL
aa9dcf
URL:            https://github.com/domenic/opener
310b56
Source0:        http://registry.npmjs.org/opener/-/opener-%{version}.tgz
aa9dcf
BuildRoot:      %{_tmppath}/%{pkg_name}-%{version}-%{release}-root-%(%{__id_u} -n)
aa9dcf
aa9dcf
BuildRequires:  %{?scl_prefix}nodejs-devel
aa9dcf
aa9dcf
%description
aa9dcf
Opens stuff, like webpages and files and executables, cross-platform.
aa9dcf
aa9dcf
%prep
aa9dcf
%setup -q -n package
aa9dcf
aa9dcf
#get rid of DOS EOLs
aa9dcf
sed -i "s|\r||g" LICENSE.txt README.md
aa9dcf
 
aa9dcf
aa9dcf
%build
aa9dcf
#nothing to do
aa9dcf
aa9dcf
%install
aa9dcf
rm -rf %buildroot
aa9dcf
mkdir -p %{buildroot}%{nodejs_sitelib}/opener
aa9dcf
cp -pr package.json opener.js %{buildroot}%{nodejs_sitelib}/opener
aa9dcf
aa9dcf
chmod 0755 %{buildroot}%{nodejs_sitelib}/opener/opener.js
aa9dcf
aa9dcf
mkdir -p %{buildroot}%{_bindir}
aa9dcf
ln -sf ../lib/node_modules/opener/opener.js %{buildroot}%{_bindir}/opener
aa9dcf
aa9dcf
%nodejs_symlink_deps
aa9dcf
aa9dcf
%clean
aa9dcf
rm -rf %buildroot
aa9dcf
aa9dcf
%files
aa9dcf
%defattr(-,root,root,-)
aa9dcf
%{nodejs_sitelib}/opener
aa9dcf
%{_bindir}/opener
aa9dcf
%doc LICENSE.txt README.md
aa9dcf
aa9dcf
%changelog
310b56
* Mon Nov 30 2015 Tomas Hrcka <thrcka@redhat.com> - 1.4.1-1
310b56
- New upstream release
310b56
aa9dcf
* Tue Mar 04 2014 Tomas Hrcka <thrcka@redhat.com> - 1.3.0-8
aa9dcf
- Add missing nodejs_symlink_deps macro
aa9dcf
aa9dcf
* Thu Oct 17 2013 Tomas Hrcka <thrcka@redhat.com> - 1.3.0-7
aa9dcf
- replace provides and requires with macro
aa9dcf
aa9dcf
* Thu Apr 11 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.3.0-6
aa9dcf
- Add support for software collections
aa9dcf
aa9dcf
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.0-5
aa9dcf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
aa9dcf
aa9dcf
* Sat Jan 19 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.3.0-4
aa9dcf
- fix EOLs on README.md also
aa9dcf
aa9dcf
* Fri Jan 18 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.3.0-3
aa9dcf
- rename from opener to nodejs-opener
aa9dcf
- add exec permission on opener (executable and lib are same file)
aa9dcf
- remove DOS EOLs from LICENSE.txt
aa9dcf
aa9dcf
* Tue Jan 08 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.3.0-2
aa9dcf
- add missing build section
aa9dcf
aa9dcf
* Mon Dec 31 2012 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.3.0-1
aa9dcf
- initial package generated by npm2rpm