Skip to content

Commit

Permalink
Merge pull request mozilla#21 from nemomobile-packages/jb29357
Browse files Browse the repository at this point in the history
[rpm] Replace duplicate binaries in devel package with symlinks. JB#29357
  • Loading branch information
rojkov committed Jun 3, 2015
2 parents 3566240 + c576185 commit 9f8a2b0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions rpm/xulrunner-qt5.spec
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,13 @@ export SBOX_REDIRECT_FORCE=/usr/bin/python

export MOZCONFIG=$PWD/mozconfig
%{__make} -f client.mk install DESTDIR=%{buildroot}
%{__chmod} +x %{buildroot}%{_libdir}/%{name}-%{greversion}/*.so
for i in $(cd ${RPM_BUILD_ROOT}%{_libdir}/%{name}-devel-%{greversion}/sdk/lib/; ls *.so); do
rm ${RPM_BUILD_ROOT}%{_libdir}/%{name}-devel-%{greversion}/sdk/lib/$i
ln -s /%{_libdir}/%{name}-%{greversion}/$i ${RPM_BUILD_ROOT}%{_libdir}/%{name}-devel-%{greversion}/sdk/lib/$i
done
%fdupes -s %{buildroot}%{_includedir}
%fdupes -s %{buildroot}%{_libdir}
chmod +x %{buildroot}%{_libdir}/%{name}-%{greversion}/*.so
%{__chmod} +x %{buildroot}%{_libdir}/%{name}-%{greversion}/*.so
# Use the system hunspell dictionaries
%{__rm} -rf ${RPM_BUILD_ROOT}%{_libdir}/%{name}-%{greversion}/dictionaries
ln -s %{_datadir}/myspell ${RPM_BUILD_ROOT}%{_libdir}/%{name}-%{greversion}/dictionaries
Expand Down

0 comments on commit 9f8a2b0

Please sign in to comment.