diff --git a/nodejs-napi-ldap.spec b/nodejs-napi-ldap.spec index 437345b..e4de5a1 100644 --- a/nodejs-napi-ldap.spec +++ b/nodejs-napi-ldap.spec @@ -46,6 +46,7 @@ ln -srt node_modules/.bin/ node_modules_prod/.bin USE_SYSTEM_LDAP=1 npm rebuild --nodedir=/usr %install +rm -rf build/Release/obj.target mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name} cp -pr main.js LDAPError.js package.json build node_modules_prod node_modules \ %{buildroot}%{nodejs_sitelib}/%{npm_name}/ @@ -56,7 +57,6 @@ cp -pr main.js LDAPError.js package.json build node_modules_prod node_modules \ %files %license LICENSE %{npm_name}-%{version}-bundled-licenses.txt %doc README.md -%dir %{nodejs_sitelib}/%{npm_name} %{nodejs_sitelib}/%{npm_name} %changelog