Adjust spec file for new version of nodejs-nailgun

Change-Id: I5d0d928b0614eb7ffd5502a8c00f7e8a51fc6e7b
Closes-Bug: #1582742
This commit is contained in:
Alexander Tsamutali 2016-05-30 22:11:39 +03:00
parent f35effe23d
commit 9475c1bd6a
1 changed files with 4 additions and 7 deletions

View File

@ -22,13 +22,12 @@ Nailgun UI package
%prep
%setup -cq -n %{name}-%{version}
cp -pr /usr/lib/node_modules %{_builddir}/%{name}-%{version}/node_modules
cp -pr /usr/lib/node_modules/.bin %{_builddir}/node_modules/
cp -pr /opt/nodejs-nailgun/lib/node_modules %{_builddir}/%{name}-%{version}/node_modules
%build
cd %{_builddir}/%{name}-%{version} && %{_builddir}/%{name}-%{version}/node_modules/.bin/gulp build --static-dir=compressed_static
[ -n %{_builddir} ] && rm -rf %{_builddir}/%{name}-%{version}/static
mv %{_builddir}/%{name}-%{version}/compressed_static %{_builddir}/%{name}-%{version}/static
./node_modules/.bin/gulp build --static-dir=compressed_static
rm -rf static
mv compressed_static static
%install
mkdir -p %{buildroot}/usr/share/nailgun
@ -40,5 +39,3 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(0755,root,root)
/usr/share/nailgun