Adjust spec file for new version of nodejs-nailgun
Change-Id: I5d0d928b0614eb7ffd5502a8c00f7e8a51fc6e7b Closes-Bug: #1582742
This commit is contained in:
parent
f35effe23d
commit
9475c1bd6a
|
@ -22,13 +22,12 @@ Nailgun UI package
|
||||||
%prep
|
%prep
|
||||||
%setup -cq -n %{name}-%{version}
|
%setup -cq -n %{name}-%{version}
|
||||||
|
|
||||||
cp -pr /usr/lib/node_modules %{_builddir}/%{name}-%{version}/node_modules
|
cp -pr /opt/nodejs-nailgun/lib/node_modules %{_builddir}/%{name}-%{version}/node_modules
|
||||||
cp -pr /usr/lib/node_modules/.bin %{_builddir}/node_modules/
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
cd %{_builddir}/%{name}-%{version} && %{_builddir}/%{name}-%{version}/node_modules/.bin/gulp build --static-dir=compressed_static
|
./node_modules/.bin/gulp build --static-dir=compressed_static
|
||||||
[ -n %{_builddir} ] && rm -rf %{_builddir}/%{name}-%{version}/static
|
rm -rf static
|
||||||
mv %{_builddir}/%{name}-%{version}/compressed_static %{_builddir}/%{name}-%{version}/static
|
mv compressed_static static
|
||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p %{buildroot}/usr/share/nailgun
|
mkdir -p %{buildroot}/usr/share/nailgun
|
||||||
|
@ -40,5 +39,3 @@ rm -rf $RPM_BUILD_ROOT
|
||||||
%files
|
%files
|
||||||
%defattr(0755,root,root)
|
%defattr(0755,root,root)
|
||||||
/usr/share/nailgun
|
/usr/share/nailgun
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue